add dna.js

This commit is contained in:
Matteias Collet 2020-03-03 18:35:28 +01:00
parent e4be1ff1fb
commit 360824f53e
5 changed files with 37 additions and 14 deletions

View file

@ -1,18 +1,22 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html lang="en"> <html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <head>
<meta name="viewport" content="width=480px, initial-scale=1.0"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style/guide.css"> <meta name="viewport" content="width=480px, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="style/guide.css">
<title>Changelog</title> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head> <title>Changelog</title>
<body onload="updateChangelog()"> </head>
<div id="guide_content" class="framed">
<body onload="updateChangelog()">
<div id="guide_content" class="framed">
<h1 style="text-align:center;width:100%;">Full Changelog</h1> <h1 style="text-align:center;width:100%;">Full Changelog</h1>
</div> </div>
<script> <script>
function updateChangelog(){var e=new XMLHttpRequest;e.onload=function(){if(200==this.status&&null!=this.responseXML){var t=e.responseXML;t=(t=(new DOMParser).parseFromString(e.responseText,"text/xml")).getElementsByTagName("update");try{for(var n=document.getElementById("guide_content"),a=0;a<t.length;a++){var g=t[a].getElementsByTagName("date")[0].textContent.match(/[a-zA-Z0-9]/g).join("");n.innerHTML+='<h2 id="'+g+'"><a href="#'+g+'">'+t[a].getElementsByTagName("date")[0].textContent+"</a></h2>";for(var r=t[a].getElementsByTagName("change"),o=0;o<r.length;o++){n.innerHTML+="<h3>"+r[o].getElementsByTagName("head")[0].textContent+"</h3>";for(var s=r[o].getElementsByTagName("paragraph"),m=0;m<s.length;m++)n.innerHTML+="<p>"+s[m].textContent+"</p>"}}}catch(e){}}},e.open("GET","changelog.xml"),e.send()} function updateChangelog() { var e = new XMLHttpRequest; e.onload = function () { if (200 == this.status && null != this.responseXML) { var t = e.responseXML; t = (t = (new DOMParser).parseFromString(e.responseText, "text/xml")).getElementsByTagName("update"); try { for (var n = document.getElementById("guide_content"), a = 0; a < t.length; a++) { var g = t[a].getElementsByTagName("date")[0].textContent.match(/[a-zA-Z0-9]/g).join(""); n.innerHTML += '<h2 id="' + g + '"><a href="#' + g + '">' + t[a].getElementsByTagName("date")[0].textContent + "</a></h2>"; for (var r = t[a].getElementsByTagName("change"), o = 0; o < r.length; o++) { n.innerHTML += "<h3>" + r[o].getElementsByTagName("head")[0].textContent + "</h3>"; for (var s = r[o].getElementsByTagName("paragraph"), m = 0; m < s.length; m++)n.innerHTML += "<p>" + s[m].textContent + "</p>" } } } catch (e) { } } }, e.open("GET", "changelog.xml"), e.send() }
</script> </script>
</body> </body>
<script src='/dna.js'></script>
</html> </html>

16
dna.js Normal file
View file

@ -0,0 +1,16 @@
var _paq = window._paq || [];
_paq.push(["disableCookies"]),
_paq.push(["trackPageView"]),
_paq.push(["enableLinkTracking"]),
(function() {
var e = "//dna.zint.ch/";
_paq.push(["setTrackerUrl", e + "pdna"]), _paq.push(["setSiteId", "2"]);
var a = document,
t = a.createElement("script"),
p = a.getElementsByTagName("script")[0];
(t.type = "text/javascript"),
(t.async = !0),
(t.defer = !0),
(t.src = e + "jdna"),
p.parentNode.insertBefore(t, p);
})();

View file

@ -165,5 +165,6 @@
</p> </p>
</div> </div>
</body> </body>
<script src='/dna.js'></script>
</html> </html>

View file

@ -377,5 +377,6 @@
</main> </main>
<script language="javascript" src="gctGenerator.js"></script> <script language="javascript" src="gctGenerator.js"></script>
</body> </body>
<script src='/dna.js'></script>
</html> </html>

View file

@ -85,5 +85,6 @@
</div> </div>
</div> </div>
</body> </body>
<script src='/dna.js'></script>
</html> </html>