This commit is contained in:
Hell13Cat
2022-04-23 21:28:03 +03:00
parent 1738f647ce
commit cd717bfa75
11 changed files with 37 additions and 17 deletions
+8 -1
View File
@@ -1,9 +1,16 @@
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}
function addstylesheet(name_short) {
var head = document.head;
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
name_style = "css/color-"+name_short+".css"
version = 2
name_style = "css/color-"+name_short+".css?v=" + version;
link.href = name_style;
link.id = "currentstylesheet";
head.appendChild(link);