Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                <p id="msg"></p>
<textarea id="text">Hello World!</textarea>
<select id="voice-names"></select>
<input id="rate" type="range" min="0" max="2" step="0.25" value="1"> (speed)
<button id="speak-btn">speak</button>
<button id="pause-btn">pause</button>
<button id="resume-btn">resume</button>
<button id="cancel-btn">cancel</button>




                // Check for browser support
if (!"speechSynthesis" in window) {
    "Sorry. Your browser <strong>does not support</strong> speech synthesis."
} else {
  $("#msg").html("👍Your browser supports speech synthesis.");

// Fetch the list of voices and populate the voice options.
function loadVoices() {
  // Fetch the available voices in English US.
  let voices = speechSynthesis.getVoices();
  voices.forEach(function(voice, i) {
    const $option = $("<option>");
    $option.text( + " (" + voice.lang + ")");
    $option.prop("selected", === "Google US English");

// Execute loadVoices.

// Chrome loads voices asynchronously.
window.speechSynthesis.onvoiceschanged = function(e) {

const uttr = new SpeechSynthesisUtterance();

// Set up an event listener for when the 'speak' button is clicked.
// Create a new utterance for the specified text and add it to the queue.
$("#speak-btn").click(function() {
  uttr.text = $("#text").val();
  uttr.rate = parseFloat($("#rate").val());
  // If a voice has been selected, find the voice and set the
  // utterance instance's voice attribute.
  if ($("#voice-names").val()) {
    uttr.voice = speechSynthesis
      .filter(voice => == $("#voice-names").val())[0];
  uttr.onend = function() {
    // hoge
$("#pause-btn").click(function() {
$("#resume-btn").click(function() {
$("#cancel-btn").click(function() {