-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (57 loc) · 2.13 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
<!DOCTYPE html>
<!-- See http://www.firepad.io/docs/ for detailed embedding docs. -->
<html>
<head>
<base href="." />
<meta charset="utf-8" />
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.5.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.4/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.4/firebase-database.js"></script>
<!-- <script src="https://www.gstatic.com/firebasejs/5.5.4/firebase.js"></script> -->
<!-- CodeMirror -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/codemirror.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.15/codemirror.css"
/>
<!-- Styling -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"
/>
<!-- Firepad -->
<link
rel="stylesheet"
href="https://firepad.io/releases/v1.5.9/firepad.css"
/>
<script src="https://firepad.io/releases/v1.5.9/firepad.min.js"></script>
<!-- <script src="firepad-userlist.js"></script> -->
<!-- Preact, Preact Hooks, and HTM -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/preact.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/htm.min.js"></script>
<script src="https://unpkg.com/[email protected]/hooks/dist/hooks.umd.js"></script>
<script>
const { h, render, createRef, Component } = preact;
const { useEffect, useState, useRef } = preactHooks;
const html = htm.bind(h);
const firebase = window.firebase;
const CodeMirror = window.CodeMirror;
const Firepad = window.Firepad;
</script>
<style>
/* Height / width / positioning can be customized for your use case.
For demo purposes, we make firepad fill the entire browser. */
#firepad-container {
height: 95vh;
}
.powered-by-firepad {
display: none !important;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="app.js"></script>
</body>
</html>