-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
124 lines (116 loc) · 5.78 KB
/
index.html
File metadata and controls
124 lines (116 loc) · 5.78 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
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Editor</title>
<link rel="stylesheet" href="resources/libs/bootstrap-5.1.3/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header></header>
<nav class="navbar bg-dark text-white">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Code Editor</a>
</div>
<ul class="nav">
<li class="nav-item">
<button type="button" class="btn btn-outline-danger btn-sm me-2" id="deleteTemplate">
Delete This Template
</button>
</li>
<li class="nav-item">
<select id="templateList" class="form-select form-select-sm" aria-label="Select Template">
<option selected>History</option>
</select>
</li>
<li class="nav-item">
<!-- button trigger save modal -->
<button type="button" class="btn btn-success btn-sm ms-2" data-bs-toggle="modal" data-bs-target="#saveCodeModal">
SAVE
</button>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="okck--code-viewer col col-md-12 p-3" id="codeViewer">
<iframe src="" frameborder="0" id="runCode"></iframe>
</div>
</div>
</div>
<footer class="container-fluid fixed-bottom">
<div class="row gx-3">
<div class="col col-md-12">
<ul class="okck--menu-sub nav p-2">
<li class="nav-item me-2">
<button id="clearCode" class="btn btn-outline-dark btn-sm" style="opacity: .75">Clear Code</button>
</li>
<li class="nav-item me-auto">
<button id="defaultCode" class="btn btn-outline-primary btn-sm" style="opacity: .75">Default Code</button>
</li>
<li class="nav-item">
<button id="minimizeButton" class="btn btn-outline-dark btn-sm">
Minimize
</button>
</li>
<li class="nav-item">
<button id="runButton" class="btn btn-dark btn-sm ms-2">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">
<path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"/>
<path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"/>
</svg>
Run
</button>
</li>
</ul>
</div>
</div>
<div class="okck--code-editor row gx-3" id="codeEditor">
<div class="col col-md-4 code-editor">
<label>JS</label>
<textarea id="codeJS" cols="30" rows="10"></textarea>
</div>
<div class="col col-md-4 code-editor">
<label>HTML</label>
<textarea id="codeHTML" cols="30" rows="10"></textarea>
</div>
<div class="col col-md-4 code-editor">
<label>CSS</label>
<textarea id="codeCSS" cols="30" rows="10"></textarea>
</div>
</div>
</footer>
<!-- save code as template modal -->
<div class="modal fade okck--code-save-modal" id="saveCodeModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<form id="saveCodeForm">
<div class="form-group">
<label for="codeName" class="mb-2">Save Code as Template</label>
<input type="text" class="form-control form-control-sm" id="templateName" placeholder="Template Name">
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<button type="submit" class="btn btn-danger btn-sm mt-2">Save Code</button>
</form>
</div>
</div>
</div>
</div>
<!-- delete template info toast -->
<!-- <div class="toast align-items-center text-white bg-danger border-0" role="alert" aria-live="assertive" aria-atomic="true" id="deletedTemplateToast" data-bs-delay="3000">
<div class="d-flex">
<div class="toast-body">
Template is deleted.
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div> -->
<script src="resources/libs/bootstrap-5.1.3/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>
<!-- DONE FOR TODAY - 17.22 -->