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. 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <div class="box">
  <h4><i>Plain HTML - justified</i></h4>
  <p class="plain plainJustified">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sollicitudin tortor lobortis purus viverra auctor. Praesent turpis turpis, semper sed fringilla ut, fringilla nec sem. Pellentesque eget auctor ipsum. Pellentesque non porttitor metus. Aliquam convallis malesuada viverra. Fusce ut faucibus sapien. Phasellus vestibulum lobortis turpis in accumsan. Sed laoreet dignissim nibh vitae tempus. Vestibulum eu ante ipsum. Donec blandit consequat neque at semper. Quisque vitae massa laoreet, rhoncus tellus ut, feugiat orci. Aliquam erat volutpat. Mauris risus ligula, bibendum nec gravida nec, cursus eget mi.

Maecenas id erat ac magna euismod placerat sit amet id eros. Mauris mattis metus vel congue varius. Maecenas aliquam placerat blandit. Aenean malesuada tellus non sapien pharetra, et blandit urna sodales. Pellentesque pretium sem ut sapien venenatis, non pharetra mi dictum. Cras vestibulum nisi at lorem fringilla, sed sollicitudin sem dignissim. Nullam et mi eget ligula tincidunt consectetur. Nullam at iaculis sapien, in lobortis mi. Morbi at aliquet eros. Duis vel pretium sapien. Phasellus nec blandit nibh. Suspendisse varius dolor accumsan, sodales nisi in, eleifend lectus. Vivamus quis ultrices nibh. Cras hendrerit lectus tortor, id tristique dui ullamcorper non. Donec fringilla dui non massa lacinia tempor. Aliquam erat volutpat.

Phasellus mollis dolor quis arcu congue, sed eleifend enim mattis. Nam ultricies, enim in egestas sollicitudin, dui turpis faucibus metus, sed dictum magna enim sed neque. Pellentesque tincidunt velit vel pharetra imperdiet. Donec imperdiet orci sollicitudin, tristique arcu id, elementum odio. Donec tellus lectus, pellentesque ut orci et, dapibus sodales sem. Donec sodales, elit at laoreet lacinia, nisi nunc gravida lacus, non consectetur ipsum tellus sit amet tellus. Vivamus rutrum dolor blandit libero blandit, sed molestie augue lacinia. Fusce hendrerit mattis leo vel lacinia.

Curabitur dui nisl, pellentesque id ex non, suscipit placerat est. Mauris libero eros, placerat non vulputate sed, condimentum ac diam. Vestibulum non nulla sit amet risus finibus posuere. Nam vehicula in risus et sagittis. Vivamus vulputate semper pretium. Vivamus quis mi lectus. Morbi eget dapibus diam. Aliquam sit amet volutpat mauris. Mauris vel velit at nunc commodo tincidunt ut a est. Maecenas lacinia dolor eu ex ullamcorper congue. Phasellus vestibulum ante eu urna mollis sagittis. Vestibulum tristique euismod mi, non convallis nunc ultrices vel.

Ut malesuada leo vel dui feugiat tincidunt. Donec ac pulvinar turpis. Ut id turpis vel nulla pulvinar mollis at sed magna. Sed a accumsan ipsum. Mauris venenatis facilisis lacus, sodales congue lectus mattis nec. Donec in enim gravida, rutrum mauris eget, commodo ligula. Vestibulum tempor at nulla vel eleifend. Integer eget vehicula ex. Proin id mauris ut metus iaculis malesuada eget pharetra massa. Vivamus commodo quam auctor venenatis interdum. Etiam elementum arcu ac ex fringilla vulputate. Donec vehicula sem neque, quis vulputate mi condimentum ut. Nulla diam libero, lacinia et velit vitae, vulputate convallis dui. Praesent pretium dolor eget lorem ullamcorper vehicula. Aliquam vel porttitor risus.</p>
  <h4><i>	TypesetBot, justified</i></h4>
<p class="justi">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sollicitudin tortor lobortis purus viverra auctor. Praesent turpis turpis, semper sed fringilla ut, fringilla nec sem. Pellentesque eget auctor ipsum. Pellentesque non porttitor metus. Aliquam convallis malesuada viverra. Fusce ut faucibus sapien. Phasellus vestibulum lobortis turpis in accumsan. Sed laoreet dignissim nibh vitae tempus. Vestibulum eu ante ipsum. Donec blandit consequat neque at semper. Quisque vitae massa laoreet, rhoncus tellus ut, feugiat orci. Aliquam erat volutpat. Mauris risus ligula, bibendum nec gravida nec, cursus eget mi.

