Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <datalist id="browsers">
  <option value="Internet Explorer">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
</datalist>
<form id="form" cf-form>
  <input type="text" name="browsers" list="browsers" cf-questions="使用しているブラウザは何ですか?" />
  <input type="email" name="emailReqTest" cf-questions="あなたのメールアドレスを教えてください※hoge@example.comとかでいいです" />
  
  <input type="email" value="hoge@example.com" name="emailReqTest2" cf-questions="確認の為、もう一度同じメールアドレスの入力をお願いします" required />
  <input type="number" min="3" max="5" required cf-error="不正解です。3と5の間の数字は何でしょう?" name="numValTest" cf-questions="問題です。3と5の間の数字は?" />
  <input type="password" value='123456789' name="pwdTest" cf-questions="8文字以上でパスワードを決めてください。" minlength="8" required cf-error="8文字以下しかないようです。再度、8文字以上でパスワードを決めてください" />
  <input type="tel" value="123-456-7890" name="telTest" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" cf-questions="電話番号を教えてください (format: 123-456-7890)" required />

</form>
<div id="cf-context" role="cf-context" cf-context></div>
            
          
!

CSS

            
              #cf-context { 
  width: 100vw; 
  height: 100vh; 
} 
            
          
!

JS

            
              window.onload = function() {
  var conversationalForm = window.cf.ConversationalForm.startTheConversation({
    formEl: document.getElementById("form"),
    context: document.getElementById("cf-context"),
   
    submitCallback: function() {
     conversationalForm.addRobotChatResponse("完了しました!お疲れ様でした"); 
    }
  });
};

            
          
!
999px

Console