-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (112 loc) · 2.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<style>
html,
body {
height: 100%;
}
#iframe {
width: calc(100% + 4px);
height: 99%;
border: 0;
padding: 0;
margin: 0;
margin-left: -2px;
margin-top: -2px;
}
h1,
h2,
h3,
h4,
p,
div {
border: 1px solid transparent;
}
h1:hover,
h2:hover,
h3:hover,
h4:hover,
p:hover,
.current-item {
border: 1px solid lightblue;
cursor: pointer;
}
#editor {
background-color: #F8F8F8;
border-left: 1px solid #DDD;
}
.editor-header {
padding: 15px;
padding-left: 16px;
background-color: white;
border-bottom: 1px solid #DDD;
}
.pad {
padding: 15px;
}
.brdr-top {
border-top: 1px solid #DDD;
}
#editor-footer {
padding: 15px;
padding-top: 0;
position: absolute;
bottom: 0;
width: 100%;
}
#save {
display: none;
}
h6 {
margin: 0;
padding: 0;
}
#editor-content {
padding: 15px;
}
#fileInput {
display: none;
}
.alert-warning {
margin-bottom: 0;
}
#add-buttons .list-group-item:hover {
cursor: pointer;
background-color: #F8F8F8;
}
</style>
<script src="editor/vendor/rte/rich-text-editor.min.js"></script>
<link rel='stylesheet' href='editor/vendor/rte/rich-text-editor.css'>
</head>
<body>
<div class="row no-gutters h-100">
<div class="col-md-9">
<iframe src="example-site/index.html" marginwidth="0" marginheight="0" frameborder="0" id="iframe"></iframe>
</div>
<div class="col-md-3" id="editor">
<div class="editor-header">
<h6>Edit</h6>
</div>
<div id="editor-content">
<div class="alert alert-warning text-center">Click on any title, text or image to edit it.</div>
</div>
<div class="editor-header brdr-top">
<h6>Add</h6>
</div>
<div id="editor-add" class="pad">
<ul class="list-group" id="add-buttons">
</ul>
</div>
<div id="editor-footer">
<button class="btn btn-primary w-100" id="save">Save</button>
</div>
</div>
</div>
<script src="editor/editor.js"></script>
</body>
</html>