static html builder
This commit is contained in:
23
index.html
23
index.html
@@ -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:['📙','📚'], // 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>
|
||||
|
||||
Reference in New Issue
Block a user