2017-12-11 14:55:40 +01:00
|
|
|
<!DOCTYPE html>
|
2017-12-11 18:24:25 +01:00
|
|
|
<html lang="de">
|
2017-12-11 14:55:40 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2017-12-11 18:47:15 +01:00
|
|
|
<title>nonsense</title>
|
2017-12-11 18:53:15 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2017-12-12 17:17:53 +01:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
|
|
|
|
<link rel="manifest" href="/icons/manifest.json">
|
|
|
|
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#5bbad5">
|
|
|
|
<link rel="shortcut icon" href="/icons/favicon.ico">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="nonsense">
|
|
|
|
<meta name="application-name" content="nonsense">
|
|
|
|
<meta name="msapplication-config" content="/icons/browserconfig.xml">
|
2017-12-11 19:09:54 +01:00
|
|
|
<meta name="theme-color" content="#003399">
|
2017-12-11 14:55:40 +01:00
|
|
|
<link rel="stylesheet" href="style.css">
|
2017-12-11 21:53:30 +01:00
|
|
|
<!-- 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 -->
|
2017-12-11 14:55:40 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="contentbox">
|
|
|
|
<a href="#" id="buttonwrapper">
|
|
|
|
<svg viewBox="0 0 205.2 205.2" height="775.7" width="775.7" id="icon">
|
|
|
|
<g transform="translate(-3.2 -43.2)">
|
|
|
|
<circle r="88.7" cy="145.8" cx="105.8" fill="#fff"></circle>
|
|
|
|
<path d="M121.4 198.8c-.2-.2-5.1-.4-10.9-.5-5.7-.1-10.4-.4-10.4-.7 0-.3 9-10 20-21.8l20.1-21.4-50.8-.2-50.9-.2V134.3l51-.2 51.1-.2-16.7-17.6-20.4-21.6-3.8-3.9H124.4l24.6 26.3a687.5 687.5 0 0 1 24.6 27.1c0 .7-41.6 45-48.7 52-1.7 1.6-3.3 2.8-3.5 2.6z"></path>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
<span id="button">Neu Generieren</span>
|
|
|
|
</a>
|
|
|
|
<div id="box">
|
|
|
|
<div id="name">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="description">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-12 14:43:50 +01:00
|
|
|
<a href="https://github.com/Findus23/nonsense" class="github-corner"
|
|
|
|
aria-label="View source on Github" target="_blank">
|
|
|
|
<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true">
|
2017-12-12 14:31:04 +01:00
|
|
|
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
|
|
|
|
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
|
|
|
|
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
|
|
|
|
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
|
|
|
|
fill="currentColor" class="octo-body"></path>
|
|
|
|
</svg>
|
|
|
|
</a>
|
2017-12-11 14:55:40 +01:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function fetchDescription() {
|
|
|
|
var descriptionDiv = document.getElementById("description");
|
|
|
|
var nameDiv = document.getElementById("name");
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.onreadystatechange = function () {
|
|
|
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
|
|
if (xhr.status === 200) {
|
|
|
|
var data = JSON.parse(xhr.responseText)[0];
|
|
|
|
descriptionDiv.innerText = data.description;
|
|
|
|
nameDiv.innerText = data.name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2017-12-11 18:24:25 +01:00
|
|
|
xhr.open('GET', '/api/description/1/', true);
|
2017-12-11 14:55:40 +01:00
|
|
|
xhr.send(null);
|
|
|
|
}
|
2017-12-11 21:53:30 +01:00
|
|
|
|
2017-12-11 14:55:40 +01:00
|
|
|
fetchDescription();
|
2017-12-11 21:53:30 +01:00
|
|
|
document.getElementById("buttonwrapper").addEventListener("click", function () {
|
|
|
|
_paq.push(['trackEvent', 'nonsense', 'reload']);
|
|
|
|
fetchDescription();
|
|
|
|
});
|
2017-12-11 14:55:40 +01:00
|
|
|
</script>
|
|
|
|
</body>
|
2017-12-11 18:24:25 +01:00
|
|
|
</html>
|