-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·227 lines (223 loc) · 10.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<meta http-equiv="Cache-Control" content="max-age=200" />
<meta name="description" content="Web App: Communications' Borders">
<title tabindex="1">What are borders?</title>
<meta name="application-name" content="borders">
<link rel="canonical" href="https://www.borders.altervista.org" hreflang="en">
<link rel="manifest" href="data/favicon/black/manifest.json">
<!-- Add to home screen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="borders">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
<link rel="mask-icon" href="data/favicon/black/safari-pinned-tab.svg" color="#000000">
<link rel="apple-touch-startup-image" href="data/favicon/black/apple-icon-precomposed.png">
<link rel="apple-touch-icon" sizes="57x57" href="data/favicon/black/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="data/favicon/black/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="data/favicon/black/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="data/favicon/black/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="data/favicon/black/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="data/favicon/black/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="data/favicon/black/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="data/favicon/black/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="152x152" href="data/favicon/black/apple-icon-167x167.png">
<link rel="apple-touch-icon" sizes="180x180" href="data/favicon/black/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="256x256" href="data/favicon/black/icon-256x256.png">
<link rel="icon" type="image/png" sizes="384x384" href="data/favicon/black/icon-384x384.png">
<link rel="icon" type="image/png" sizes="512x512" href="data/favicon/black/icon-512x512.png">
<link rel="icon" type="image/png" sizes="192x192" href="data/favicon/black/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="data/favicon/black/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="data/favicon/black/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="data/favicon/black/favicon-16x16.png">
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="data/favicon/black/ms-icon-144x144.png">
<meta name="theme-color" content="#000000">
<link rel="stylesheet" href="css/stile.css" media="screen"/>
<script language="javascript" type="text/javascript" src="sw.js"></script>
<script language="javascript" type="text/javascript" src="libraries/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="libraries/p5.sound.min.js"></script>
<script language="javascript" type="text/javascript" src="libraries/arpaToIPA.min.js"></script>
<script language="javascript" type="text/javascript" src="libraries/jquery-3.3.1.slim.min.js"></script>
<script language="javascript" type="text/javascript" src="libraries/p5.speech.min.js"></script>
<script language="javascript" type="text/javascript" src="libraries/rita-small.min.js"></script> <!-- !work -> rita-full.min.js -->
<script language="javascript" type="text/javascript" src="app/borders.js"></script>
</head>
<style>
body, html {
height: 100%;
}
body{
width: 100%;
height: 100%;
text-transform: lowercase;
font-family: 'Noto Sans', sans-serif;
font-weight: 400;
overflow: hidden;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
body#canvas {
display: block;
}
#loader-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
}
.loaded #loader{
opacity: 0;
-webkit-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
}
#canvas {
position: absolute;
top: 0;
width: 100%;
left: 0;
bottom: 33px;
z-index: 0;
}</style>
<body id="canvas">
<script>
var d = new Date();
var h = d.getHours();
var canvas = document.getElementById('canvas');
if(h >= 0 && h <= 8) {
canvas.style.backgroundColor = "#000";
canvas.style.color = "#fff";
} else if (h > 8 && h <= 12){
canvas.style.backgroundColor = "#fff";
canvas.style.color = "#000;"
} else if (h > 12 && h <= 18){
canvas.style.backgroundColor = "#fff";
canvas.style.color = "#000";
} else if (h > 18 && h <= 23){
canvas.style.backgroundColor = "#000";
canvas.style.color = "#fff";
}
</script>
<div id="header">
<div id="logo"></div>
<div class="logotype">borders</div>
</div>
<div id="loader-wrapper">
<div id="loader"></div>
</div>
<script>$(document).ready(function() {// setTimeout loading svg //
setTimeout(function(){
$('body').addClass('loaded');
}, 3000);
});
$(document).ready(function() {
setTimeout(function(){
$('div#loader-wrapper').hide();
}, 4000);
}); </script>
<div id="menu-top-left">
<nav id="menu">
<ul id= "menu-pad-left-list">
<li tabindex="">
<a href="#" onclick="imagoFunction()" class="menu-pad-left no-link" style="touch-action: manipulation;" aria-label="ĭmāgo Function">ĭmāgo</a>
</li>
<li tabindex="">
<a href="#" onclick="sonusFunction()" class="menu-pad-left no-link" style="touch-action: manipulation;" aria-label="sŏnus Function">sŏnus</a>
</li>
<li tabindex="">
<a href="#" onclick="ludusFunction()" class="menu-pad-left no-link" style="touch-action: manipulation;" aria-label="lūdus Function">lūdus</a>
</li>
<li tabindex="">
<a href="#" onclick="areaFunction()" class="menu-pad-left no-link" style="touch-action: manipulation;" aria-label="ārĕa Function">ārĕa</a>
</li>
</ul>
</nav>
</div>
<a href="https://github.com/typerror/Borders" class="github-corner" target="_blank" rel="noopener" aria-label="View source on Github"><svg id="github-octo" width="80" height="80" viewBox="0 0 250 250" aria-hidden="true">
<path d="M5,0H250V245Z"/>
<path id="trace"d="M250,250V237.3L145.1,132.4l-3.2-6.3L130,113.6l-6-2.3L12.7,0H0L250,250"/>
<path d="M134.59,102.71c-14.5-9.3-9.3-19.4-9.3-19.4,3-6.9,1.5-11,1.5-11-1.3-6.6,2.9-2.3,2.9-2.3,3.9,4.6,2.1,11,2.1,11-2.6,10.3,5.1,14.6,8.9,15.9" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M121.29,108.71c-.1.1,3.7,1.5,4.8.4L140,95.31c3.2-2.4,6.2-3.2,8.5-3-8.4-10.6-14.7-24.2,1.6-40.6a23.51,23.51,0,0,1,15.9-7c.6-1.6,3.5-7.4,11.7-10.9,0,0,4.7,2.4,7.4,16.1a58.66,58.66,0,0,1,12.1,9.2,54.32,54.32,0,0,1,9.2,12.2c13.7,2.6,16.2,7.3,16.2,7.3-3.6,8.2-9.4,11.1-10.9,11.7a23.44,23.44,0,0,1-7.1,15.9c-16.4,16.4-30,10-40.6,1.6.2,2.8-1,6.8-5,10.8l-11.7,11.6c-1.2,1.2.6,5.4.8,5.3Z" fill="currentColor" class="octo-body"></path>
</svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
<div id="menu-bottom-right">
<ul id="menu-pad-right-list">
<li tabindex="">
<a href="#" onclick="stopFunction()" class="menu-pad-right no-link" style="touch-action: manipulation;">stop</a> <!-- uno si aspetta che stop blocchi anche le animazioni oltre che il suono -->
</li>
<li tabindex="">
<a href="#" onclick="clearFunction()" class="menu-pad-right no-link" style="touch-action: manipulation;">clear</a>
</li>
<li tabindex="">
<a href="#" onclick="saveFunction()" target="_blank" class="menu-pad-right no-link" style="touch-action: manipulation;">save</a>
</li>
</ul>
</div>
<footer>
<p id="footer"></p>
<p class="hide">
<a href="http://www.accademiadiurbino.it/aabb/" target="_blank" rel="noopener" class="aabb">| academy of fine arts of urbino</a>
<!-- — department of applied arts -->
— new art technologies
— multimedia design — 2017 <!-- && multimedia languages -->
</p>
</footer>
<script language="javascript" type="text/javascript" src="app/main.js"></script>
<script>
/*window.onorientationchange = function() { window.location.reload(); };// If device change orientation then reload the page //
document.addEventListener('touchmove', function (event) {// disable viewport scaling pinch&zoom //
if (event.scale !== 1) { event.preventDefault(); }
}, false);
var lastTouchEnd = 0;
document.addEventListener('touchend', function (event) {
var now = (new Date()).getTime();
if (now - lastTouchEnd <= 300) {
event.preventDefault();
}
lastTouchEnd = now;
}, false);
document.documentElement.addEventListener('touchmove', function (event) {
event.preventDefault();
}, false);
document.addEventListener('touchmove', function(event) {
event = event.originalEvent || event;
if(event.scale > 1) {
event.preventDefault();
}
}, false);*/
$(document).ready(function () {// a link without url at the bottom of the page //
setTimeout(function () {
$('a[href].no-link').each(function () {
var href = this.href;
$(this).removeAttr('href').css('cursor', 'pointer').click(function () {
if (href.toLowerCase().indexOf("#") >= 0) {
} else {
window.open(href, '_blank');
}
});
});
}, 500);
});
</script>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js', { scope: '/' })
.then(function(registration) {
console.log('Service Worker Registered');
});
navigator.serviceWorker.ready.then(function(registration) {
console.log('Service Worker Ready');
});}
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>
</body>
</html>