-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (43 loc) · 1.3 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-139608393-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-139608393-1');
</script>
<meta charset="utf-8">
<title>Experiments with Towards AI|Towards Artificial Intelligence</title>
</head>
<body>
<!-- Scripts -->
<script id="service-worker" type="text/javascript">
if ('serviceWorker'in navigator) {
navigator.serviceWorker.register('/sw.js').then(function(reg) {
console.log("ServiceWorker registered sucessfully.");
}).catch(function(err) {
console.log("Registration was not successful, further details:", err)
});
}
</script>
<script type="text/javascript">
setTimeout(function(){
window.addEventListener("resize", onResizeFunction);
window.addEventListener("load", onLoadFunction);
function onResizeFunction (e){
var width = window.innerWidth;
if (width > 0) (
window.location = "https://towardsai.net/p"
)
};
function onLoadFunction(e){
onResizeFunction();
};
onLoadFunction();
}, 0);
</script>
<!-- /Scripts -->
</body>
</html>