Maecenas id erat ac magna euismod placerat sit amet id eros. Mauris mattis metus vel congue varius. Maecenas aliquam placerat blandit. Aenean malesuada tellus non sapien pharetra, et blandit urna sodales. Pellentesque pretium sem ut sapien venenatis, non pharetra mi dictum. Cras vestibulum nisi at lorem fringilla, sed sollicitudin sem dignissim. Nullam et mi eget ligula tincidunt consectetur. Nullam at iaculis sapien, in lobortis mi. Morbi at aliquet eros. Duis vel pretium sapien. Phasellus nec blandit nibh. Suspendisse varius dolor accumsan, sodales nisi in, eleifend lectus. Vivamus quis ultrices nibh. Cras hendrerit lectus tortor, id tristique dui ullamcorper non. Donec fringilla dui non massa lacinia tempor. Aliquam erat volutpat.

Phasellus mollis dolor quis arcu congue, sed eleifend enim mattis. Nam ultricies, enim in egestas sollicitudin, dui turpis faucibus metus, sed dictum magna enim sed neque. Pellentesque tincidunt velit vel pharetra imperdiet. Donec imperdiet orci sollicitudin, tristique arcu id, elementum odio. Donec tellus lectus, pellentesque ut orci et, dapibus sodales sem. Donec sodales, elit at laoreet lacinia, nisi nunc gravida lacus, non consectetur ipsum tellus sit amet tellus. Vivamus rutrum dolor blandit libero blandit, sed molestie augue lacinia. Fusce hendrerit mattis leo vel lacinia.

Curabitur dui nisl, pellentesque id ex non, suscipit placerat est. Mauris libero eros, placerat non vulputate sed, condimentum ac diam. Vestibulum non nulla sit amet risus finibus posuere. Nam vehicula in risus et sagittis. Vivamus vulputate semper pretium. Vivamus quis mi lectus. Morbi eget dapibus diam. Aliquam sit amet volutpat mauris. Mauris vel velit at nunc commodo tincidunt ut a est. Maecenas lacinia dolor eu ex ullamcorper congue. Phasellus vestibulum ante eu urna mollis sagittis. Vestibulum tristique euismod mi, non convallis nunc ultrices vel.

Ut malesuada leo vel dui feugiat tincidunt. Donec ac pulvinar turpis. Ut id turpis vel nulla pulvinar mollis at sed magna. Sed a accumsan ipsum. Mauris venenatis facilisis lacus, sodales congue lectus mattis nec. Donec in enim gravida, rutrum mauris eget, commodo ligula. Vestibulum tempor at nulla vel eleifend. Integer eget vehicula ex. Proin id mauris ut metus iaculis malesuada eget pharetra massa. Vivamus commodo quam auctor venenatis interdum. Etiam elementum arcu ac ex fringilla vulputate. Donec vehicula sem neque, quis vulputate mi condimentum ut. Nulla diam libero, lacinia et velit vitae, vulputate convallis dui. Praesent pretium dolor eget lorem ullamcorper vehicula. Aliquam vel porttitor risus.</p>
  	<h4><i>TypesetBot, ragged</i></h4>
<p class="ragged">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sollicitudin tortor lobortis purus viverra auctor. Praesent turpis turpis, semper sed fringilla ut, fringilla nec sem. Pellentesque eget auctor ipsum. Pellentesque non porttitor metus. Aliquam convallis malesuada viverra. Fusce ut faucibus sapien. Phasellus vestibulum lobortis turpis in accumsan. Sed laoreet dignissim nibh vitae tempus. Vestibulum eu ante ipsum. Donec blandit consequat neque at semper. Quisque vitae massa laoreet, rhoncus tellus ut, feugiat orci. Aliquam erat volutpat. Mauris risus ligula, bibendum nec gravida nec, cursus eget mi.

Maecenas id erat ac magna euismod placerat sit amet id eros. Mauris mattis metus vel congue varius. Maecenas aliquam placerat blandit. Aenean malesuada tellus non sapien pharetra, et blandit urna sodales. Pellentesque pretium sem ut sapien venenatis, non pharetra mi dictum. Cras vestibulum nisi at lorem fringilla, sed sollicitudin sem dignissim. Nullam et mi eget ligula tincidunt consectetur. Nullam at iaculis sapien, in lobortis mi. Morbi at aliquet eros. Duis vel pretium sapien. Phasellus nec blandit nibh. Suspendisse varius dolor accumsan, sodales nisi in, eleifend lectus. Vivamus quis ultrices nibh. Cras hendrerit lectus tortor, id tristique dui ullamcorper non. Donec fringilla dui non massa lacinia tempor. Aliquam erat volutpat.

