-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpad.html
More file actions
46 lines (42 loc) · 2.3 KB
/
pad.html
File metadata and controls
46 lines (42 loc) · 2.3 KB
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
<!doctype html>
<html lang="en" class="">
<head>
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicon.ico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicon.ico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon.ico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicon.ico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicon.ico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicon.ico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon.ico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicon.ico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon.ico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/favicon.ico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon.ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon.ico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon.ico/favicon-16x16.png">
<link rel="stylesheet" type="text/css" href="/style/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/style/common.css">
<script src="/script/axios.min.js"></script>
<script src="/script/vue.min.js"></script>
<script src="/script/pythonpad.bundle.js"></script>
<script src="/script/common.js"></script>
<title>Pythonpad</title>
</head>
<body style="margin: 0; padding: 0;"></body>
<div class="u-fullscreen u-fullscreen-pad" id="pad"></div>
<script>
async function loadContent() {
const params = window.getSearchParameters()
window.history.replaceState(null, null, `/pads/${params.p}.html`)
try {
const res = await axios.get(`/pads/${params.p}.pypad.json`)
Pythonpad('pad', res.data)
} catch (err) {
console.error(err)
document.body.innerHTML = 'Failed to load.'
}
}
loadContent()
</script>
</body>
</html>