Made a first version of the site

This commit is contained in:
2018-03-23 15:31:31 +01:00
parent 019378adc7
commit 5fcd620c2a
47 changed files with 6056 additions and 0 deletions

36
assets/js/001.js Executable file
View File

@@ -0,0 +1,36 @@
// By: h01000110 (hi)
// github.com/h01000110
var max = document.getElementsByClassName("btn")[1];
var min = document.getElementsByClassName("btn")[2];
function maximize () {
var post = document.getElementsByClassName("content")[0];
var cont = document.getElementsByClassName("post_content")[0];
var wid = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName("body")[0].clientWidth;
if (wid > 900) {
widf = wid * 0.9;
post.style.width = widf + "px";
if (wid < 1400) {
cont.style.width = "99%";
} else {
cont.style.width = "99.4%";
}
}
}
function minimize () {
var post = document.getElementsByClassName("content")[0];
var cont = document.getElementsByClassName("post_content")[0];
var wid = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName("body")[0].clientWidth;
if ( wid > 900 ) {
post.style.width = "800px";
cont.style.width = "98.5%";
}
}
max.addEventListener('click', maximize, false);
min.addEventListener('click', minimize, false);

51
assets/js/002.js Executable file
View File

@@ -0,0 +1,51 @@
// By: h01000110 (hi)
// github.com/h01000110
function numbers () {
var fields = document.getElementsByTagName("code");
for (field in fields) {
var num = 0;
var select = fields[field].innerText;
var select_f = select.split(/\n/);
var tab = document.createElement("table");
// IF YOU USE MARKDOWN AND YOU HAVE BEEN GETTING ONE ADDITIONAL LINE IN YOUR TAG CODE
// UNCOMMENT THE SECTION BELOW
/* MARKDOWN SECTION /**/
select_f.splice(-1, 1);
/* END OF SECTION*/
fields[field].innerHTML = "";
fields[field].appendChild(tab);
for (line in select_f) {
var row = document.createElement("tr");
var col = document.createElement("th");
var colc = document.createElement("th");
col.innerText = num + 1;
colc.innerText = select_f[line];
row.appendChild(col);
row.appendChild(colc);
tab.appendChild(row);
num = num + 1;
// STYLE SECTION - If you want, change it below
col.style.textAlign = "right";
colc.style.textAlign = "left";
tab.style.border = "0";
col.style.border = "0";
colc.style.border = "0";
col.style.padding = "3px";
colc.style.padding = "3px";
col.style.borderRight = "2px solid #777777";
// END OF SECTION
}
}
}
window.onload = numbers();

2
assets/js/highlight.pack.js Executable file

File diff suppressed because one or more lines are too long