forked from SheepTester/htmlifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (165 loc) · 5.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gameifer</title>
<meta charset="UTF-8" />
<link href="favicon.ico" rel="icon" type="image/x-icon" />
<meta
name="description"
content="Converts a Scratch project to HTML/JavaScript
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<a href="Manaphy.html">View example</a>
<a href="mailto:[email protected]">Email Gameifer</a>
<!-- no-offline -->
<link rel="stylesheet" type="text/css" href="../../sheep3.css" />
<script src="../../sheep3.js" charset="utf-8"></script>
<!-- /no-offline -->
<link
href="https://fonts.googleapis.com/css2?family=Exo:wght@500&family=Roboto:wght@300&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./main.css" />
<script type="text/javascript">
window.errors = []
if (window.addEventListener) {
window.addEventListener(
'error',
function (e) {
if (e.message) {
if (e.error && e.error.stack) {
if (e.message.indexOf('Uncaught SyntaxError') === 0) {
window.errors.push(
e.message +
' at ' +
e.filename +
':' +
e.lineno +
':' +
e.colno
)
} else {
window.errors.push(e.error.stack)
}
if (window.onNewError) window.onNewError()
}
} else {
window.errors.push(
'Problem loading ' + (e.target.src || e.target.href)
)
if (window.onNewError) window.onNewError()
}
window.onerror = null
},
true
) // true so that errors bubble up to window
window.addEventListener(
'unhandledrejection',
function (e) {
window.errors.push(
e.reason && (e.reason.stack || e.reason.message || e.reason)
)
if (window.onNewError) window.onNewError()
},
false
)
}
window.onerror = function (message, source, lineno, colno, error) {
if (colno) {
lineno += ':' + colno
}
if (error && error.stack) {
window.errors.push(error.stack)
} else {
window.errors.push(message + ' at ' + source + ':' + lineno)
}
if (window.onNewError) window.onNewError()
}
</script>
</head>
<body>
<textarea
id="errors"
readonly
placeholder="I have not logged any errors."
></textarea>
<div class="header">
<h1>Project HTMLifier</h1>
<h3><em>Convert a Scratch project to HTML</em></h3>
<button
class="htmlify"
id="other-htmlify-btn"
form="options"
type="submit"
>
HTMLify
</button>
</div>
<div class="mainarea">
<p>
</p>
<div class="notice info">
<p>
</p>
</div>
<div id="root">
<noscript>
<div class="notice start-warning">
<p>
Please enable JavaScript. Converting projects can't be done with
HTML and CSS alone.
</p>
</div>
</noscript>
<div class="notice start-warning hidden" id="js-enabled">
<p>
If you see this, you can check to see if there were
<a href="#errors">any issues</a> loading the HTMLifier. Make sure
you're using a modern browser.
</p>
<p class="hidden" id="no-nullish-coalescing">
Your browser does not support modern JavaScript features; check to
make sure
<a href="https://caniuse.com/mdn-javascript_operators_nullish_coalescing"
your browser is modern</a
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/63029a5137898912e96450fa/1gb12ljp7';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</p>
</div>
</div>
<p>
</div>
<script src="./index.bundle.min.js" charset="utf-8"></script>
<script type="text/javascript">
var errorsTextarea = document.getElementById('errors')
if (!window.onNewError) {
window.onNewError = function () {
errorsTextarea.value =
window.errors.length + ' errors(s)\n' + window.errors.join('\n')
}
window.onNewError()
}
try {
eval('0 ?? 0')
} catch (_) {
var oldBrowserNotice = document.getElementById('no-nullish-coalescing')
oldBrowserNotice.className = ''
}
var hasJs = document.getElementById('js-enabled')
if (hasJs) {
hasJs.classList.remove('hidden')
}
</script>
</body>
</html>