Heinleintext

Toggle Font

Included page "component:injection-block-top" does not exist (create it now)

<script>
var font = document.createElement('style');
font.id='font';
font.innerHTML = ".Heinlein { font: {$size}rem MonteCarlo; }";
document.getElementsByTagName('head').item(0).appendChild(font);

let toggleBtn = document.getElementById('u-toggle');
toggleBtn.addEventListener ('click', function() {
let clas = this.className;
if (clas === "HeinleinF") {
font.innerHTML = "";
this.className = "";
} else {
font.innerHTML = ".Heinlein { font: {$size}rem MonteCarlo; }";
this.className = "HeinleinF"
}
});
</script>

Included page "component:injection-block-bottom" does not exist (create it now)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License