Phasellus mollis dolor quis arcu congue, sed eleifend enim mattis. Nam ultricies, enim in egestas sollicitudin, dui turpis faucibus metus, sed dictum magna enim sed neque. Pellentesque tincidunt velit vel pharetra imperdiet. Donec imperdiet orci sollicitudin, tristique arcu id, elementum odio. Donec tellus lectus, pellentesque ut orci et, dapibus sodales sem. Donec sodales, elit at laoreet lacinia, nisi nunc gravida lacus, non consectetur ipsum tellus sit amet tellus. Vivamus rutrum dolor blandit libero blandit, sed molestie augue lacinia. Fusce hendrerit mattis leo vel lacinia.

Curabitur dui nisl, pellentesque id ex non, suscipit placerat est. Mauris libero eros, placerat non vulputate sed, condimentum ac diam. Vestibulum non nulla sit amet risus finibus posuere. Nam vehicula in risus et sagittis. Vivamus vulputate semper pretium. Vivamus quis mi lectus. Morbi eget dapibus diam. Aliquam sit amet volutpat mauris. Mauris vel velit at nunc commodo tincidunt ut a est. Maecenas lacinia dolor eu ex ullamcorper congue. Phasellus vestibulum ante eu urna mollis sagittis. Vestibulum tristique euismod mi, non convallis nunc ultrices vel.

Ut malesuada leo vel dui feugiat tincidunt. Donec ac pulvinar turpis. Ut id turpis vel nulla pulvinar mollis at sed magna. Sed a accumsan ipsum. Mauris venenatis facilisis lacus, sodales congue lectus mattis nec. Donec in enim gravida, rutrum mauris eget, commodo ligula. Vestibulum tempor at nulla vel eleifend. Integer eget vehicula ex. Proin id mauris ut metus iaculis malesuada eget pharetra massa. Vivamus commodo quam auctor venenatis interdum. Etiam elementum arcu ac ex fringilla vulputate. Donec vehicula sem neque, quis vulputate mi condimentum ut. Nulla diam libero, lacinia et velit vitae, vulputate convallis dui. Praesent pretium dolor eget lorem ullamcorper vehicula. Aliquam vel porttitor risus. </p>
</div>

<br>
<table>
  <thead>
    <tr>
      <th></th>
      <th>Plain HTML</th>
      <th>TypesetBot, justified</th>
      <th>TypesetBot, ragged</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Average Ratio</td>
      <td class="averageP"></td>
      <td class="averageJ"></td>
      <td class="averageR"></td>
    </tr>
    <tr>
      <td class="">Max Ratio</td>
      <td class="maxP"></td>
      <td class="maxJ"></td>
      <td class="maxR"></td>
    </tr>
    <tr>
      <td class="">Min Ratio</td>
      <td class="minP"></td>
      <td class="minJ"></td>
      <td class="minR"></td>
    </tr>
    <tr>
      <td class="">Number of lines</td>
      <td class="lineP"></td>
      <td class="lineJ"></td>
      <td class="lineR"></td>
    </tr>
    <tr>
      <td class="">Number of hyphens</td>
      <td class="hypP"></td>
      <td class="hypJ"></td>
      <td class="hypR"></td>
    </tr>
  </tbody>
</table>

<h3>NOTE: For the calculations we pop the last line 0.001, because it might skrew results in a favorable position for both.</h3>
<div>Info:
  <ul>
    <li>Content from 5 paragraphs of lorem ipsum: <a href="http://www.lipsum.com/">http://www.lipsum.com/</a></li>
    <li>441 words</li>
    <li>We're hyphenating with US english</li>
    <li>Calculations are based on DOM manipulation, see source on this Pen.</li>
  </ul>
</div>
            
          
!
            
              // define width of text
