-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditor.html
70 lines (68 loc) · 4.03 KB
/
editor.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>SCORMy Editor</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<link rel="stylesheet" type="text/css" href="node_modules/@smarthtmlelements/smart-elements-community/source/styles/smart.default.css" />
<link rel="stylesheet" type="text/css" href="node_modules/@smarthtmlelements/smart-elements-community/styles/demos.css" />
<link rel="stylesheet" type="text/css" href="node_modules/@smarthtmlelements/smart-elements-community/styles/common.css" />
<!-- <link rel="stylesheet" type="text/css" href="node_modules/quill/dist/quill.snow.css"> -->
<script type="text/javascript" src="node_modules/@smarthtmlelements/smart-elements-community/scripts/common.js"></script>
<!-- <script type="text/javascript" src="node_modules/@smarthtmlelements/smart-elements-community/scripts/webcomponents-lite.js"></script> -->
<!-- load the webcomponents loader, which injects the necessary polyfill bundle -->
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="text/javascript" src="node_modules/@smarthtmlelements/smart-elements-community/source/smart.elements.js"></script>
<script type="text/javascript" src="scorm_api.js"></script>
<script type="module" src="node_modules/file-saver/dist/FileSaver.min.js"></script>
<script type="text/javascript" src="node_modules/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="node_modules/jszip-utils/dist/jszip-utils.min.js"></script>
<script type="text/javascript" src="node_modules/@babel/standalone/babel.min.js"></script>
<!-- <script type="text/javascript" src="node_modules/quill/dist/quill.min.js"></script> -->
<script type="text/javascript" src="node_modules/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src='main.js'></script>
<script type="text/javascript" src='editor.js'></script>
<script type="text/javascript" src="editor_api.js"></script>
</head>
<body onload="start_editor()">
<div id="menu">
<smart-menu animation="simple" unfocusable>
<smart-menu-item shortcut="Ctrl+B"><b fontSize="14" bold>B</b></smart-menu-item>
<smart-menu-item shortcut="Ctrl+N">
<input type="number" id="fontSize" width="2" onchange="fontSizeChange(this)" value="12">
</smart-menu-item>
</smart-menu>
</div>
<input type="file" hidden accept="application/json" oninput="load_file(event)">
<smart-menu id="fileMenu">
<smart-menu-item onclick="new_project()">New</smart-menu-item>
<smart-menu-item onclick="open_file_dialog()">Open</smart-menu-item>
<smart-menu-item onclick="save_slides()">Save As...</smart-menu-item>
<smart-menu-item onclick="export_SCORM()" separator>Export...</smart-menu-item>
<smart-menu-item disabled>Exit</smart-menu-item>
</smart-menu>
<template id="new-slide">
<smart-button class="flat" onclick="add_question_slide(this,4)">Add Question</smart-button>
<smart-button class="flat" onclick="add_info_slide(this)">Add Info Slide</smart-button>>
</template>
<template id="new-info-slide">
<!-- Create the editor container -->
<!-- <div id="editor"></div> -->
<textarea name="editor" id="editor" class="info_editor" rows="10" cols="80">
This is a slide with no Questions
</textarea>
</template>
<smart-tabs id="horizontalTabs1" class="demoTabs" selected-index="1"
reorder close-buttons add-new-tab>
<smart-tab-item label="Slide 1">
</smart-tabs>
<!-- <smart-button class="primary">+</smart-button> -->
<div id="navBar" align="center">
<smart-button id="backBtn" onclick="prevSlide()">Back</smart-button>
<smart-button id="nextBtn" onclick="nextSlide(this)">Next</smart-button>
<smart-button id="submitBtn" onclick="onSubmit()">Submit</smart-button>
</div>
</body>
</html>