-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
110 lines (99 loc) · 4.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Cognitive Studio</title>
<base href="/CognitiveServices.Explorer/">
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link href="css/site.css" rel="stylesheet" />
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<!-- Metadata -->
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=yes" name="viewport">
<meta name="author" content="JK (Jernej Kavka)">
<meta name="description" content="App to explore and experiment Azure Cognitive Services">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<!-- PWA -->
<link rel="manifest" href="manifest.json">
<link rel="script" href="serviceworker.js">
<meta name="theme-color" content="#8AD" />
<!-- Apple -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<!-- MatBlazor-->
<script src="_content/MatBlazor/dist/matBlazor.js"></script>
<link href="_content/MatBlazor/dist/matBlazor.css" rel="stylesheet" />
<!-- Blazor FileReader -->
<script src="_content/Blazor.FileReader/FileReaderComponent.js"></script>
</head>
<body>
<app>
<div class="triangle-container">
<div class="triangles">
</div>
</div>
<div class="loading-container">
<img src="android-chrome-192x192.png" alt="Loading" title="Loading Cognitive Studio app" /><br />
Loading Cognitive Studio App v0.13.0b...<br />
<span><small>May take a while to load Blazor libraries and it might not work on older browser or iOS.</small></span>
</div>
</app>
<!-- PWA script -->
<script>
if ('serviceWorker' in navigator) {
console.log('Registering service worker now');
navigator.serviceWorker.register('serviceworker.js')
.then(function () {
console.log('Service Worker Registered');
});
}
</script>
<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// https://github.com/rafrex/spa-github-pages
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
// ----------------------------------------------------------------------
// This script checks to see if a redirect is present in the query string
// and converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search) {
var q = {};
l.search.slice(1).split('&').forEach(function (v) {
var a = v.split('=');
q[a[0]] = a.slice(1)
.join('=')
.replace(/~and~/g, '&');
});
if (q.p !== undefined) {
// Added support for non-main repos based on https://jkdev.me/publish-client-side-blazor-to-github-pages/?cse
var repoName = l.pathname.slice(0, -1);
if (q.p !== undefined) {
q.p = q.p.replace(`${repoName}/`, '/');
}
window.history.replaceState(null, null,
repoName + (q.p || '') +
(q.q ? ('?' + q.q) : '') +
l.hash
);
}
}
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->
<script src="_framework/blazor.webassembly.js"></script>
<script src="scripts/camera.js" type="text/javascript" async></script>
<script src="scripts/web_audio_recorder_js/WebAudioRecorder.js"></script>
<script src="scripts/audio-recording.js"></script>
</body>
</html>