Skip to content

Commit d5ddb07

Browse files
authored
Create index.html
1 parent 906f220 commit d5ddb07

File tree

1 file changed

+186
-0
lines changed

1 file changed

+186
-0
lines changed

www/index.html

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
8+
/>
9+
<link rel="stylesheet" href="./res/icons/style.css" />
10+
<link rel="stylesheet" href="./res/file-icons/style.css" />
11+
12+
<script>
13+
(function () {
14+
var __testEl = document.createElement("div");
15+
var __testChildEl = document.createElement("div");
16+
if (__testEl.append) {
17+
__testEl.append(__testChildEl);
18+
if (__testEl.children.length === 1) {
19+
return;
20+
}
21+
22+
HTMLElement.prototype.append = function () {
23+
var argArr = Array.prototype.slice.call(arguments),
24+
docFrag = document.createDocumentFragment();
25+
26+
argArr.forEach(function (argItem) {
27+
var isNode = argItem instanceof Node;
28+
argItem = isNode
29+
? argItem
30+
: document.createTextNode(String(argItem));
31+
docFrag.appendChild(argItem);
32+
});
33+
34+
this.appendChild(docFrag);
35+
};
36+
}
37+
})();
38+
39+
window._regeneratorRuntime = null;
40+
function startsWith(string, needle) {
41+
return string.indexOf(needle) === 0;
42+
}
43+
44+
// save all touch events added by ace editor so it can be use in src/ade/touchHandler.js
45+
var __oldAddEventListener = HTMLElement.prototype.addEventListener;
46+
HTMLElement.prototype.addEventListener = function (
47+
type,
48+
listener,
49+
useCapture,
50+
allowed,
51+
) {
52+
if (typeof useCapture === "boolean") {
53+
allowed = useCapture;
54+
useCapture = undefined;
55+
}
56+
57+
if (type === "contextmenu" && !allowed) {
58+
return;
59+
}
60+
61+
if (allowed) {
62+
__oldAddEventListener.call(this, type, listener, useCapture);
63+
return;
64+
}
65+
66+
if (
67+
this.classList.contains("editor-container") &&
68+
startsWith(type, "touch")
69+
) {
70+
if (!this.eventListeners) {
71+
this.eventListeners = {};
72+
}
73+
74+
if (!this.eventListeners[type]) {
75+
this.eventListeners[type] = [];
76+
}
77+
this.eventListeners[type].push({
78+
listener: listener,
79+
useCapture: useCapture,
80+
});
81+
82+
return;
83+
}
84+
__oldAddEventListener.call(this, type, listener, useCapture);
85+
};
86+
</script>
87+
88+
<script src="cordova.js"></script>
89+
<script src="./js/emmet-core.js"></script>
90+
<script src="./js/ace/ace.js"></script>
91+
<script src="./js/ace/ext-beautify.js"></script>
92+
<script src="./js/ace/ext-code_lens.js"></script>
93+
<script src="./js/ace/ext-emmet.js"></script>
94+
<script src="./js/ace/ext-language_tools.js"></script>
95+
<script src="./js/ace/ext-themelist.js"></script>
96+
<script src="./js/ace/ext-elastic_tabstops_lite.js"></script>
97+
<script src="./js/ace/ext-hardwrap.js"></script>
98+
<script src="./js/ace/ext-linking.js"></script>
99+
<script src="./js/ace/ext-rtl.js"></script>
100+
<script src="./js/ace/ext-spellcheck.js"></script>
101+
<script src="./js/ace/ext-error_marker.js"></script>
102+
<script src="./js/ace/ext-whitespace.js"></script>
103+
<script src="./js/ace/ext-static_highlight.js"></script>
104+
<script src="./js/ace/ext-inline_autocomplete.js"></script>
105+
106+
<script>
107+
var color = localStorage.getItem("__primary_color");
108+
var __bg_color = "#20202c";
109+
if (color) {
110+
__bg_color = color;
111+
}
112+
113+
document.querySelector(":root").style.cssText =
114+
"--bg-color: " + __bg_color;
115+
</script>
116+
117+
<style>
118+
:root {
119+
--test-height: 45px;
120+
}
121+
122+
body.loading {
123+
position: relative;
124+
}
125+
126+
body.loading.splash::before {
127+
content: attr(data-version);
128+
background-image: url("./res/logo/logo.svg");
129+
background-position: center;
130+
background-repeat: no-repeat;
131+
background-size: 180px;
132+
background-color: #9999ff;
133+
background-color: var(--bg-color);
134+
position: fixed;
135+
top: 0;
136+
right: 0;
137+
height: 100vh;
138+
width: 100vw;
139+
z-index: 999999;
140+
text-align: center;
141+
line-height: 150vh;
142+
color: rgb(209, 209, 209);
143+
letter-spacing: 2.4px;
144+
font-size: 1.2rem;
145+
font-weight: 600;
146+
}
147+
148+
body.loading.splash::after {
149+
position: absolute;
150+
bottom: 0;
151+
left: 0;
152+
left: 50%;
153+
transform: translate(-50%, 0);
154+
content: attr(data-small-msg);
155+
margin: 15px auto;
156+
z-index: 999999;
157+
color: rgb(209, 209, 209);
158+
font-size: 1rem;
159+
width: 90vw;
160+
text-align: center;
161+
}
162+
</style>
163+
164+
<script src="./js/build/main.build.js"></script>
165+
166+
<title>Acode</title>
167+
<!--styles-->
168+
<link rel="stylesheet" href="./css/build/218.css">
169+
<link rel="stylesheet" href="./css/build/32.css">
170+
<link rel="stylesheet" href="./css/build/383.css">
171+
<link rel="stylesheet" href="./css/build/53.css">
172+
<link rel="stylesheet" href="./css/build/609.css">
173+
<link rel="stylesheet" href="./css/build/about.css">
174+
<link rel="stylesheet" href="./css/build/customTheme.css">
175+
<link rel="stylesheet" href="./css/build/donate.css">
176+
<link rel="stylesheet" href="./css/build/fileBrowser.css">
177+
<link rel="stylesheet" href="./css/build/main.css">
178+
<link rel="stylesheet" href="./css/build/plugins.css">
179+
<link rel="stylesheet" href="./css/build/themeSetting.css">
180+
<!--styles_end-->
181+
</head>
182+
183+
<body class="loading splash" data-version="">
184+
<wc-page id="root" class="primary"></wc-page>
185+
</body>
186+
</html>

0 commit comments

Comments
 (0)