-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
146 lines (137 loc) · 4.74 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
<!DOCTYPE html>
<html>
<head>
<title>kasgai</title>
<meta content="" />
<meta charset="utf-8" />
<link href="index.css" rel="stylesheet" />
<!-- blockly settings -->
<script src="blockly/blockly_compressed.js"></script>
<script src="blockly/blocks_compressed.js"></script>
<script src="blockly/msg/js/ja.js"></script>
<script src="blockly/javascript_compressed.js"></script>
<!-- firebase settings -->
<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.10.1/firebase-storage.js"></script>
<script>
// Initialize Firebase
const config = {
apiKey: "AIzaSyDozEEmAxyqJU3avAdW_KBommb4HGR5nRk",
authDomain: "kasgai.firebaseapp.com",
databaseURL: "https://kasgai.firebaseio.com",
projectId: "kasgai",
storageBucket: "kasgai.appspot.com",
messagingSenderId: "143262592214",
};
firebase.initializeApp(config);
</script>
<!-- shikkui settings -->
<script src="generators/block_definition.js"></script>
<script src="generators/generator_stub.js"></script>
<!--bootstrap settings-->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
</head>
<body>
<div id="container">
<nav class="navigation">
<div class="btn-group ml-5 mr-auto" role="group">
<button
id="btnGroupDrop1"
type="button"
class="btn btn-secondary dropdown-toggle"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Actions
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a id="uploadImage" target="_blank" class="dropdown-item" href="#"
>Upload Image</a
>
<a class="dropdown-item" href="#">
Load Blocks:
<input
type="file"
id="importBlockXml"
onchange="importBlockXml(this)"
/>
</a>
<a
id="exportBlockXml"
download="workspace.xml"
onclick="exportBlockXml()"
class="dropdown-item"
href="#"
>Save Blocks</a
>
<a
id="exportHtml"
href="#"
onclick="exportHtml()"
class="dropdown-item"
>Export Webpage as HTML</a
>
</div>
</div>
<button
onclick="location.href='/'"
type="button"
class="btn btn-outline-dark mr-5"
>
プロジェクト一覧
</button>
<!--
<a id="exportBlockXml" href="#" download="workspace.xml" onclick="exportBlockXml()">
Save blocks
</a>
<label for="importBlockXml">Load blocks</label>
<input type="file" id="importBlockXml" onchange="importBlockXml(this)" />
<a id="exportHtml" href="#" download="index.html" onclick="exportHtml()">
Export webpage as HTML
</a>
<a id="uploadImage" target="_blank">Upload Image</a>
-->
<button
id="hostButton"
onclick="toggleHost()"
type="button"
class="btn btn-outline-dark mr-5"
>
編集制限モード off
</button>
</nav>
<div id="blocklyArea" class="blockly"></div>
<div id="webcontentsArea" class="preview">
<div id="title">untitled web page</div>
<iframe id="website"></iframe>
</div>
<div class="sourceCode">
<pre id="htmlSourcecode">source code area</pre>
</div>
</div>
<script src="index.js"></script>
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
</body>
</html>