p {width: 901px}
.space-bad { background: #dc3545; }
.space-okay { background: #ffc107; }
//.space-good { background: #28a745; }

* [adjustment-ratio]:not([adjustment-ratio=""]){position:relative}* [adjustment-ratio]:not([adjustment-ratio=""]):before{position:absolute;top:0;right:calc(100% + 7px);content:attr(adjustment-ratio)}p{line-height:1.14}.typeset-line{display:block}.typeset-block{display:block}.typeset-justify{text-align:justify}.typeset-justify .typeset-line:after{content:"";display:inline-block;width:100%}.typeset-justify .typeset-line:last-of-type:after{display:none}.typeset-right .typeset-line{text-align:right}.typeset-left .typeset-line{text-align:left}.typeset-center .typeset-line{text-align:center}.typeset-hidden{display:none;text-align:justify}.typeset-viewport .typeset-hidden{display:block}.typeset-viewport .typeset-paragraph{display:none}
.plain {
      word-spacing: calc(0.33333em - 4px);
}
.box {
  margin-left: 100px;
}

//Pure CSS
table { 
  font-family: 'verdana';
	//width: 600px; 
	border-collapse: collapse; 
	margin:50px auto;
	}

/* Zebra striping */
tr:nth-of-type(odd) { 
	background: #eee; 
	}

th { 
	background: #3498db; 
	color: white; 
	font-weight: bold; 
	}

td, th { 
	padding: 20px; 
	border: 1px solid #ccc; 
	text-align: left; 
	font-size: 18px;
	}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

	table { 
	  	width: 100%; 
	}

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}

	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
		/* Label the data */
		content: attr(data-column);

		color: #000;
		font-weight: bold;
	}

}
table{
  margin: 0 auto;
  tr td:first-child{
    font-weight: bold;
  }
}

            
          
!
            
              var plainAlignment = 'justify'; // What text alignment should plain text have.

var averagePlain = $('.averageP'),
    maxPlain = $('.maxP'),
    minPlain = $('.minP'),
    linePlain = $('.lineP'),
    hyphenPlain = $('.hypP'),
    //
    averageJustified = $('.averageJ'),
    maxJustified = $('.maxJ'),
    minJustified = $('.minJ'),
    lineJustified = $('.lineJ'),
    hyphenJustified = $('.hypJ'),
    //
    averageRagged = $('.averageR'),
    maxRagged = $('.maxR'),
    minRagged = $('.minR'),
    lineRagged = $('.lineR'),
    hyphenRagged = $('.hypR'),
    //
    plainText = $('.plainJustified'),
    justifyText = $('.justi'),
    raggedText = $('.ragged');

// Functions to calc plain ratios -----------------------------------------------------------------------
function adjustmentratio (idealW, actualW, wordCount, shrink, stretch) { // Adjustment ratio
  if (actualW < idealW) {
    return (idealW - actualW) / ((wordCount - 1) * stretch);
  }
  return (idealW - actualW) / ((wordCount - 1) * shrink);
}
/**
 * Break up of paragraph into span lines.
 * Modified for custom element and generalizing spaces and newlines.
 * Full credit to 'miketeix' - http://jsfiddle.net/miketeix/2q8ac/
 */
var breakIntoLines = function (dom) {
  dom.html(dom.html().replace( /\n/g, " " ).replace( /\s+/g, " " ));
  var spanInserted = dom.html().split(" ").join(" </span><span>");
  var wrapped = ("<span>").concat(spanInserted, "</span>");
  dom.html(wrapped);
  var refPos = dom.find('span:first-child').position().top;
  var newPos;
  dom.find('span').each(function(index) {
    newPos = $(this).position().top;
    if (index === 0){
      return;
    }
    if (newPos === refPos){
      $(this).prepend($(this).prev().text() + " ");
      $(this).prev().remove();
    }
    refPos = newPos;
  });
};
/**
 * Return an array of words from some html text.
 */
getWords  = function (html) {
  return html.trim().replace( /\n/g, " " ).replace( /\s+/g, " " ).replace(/ (?![^<]*>)/g, '&nbsp;')
    .split('&nbsp;');
};
/**
 * Show adjustment ratios on plain text paragraph.
 * Return array of adjustment ratios.
 */
getPlainRatios = function (dom, showRatio = false) {
  var arr = [];
  
  breakIntoLines(dom);
  var idealW = dom.width();
  dom.find('span:last').attr('lastline', '');
  dom.find('span').each(function () {
    var elem = $(this),
        actualW = elem.width(),
        wordCount = getWords(elem.html()).length,
        shrink = 16 / 9,
        stretch = 16 / 6;

    var ratio = adjustmentratio(
      idealW, actualW, wordCount, shrink, stretch
    ).toFixed(3);

    if (elem.attr('lastline') !== undefined) { // Set last line to 0 as it's not a fair evaluation.
      ratio = 0.001;
    }

    arr.push(Number(ratio));
    if (showRatio) {
      elem.attr('adjustment-ratio', ratio);
    }
  });

  return arr;
};
//--------------------------------------------------------------------------------------------------

function showRatio(dom) {
  var arr = [];
  dom.find('> span').each(function () {
    var elem = $(this);
    var ratio = Number(elem.attr('ratio')).toFixed(3);
    if (isNaN(ratio)) {
      ratio = 0.001;
    }
     
    elem.attr('adjustment-ratio', ratio);
    arr.push(Number(ratio));
  });
  return arr;
}

