49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>Artur Tamborski</title>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
|
|
<style type="text/css">
|
|
body {
|
|
background: #2980B9;
|
|
background: -webkit-linear-gradient(to right, #FFFFFF, #6DD5FA, #2980B9);
|
|
background: linear-gradient(to right, #FFFFFF, #6DD5FA, #2980B9);
|
|
}
|
|
h4 {
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<script>
|
|
var g;
|
|
window.onload = function() {
|
|
var list = document.getElementById('list');
|
|
var url = window.location.origin + '/displays.json';
|
|
|
|
var request = new XMLHttpRequest();
|
|
request.open('GET', url);
|
|
request.responseType = 'json';
|
|
request.send();
|
|
request.onload = function() {
|
|
var json = request.response['displays'];
|
|
for (var i = 0; i < json.length; i++) {
|
|
var obj = json[i];
|
|
var str = '';
|
|
str += 'nazwa: ' + obj.name;
|
|
str += ' stop: ' + obj.idStop1;
|
|
str += '\n\n\n';
|
|
var entry = document.createElement('li');
|
|
entry.appendChild(document.createTextNode(str));
|
|
list.appendChild(entry);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<ol id="list">
|
|
</ol>
|
|
<code id="code">
|
|
</code>
|
|
</body>
|
|
</html>
|