-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
61 lines (58 loc) · 2.18 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Wavey Audio Editor</title>
<link href="styles/app.css" rel="stylesheet" type="text/css">
<link href="styles/layout.css" rel="stylesheet" type="text/css">
<link href="styles/base.css" rel="stylesheet" type="text/css">
<link href="lib/octicons/octicons.css" rel="stylesheet" type="text/css">
<link href="lib/fontello/css/audio.css" rel="stylesheet" type="text/css">
<script>
(function(){
var default_theme = "elementary.css";
var theme_storage_key = "audio editor theme";
var href_for = function(theme){
// TODO: avoid absolute URL to make deployment more flexible?
return "/build/themes/" + theme;
};
try{
var current_theme = localStorage[theme_storage_key];
}catch(e){}
current_theme = current_theme || default_theme;
document.write('<link rel="stylesheet" type="text/css" href="' + href_for(current_theme) + '" id="theme-link" />');
var theme_link = document.getElementById("theme-link");
self.set_theme = function(theme){
current_theme = theme;
try{
localStorage[theme_storage_key] = current_theme;
}catch(e){}
theme_link.href = href_for(current_theme);
render(); // update for use of get_theme()
};
self.get_theme = function(){
return current_theme;
};
})();
</script>
<link rel="icon" href="images/wavey-logo-16.png" sizes="16x16" type="image/png">
<link rel="icon" href="images/wavey-logo-512.png" sizes="512x512" type="image/png">
<link rel="icon" href="images/wavey-logo.svg" sizes="any" type="image/svg+xml">
<meta name="viewport" content="width=device-width, user-scalable=no">
<intent action="http://webintents.org/edit" type="audio/*"></intent>
</head>
<body class="window-frame active">
<div id="app"></div>
<script src="lib/polyfill.js"></script>
<script src="build/bundle.js"></script>
<script>
if (location.host === "audio-editor.web.app" || location.host === "audioeditor.ml") {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("service-worker.js").catch(function(error) {
console.warn(error);
});
}
}
</script>
</body>
</html>