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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <input type=button accesskey=i value="Initializing social interaction module">
<input type=button accesskey=n value="Salutations">
<input type=button accesskey=t value="The name's bot. ro bot.">
<input type=button accesskey=c value="I come in pieces">
<input type=button accesskey=p value="Happy Halloween">
<input type=button accesskey=o value="Trick or treat">
<input type=button accesskey=s value="Scanning for viruses">
<input type=button accesskey=b value="Bless my circuits">
<input type=button accesskey=h value="Ha ha ha">
<input type=button accesskey=y value="Your comedic value nears one">
<input type=button accesskey=w value="What software do you run in your spare time?">
<input type=button accesskey=f value="this Wifi is delicious">
<input type=button accesskey=u value="Success">
<input type=button accesskey=e value="Error">
<input type=button accesskey=d value="Deleting conversation">
<input type=button accesskey=1 value="100% complete">
              
            
!

CSS

              
                * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: auto;
}
html {
  font-size: 10pt;
  line-height: 1.4;
  font-weight: 400;
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
input {
  -webkit-appearance: none;
  appearance: none;
  float: left;
  width: 25%;
  height: 25vh;
  color: white;
  font-size: 1.5vw;
  background: #f60;
  border-radius: 0;
  border: 1px solid #f30;
  box-shadow: inset #f30 0 0 5vw;
}
input:hover,
input:focus,
input:active {
  color: white;
  background: black;
  border: 1px solid black;
  box-shadow: none;
}
              
            
!

JS

              
                /* Based on: https://twitter.com/MaximeEuziere/status/788342068431257604 */
function say(string) {
  let utterance = new (SpeechSynthesisUtterance)(string)
  utterance.voice = speechSynthesis.getVoices[0]
  speechSynthesis.speak(utterance)
}
var tag = document.querySelectorAll('input')
for (i=0;i<tag.length;i++){
  tag[i].addEventListener('click',function(e){say(e.target.value)})
}
              
            
!
999px

Console