static html builder

This commit is contained in:
Q
2022-01-16 09:59:27 +02:00
parent 428465d2f2
commit 8dd5bde52a
3 changed files with 119 additions and 8 deletions

View File

@@ -48,13 +48,14 @@
}
.blink {
-webkit-animation: blinker 0.5s infinite;
-moz-animation: blinker 0.5s infinite;
animation: blinker 0.5s infinite;
-moz-animation: blinker 0.5s infinite;
animation: blinker 0.5s infinite;
}
@keyframes blinker {
0% { opacity: 0.00; }
100% { opacity: 1.00; }
}
/* TEMPLATED:STYLE */
</STYLE>
<script language="javascript">
function init() {
@@ -269,16 +270,21 @@ function reload_source() {
function get_URL(s) {
if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }
else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
xmlhttp.onreadystatechange=function()
{ if (xmlhttp.readyState==4 && xmlhttp.status==200)
{ parse_links(xmlhttp.responseText);
}}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
parse_links(xmlhttp.responseText);
}
}
xmlhttp.open("GET", s, true);
xmlhttp.send();
}
function read_links() {
get_URL(config.source);
if (config.source === null && config.links) {
parse_links(config.links);
} else {
get_URL(config.source);
}
}
function parse_links(s) {
@@ -498,7 +504,8 @@ var config = {
arrows:['&#x1F4D9;','&#x1F4dA;'], // Arrow characters for in/out tab icon
foldCategories:true // fold categories in single column mode
};
// TEMPLATED:CONFIG
// TEMPLATED:LINKS
</script>
<script language="javascript" src="config.js"></script>
</head>