// Plain ..................................................
var data = getPlainRatios(plainText, true);
console.log('Plain html ratios');
data.pop(); // Pop last line, 0.001 might skrew result
plainText.css('text-align', plainAlignment);

console.log(range(data, -1, -0.5));
console.log(range(data, -0.5, 0));
console.log(range(data, 0, 0.5));
console.log(range(data, 0.5, 1));
console.log(range(data, 1, 1.5));
console.log(range(data, 1.5, 2));
console.log(range(data, 2, Infinity));

var min = getMin(data),
    max = getMax(data),
    average = getAverage(data);

averagePlain.html(average);
maxPlain.html(max);
minPlain.html(min);
hyphenPlain.html(0);
linePlain.html(cl(plainText));

// Justified ..................................................
TypesetBot.run('.justi', {dynamicWidth: false}, function() {
  var typeset = $('.justi');
  var dataJ = showRatio(typeset);
  dataJ.pop(); // Pop last line, 0.001 might skrew result
  var min = getMin(dataJ),
      max = getMax(dataJ),
      average = getAverage(dataJ);
  console.log('Typesetbot justified ratios');
  console.log(range(dataJ, -1, -0.5));
  console.log(range(dataJ, -0.5, 0));
  console.log(range(dataJ, 0, 0.5));
  console.log(range(dataJ, 0.5, 1));
  console.log(range(dataJ, 1, 1.5));
  console.log(range(dataJ, 1.5, 2));
  console.log(range(dataJ, 2, Infinity));
  
  averageJustified.html(average);
  maxJustified.html(max);
  minJustified.html(min);
  hyphenJustified.html(countHyphen($('.justi')));
  lineJustified.html(cl($('.justi')));
  
  $('.justi > span').each(function() {
  var elem = $(this);
     var ratio = elem.attr('adjustment-ratio');
  if (ratio > -1) {
    var ratioClass = 'okay';
  } 
  if (ratio > -0.5) {
    var ratioClass = 'good';
  }
  if (ratio > 0) {
    var ratioClass = 'good';
  }
  if (ratio > 0.5) {
    var ratioClass = 'okay';
  }
  if (ratio > 1) {
    var ratioClass = 'bad';
  }
  if (ratio > 1.5) {
    var ratioClass = 'bad';
  }
    
  var nTxt = elem.html().replace(/ /g, '<span class="space-' + ratioClass + '"> </span>');
  elem.html(nTxt);
});
});

// Ragged ............................................................................
TypesetBot.run('.ragged', {dynamicWidth: false, alignment: 'ragged-right'}, function() {
  var dataR = showRatio($('.ragged'));
  dataR.pop(); // Pop last line, 0.001 might skrew result
  var min = getMin(dataR),
      max = getMax(dataR),
      average = getAverage(dataR);

  averageRagged.html(average);
  maxRagged.html(max);
  minRagged.html(min);
  hyphenRagged.html(countHyphen($('.ragged')));
  lineRagged.html(cl($('.ragged')));  
});


// Helper functions ----------------------------------------------------------------
function getAverage(arr) {
  var count = arr.length;
  var sum = 0;
  arr.forEach(function (elem) {
    sum += elem;
  });
  return (sum/count).toFixed(3);
}
function getMin(arr) {
  var min = Infinity;
  arr.forEach(function (elem) {
    if (elem < min) { min = elem;} 
  });
  return min;
}
function getMax(arr) {
  var max = -Infinity;
  arr.forEach(function (elem) {
    if (elem > max) { max = elem;} 
  });
  return max;
}
function countHyphen(dom) {
  var count = 0;
  dom.find('> span').each(function () {
    var elem = $(this);
    if (elem.html().substr(-1) == '-') {
      count++;
    }
    
  });
  return count;
}
function cl(dom) {
  return dom.find('> span').length;
}
function range(arr, min, max){
  var count = 0;
  arr.forEach(function (elem) {
    if (elem >= min && elem < max) count++;
  });
  return count;
}

plainText.find('> span').each(function() {
  
  var elem = $(this);
  var ratio = elem.attr('adjustment-ratio');
  if (ratio > -1) {
    var ratioClass = 'okay';
  } 
  if (ratio > -0.5) {
    var ratioClass = 'good';
  }
  if (ratio > 0) {
    var ratioClass = 'good';
  }
  if (ratio > 0.5) {
    var ratioClass = 'okay';
  }
  if (ratio > 1) {
    var ratioClass = 'bad';
  }
  if (ratio > 1.5) {
    var ratioClass = 'bad';
  }
    
  var nTxt = elem.html().replace(/  /g, '<span class="space-' + ratioClass + '"> </span>');
  
  elem.html(nTxt);
});


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console