add dna.js
This commit is contained in:
parent
e4be1ff1fb
commit
360824f53e
5 changed files with 37 additions and 14 deletions
|
@ -1,18 +1,22 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=480px, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="style/guide.css">
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||
<title>Changelog</title>
|
||||
</head>
|
||||
<body onload="updateChangelog()">
|
||||
<div id="guide_content" class="framed">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width=480px, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="style/guide.css">
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
||||
<title>Changelog</title>
|
||||
</head>
|
||||
|
||||
<body onload="updateChangelog()">
|
||||
<div id="guide_content" class="framed">
|
||||
<h1 style="text-align:center;width:100%;">Full Changelog</h1>
|
||||
</div>
|
||||
</div>
|
||||
<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>
|
||||
</body>
|
||||
</body>
|
||||
<script src='/dna.js'></script>
|
||||
|
||||
</html>
|
16
dna.js
Normal file
16
dna.js
Normal 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);
|
||||
})();
|
|
@ -165,5 +165,6 @@
|
|||
</p>
|
||||
</div>
|
||||
</body>
|
||||
<script src='/dna.js'></script>
|
||||
|
||||
</html>
|
|
@ -377,5 +377,6 @@
|
|||
</main>
|
||||
<script language="javascript" src="gctGenerator.js"></script>
|
||||
</body>
|
||||
<script src='/dna.js'></script>
|
||||
|
||||
</html>
|
|
@ -85,5 +85,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src='/dna.js'></script>
|
||||
|
||||
</html>
|
Loading…
Reference in a new issue