1
0
Fork 0
mirror of https://github.com/Findus23/nonsense.git synced 2024-09-19 16:03:50 +02:00
This commit is contained in:
Lukas Winkler 2017-12-11 21:53:30 +01:00
parent 58d303a748
commit 8cedad9c93

View file

@ -6,6 +6,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#003399"> <meta name="theme-color" content="#003399">
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://piwik.ferienhaus-schiltern.at/";
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '13']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'piwik.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Piwik Code -->
</head> </head>
<body> <body>
<div id="contentbox"> <div id="contentbox">
@ -44,8 +63,12 @@
xhr.open('GET', '/api/description/1/', true); xhr.open('GET', '/api/description/1/', true);
xhr.send(null); xhr.send(null);
} }
fetchDescription(); fetchDescription();
document.getElementById("buttonwrapper").addEventListener("click", fetchDescription); document.getElementById("buttonwrapper").addEventListener("click", function () {
_paq.push(['trackEvent', 'nonsense', 'reload']);
fetchDescription();
});
</script> </script>
</body> </body>
</html> </html>