forked from atomicptr/dauntless-builder-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (74 loc) · 4.2 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
<!doctype html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/assets/icon.png" />
<link rel="preload" href="/dist/vendors-dauntless-builder.js" as="script" />
<link rel="preload" href="/dist/dauntless-builder.js" as="script" />
<link rel="preload" href="/assets/bg.jpg" as="image" />
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" as="style" />
<link rel="preload" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" as="style" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />
<section class="section">
<div id="app"></div>
<noscript>
<div class="notification is-info" style="max-width: 800px; margin-left: auto; margin-right: auto; text-align: center;">
<h2 class="title">Dauntless Builder requires JavaScript.</h2>
<p>
You have seem to have JavaScript disabled. Dauntless Builder is a modern web application
built on top of tons of JavaScript and is pretty much useless without it.
</p>
<img src="/assets/sadhoots.png" style="max-width: 300px; margin-top: 50px; margin-left: auto; margin-right: auto;" />
</div>
</noscript>
</section>
<script>
// developer mode options
window.enableDeveloperMode = function() {
localStorage.setItem("__db_developer_mode", "enabled");
location.reload();
};
window.disableDeveloperMode = function() {
localStorage.removeItem("__db_developer_mode");
location.reload();
};
window.isDeveloperModeEnabled = function() {
return localStorage.getItem("__db_developer_mode") === "enabled";
};
// From library IECap https://github.com/helloilya/iecap/blob/master/iecap.js#L59
window.getIEVersion = function() {
var agent = window.navigator.userAgent,
type = null;
if(agent.indexOf('MSIE') > 0) {
type = agent.indexOf('MSIE');
return parseInt(agent.substring(type+5, agent.indexOf('.', type)));
}
if(agent.indexOf('Trident') > 0) {
type = agent.indexOf('rv:');
return parseInt(agent.substring(type+3, agent.indexOf('.', type)));
}
return false;
};
// detect if user is using Internet Explorer and show them a warning.
if (window.getIEVersion() !== false) {
document.write(
"<div class=\"notification is-info\" style=\"max-width: 800px; margin-left: auto; margin-right: auto; text-align: center;\">\n" +
" <h2 class=\"title\">Dauntless Builder requires a modern web browser.</h2>\n" +
" <p>\n" +
" You seem to be using Internet Explorer, Dauntless Builder is a modern web application\n" +
" built on top of technologies that require a modern web browser in order to function.\n" +
" Please consider using this website with a browser like <a href=\"https://firefox.com\">Firefox</a>," +
" <a href=\"https://www.google.com/chrome/\">Chrome</a> or anything else that supports modern web standards." +
" </p>\n" +
" <img src=\"/assets/sadhoots.png\" style=\"max-width: 300px; margin-top: 50px; margin-left: auto; margin-right: auto;\" />\n" +
"</div>"
);
}
</script>
<script src="/dist/vendors-dauntless-builder.js"></script>
<script src="/dist/dauntless-builder.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<script>var _paq=_paq||[];_paq.push(["setDoNotTrack",true]);_paq.push(["disableCookies"]);_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);(function(){var u="//stats.dauntless-builder.com/";_paq.push(['setTrackerUrl',u+'piwik.php']);
_paq.push(['setSiteId','3']);var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
g.type='text/javascript';g.async=true;g.defer=true;g.src=u+'piwik.js';s.parentNode.insertBefore(g,s)})();</script>