You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
First-Website/minify/js.js

33 lines
615 B

var d = document.getElementById.bind(document);
var g = document.querySelector.bind(document);
function selectCode(source) {
switch (source) {
case html:
minifyHTML();
break;
case css:
minifyCSS();
break;
case js:
minifyJS();
break;
}
}
function minifyHTML() {
}
if (localStorage.getItem("showHeadsUpMinify") == undefined) {
d("headsUp").style.visibility = "visible"
d("headsUp").style.height = "13rem"
}
function hideHeadsUp() {
d("headsUp").style.height = "0"
}
function removeHeadsUp() {
hideHeadsUp();
localStorage.setItem("showHeadsUpMinify", "1")
}