-
Notifications
You must be signed in to change notification settings - Fork 62
/
index-cdn.html
414 lines (375 loc) · 18.3 KB
/
index-cdn.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!--
=========================================================
* Rocket Builder
=========================================================
* Product: https://www.simpllo.com
* Sources: https://github.com/app-generator/free-site-builder
* Copyright AppSeed (https://appseed.us)
* License EULA: https://github.com/app-generator/free-site-builder/blob/main/LICENSE.md
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Contact us if you want to remove it.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
Free Site Builder - Bootstrap5 (Default Components) | Simpllo.com
</title>
<meta name="description"
content="Open-Source and FREE Page and Website builder - Build you projects in No-Time for free.">
<meta name="keywords" content="free builder, page builder, open-source page builder, free website builder">
<link rel="canonical" href="https://www.simpllo.com/bootstrap/" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.css" rel="stylesheet"
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/codemirror.min.js" crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/javascript/javascript.min.js"
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/6.65.7/mode/css/css.min.js" crossorigin="anonymous"
referrerpolicy="no-referrer"></script>
<script src="https://kit.fontawesome.com/ea9bd22eef.js" crossorigin="anonymous"></script>
<!-- Builder CORE Style -->
<link href="https://cdn.jsdelivr.net/gh/app-generator/[email protected]/dist/style.css" rel="stylesheet"
crossorigin="anonymous">
<style id="global-custom-style"></style>
</head>
<body>
<div id="app">
<div id="layout" style="display: none;">
<header class="header">
<div class="container-fluid">
<div class="innerHeader">
<div class="headerActions">
<button id="action_clear" type="button" class="btn btn-outline-danger" data-bs-toggle="modal"
data-bs-target="#confirmModal"><i class="fa-solid fa-eraser"></i><span> Clear</span></button>
<button id="action_preview" class="btn btn-outline-primary"><i class="fa-regular fa-eye"></i><span>
Preview</span></button>
<button id="action_download" class="btn btn-outline-secondary"><i class="fa fa-download"></i><span>
Download</span></button>
<button id="action_deploy" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#deployModal"><i class="fa fa-rocket"></i><span> Deploy</span></button>
</div>
</div>
</div>
</header>
<!-- aside left -->
<aside class="leftAside">
<button class="Click menuLeftbtn"><i class="fa-solid fa-chevron-right"></i></button>
<ul class="nav nav-tabs defTabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="components-tab" data-bs-toggle="tab" data-bs-target="#components"
type="button" role="tab" aria-controls="components" aria-selected="true">Components</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="help-tab" data-bs-toggle="tab" data-bs-target="#help" type="button" role="tab"
aria-controls="help" aria-selected="false"> Help </button>
</li>
</ul>
<div class="tab-content forScroll" id="myTabContent">
<div class="tab-pane fade show active" id="components" role="tabpanel" aria-labelledby="components-tab">
<div id="overlay" class="overlay">
<p class="text-white">
Loading from the server...
</p>
<div class="spinner"></div>
</div>
<div class="accordion accordionCustom components_contain" id="accordionComponents"></div>
</div>
<div class="tab-pane fade" id="help" role="tabpanel" aria-labelledby="help-tab">
<div class="helpText">
<p>
Learn how to use the product or join the community (Discord)
</p>
<a href="https://www.docs.simpllo.com/free-site-builder/intro" target="_blank">
👉 Documentation </a>
<a href="https://discord.gg/AWh6TFcEwU" target="_blank">
👥 Community </a>
<a href="https://www.docs.simpllo.com/blog" target="_blank">
🕮 Blog </a>
<a href="https://youtu.be/mxQWwhEF21s" target="_blank">
👉 Intro (video) </a>
</div>
</div>
<div class="forPdng">
<a target="_blank" href="https://appseed.gumroad.com/l/free-site-builder" class="moreOption">
<img src="/img/more.png" alt="" />
<div>
<h6>Support this service</h6>
<p>Pay $9 (one-time payment)</p>
</div>
</a>
</div>
</div>
</aside>
<!-- end aside left -->
<!-- Confirm modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" aria-labelledby="confirmModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="confirmModalLabel">Confirm Alert</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
Do you want to really clear the data?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary action_clear_confirm">OK</button>
</div>
</div>
</div>
</div>
<!-- End Confirm modal -->
<div class="rowa" id="builder-container">
<!-- Current Page -->
<div class="mainBuilder" id="builder-content">
<div class="innPagename">
<ul class="nav nav-tabs defTabs pagesTabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link" id="global-tabA" data-bs-toggle="tab" data-bs-target="#globalA" type="button"
role="tab" aria-controls="globalA" aria-selected="true">Globals (JS, CSS)</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link active" id="index-tabA" data-bs-toggle="tab" data-bs-target="#indexTab"
type="button" role="tab" aria-controls="indexTab" aria-selected="false">index.html</button>
</li>
<li class="nav-item d-flex align-items-center add-page-list"><a href="#" id="add-page-button">+</a></li>
</ul>
</div>
<div class="tab-content forScroll pagesTabContent" id="myTabContent">
<div class="tab-pane fade show active" id="indexTab" role="tabpanel" aria-labelledby="index-tabA">
<div id="drop-here-indicator"></div>
<div id="dropzone" class="dropzone"></div>
</div>
<div class="tab-pane fade" id="globalA" role="tabpanel" aria-labelledby="global-tabA">
<div class="d-flex">
<div class="editor-container w-50">
<textarea id="css-editor"></textarea>
</div>
<div class="editor-container w-50">
<textarea id="js-editor"></textarea>
</div>
</div>
</div>
</div>
<!-- PROPS -->
<div class="drpznBttm">
<img src="/img/arrow.png" alt="" />
<strong>Start by dragging elements from LEFT</strong>
</div>
<!-- DO NOT REMOVE THIS -->
<!-- https://github.com/app-generator/free-site-builder/blob/main/LICENSE.md -->
<div class="footer">
<p id="copyright">
© <a target="_blank" href="https://www.simpllo.com/">Simpllo</a>,
coded by <u><a class="text-muted" target="_blank" href="https://appseed.us/">AppSeed</a></u>.
</p>
<div class="footerLinks">
<a target="_blank" href="https://github.com/app-generator/free-site-builder">Sources</a>
<a target="_blank" class='text-primary'
href="https://www.docs.simpllo.com/free-site-builder/intro">DOCS</a>
<a target="_blank" href="https://discord.gg/AWh6TFcEwU">Community</a>
</div>
</div>
<!-- DO NOT REMOVE THIS -->
</div>
</div>
<!-- aside right -->
<aside class="rightAside">
<button class="ClickTwo menuRightbtn"><i class="fa-solid fa-chevron-left"></i></button>
<ul class="nav nav-tabs defTabs" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="props-tabA" data-bs-toggle="tab" data-bs-target="#propsA" type="button"
role="tab" aria-controls="propsA" aria-selected="true">Props</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="page-tabA" data-bs-toggle="tab" data-bs-target="#pageA" type="button"
role="tab" aria-controls="pageA" aria-selected="false">Page Globals</button>
</li>
</ul>
<div class="tab-content forScroll" id="myTabContent">
<div class="tab-pane fade show active" id="propsA" role="tabpanel" aria-labelledby="props-tabA">
<div class="mainEditor">
<div class="divName">Props</div>
<div id="builder-props">
<div id="builder-props-title"></div>
<div id="builder-props-content"></div>
<div id="builder-props-attribute"></div>
</div>
<div class="divName-2">Style</div>
<div id="builder-style">
<div id="builder-style-content"></div>
</div>
<div class="divName-2">CSS Classes</div>
<div id="builder-class">
<div id="builder-class-content"></div>
<div id="builder-class-list"></div>
</div>
</div>
</div>
<div class="tab-pane fade" id="pageA" role="tabpanel" aria-labelledby="page-tabA">
<div class="mainEditor">
<p class="tabPageName">index.html</p>
<div class="divName">SEO</div>
<div id="builder-global-set">
<div class="newClass"><input class="form-control text-left global-set" id="page_title"
placeholder="Page Title" /></div>
<div class="newClass"><input class="form-control text-left global-set" id="seo_description"
placeholder="SEO description" /></div>
<div class="newClass"><input class="form-control text-left global-set" id="seo_keyword"
placeholder="SEO Keywords" /></div>
</div>
<div class="divName">External Assets</div>
<div id="builder-global-set">
<div class="newClass"><input class="form-control text-left global-set" id="external_js_url"
placeholder="EXTERNAL JS URL" /></div>
<div class="newClass"><input class="form-control text-left global-set" id="external_css_url"
placeholder="EXTERNAL CSS URL" /></div>
</div>
</div>
</div>
</div>
</aside>
<!-- end aside right -->
</div>
</div>
</div>
<!-- Preview Modal -->
<div id="previewModal" class="modal">
<div class="modal-content">
<div id="previewOptions">
<div>
<button id="fullScreenOption" class="btn btn-default" title="Toggle full screen">
<i class="fas fa-desktop"></i>
</button>
<button id="tabletOption" class="btn btn-default" title="Toggle tablet view">
<i class="fas fa-tablet-alt"></i>
</button>
<button id="mobileOption" class="btn btn-default" title="Toggle mobile view">
<i class="fas fa-mobile-alt"></i>
</button>
</div>
<span id="closeModal" class="close">×</span>
</div>
<iframe id="previewFrame"></iframe>
</div>
</div>
<!-- Deploy Modal -->
<div id="deployModal" class="modal fade defModal" tabindex="-1" aria-labelledby="deployModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="confirmModalLabel">Deploy to Netlify</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="deployForm">
<label for="site-name">Website Name:</label>
<input type="text" id="site-name" name="site-name" class="form-control" style="margin-bottom: 10px;"
required>
<label for="netlify-token" data-bs-toggle="popover" data-bs-html="true"
data-bs-content="<p>To create a Netlify account and get a personal access token, follow these steps:</p><ol><li>Go to <a href='https://app.netlify.com/signup'><strong>https://app.netlify.com/signup</strong></a> and create a new account.</li><li>After logging in, go to <mark>User Settings > Applications > Personal Access Tokens</mark>.</li><li>Click <strong>'New access token'</strong>, give it a description, and click <strong>'Generate token'</strong>.</li><li><strong>Copy the generated token</strong> and paste it into the input field below.</li></ol>">
Netlify Personal Access Token:
<i class="fas fa-question-circle"></i>
</label>
<input type="text" id="netlify-token" name="netlify-token" class="form-control" required
style="margin-bottom: 10px;">
<span id="errorMessage" style="visibility: hidden; color: var(--bs-code-color); font-size: 11px;"></span>
</form>
</div>
<a target="_blank" href="#" style="display: none;" id="deploy_url" class="text-center">LIVE Demo</a>
<div class="modal-footer">
<button type="submit" form="deployForm" class="btn btn-primary">Deploy</button>
</div>
</div>
</div>
</div>
<script class="global-custom-js"></script>
<script>
// JavaScript
document.addEventListener("DOMContentLoaded", function () {
// Initialize the CodeMirror editor
let cssEditor = CodeMirror.fromTextArea(document.getElementById("css-editor"), {
lineNumbers: true, // Enable line numbers
theme: "default", // Set your desired theme
mode: 'css', // Set the editor mode to CSS
});
let cssCode = window.localStorage.getItem('global-css-code');
let defaultCSSCode = "/* Enter your CSS code here. */ \n";
if (cssCode)
defaultCSSCode = cssCode;
cssEditor.setValue(defaultCSSCode);
document.getElementById('global-custom-style').innerHTML = defaultCSSCode;
let jsEditor = CodeMirror.fromTextArea(document.getElementById("js-editor"), {
lineNumbers: true, // Enable line numbers
theme: "default", // Set your desired theme
mode: { name: 'javascript', json: true }, // Set the editor mode to CSS
});
let jsCode = window.localStorage.getItem('global-js-code');
var scripts = document.getElementsByClassName('global-js-code');
scripts.innerHTML = jsCode;
var dynamicScript = scripts.innerHTML;
eval(dynamicScript);
let defaultJsCode = "// Enter your JavaScript code here. \n";
if (jsCode)
defaultJsCode = jsCode;
jsEditor.setValue(defaultJsCode);
document.getElementsByClassName('global-custom-js').innerHTML = defaultJsCode;
cssEditor.on("change", function (instance) {
let code = instance.getValue(); // Get the updated code value
window.localStorage.setItem('global-css-code', code)
document.getElementById('global-custom-style').innerHTML = code;
});
jsEditor.on("change", function (instance) {
let code = instance.getValue(); // Get the updated code value
window.localStorage.setItem('global-js-code', code);
scripts.innerHTML = code;
eval(code);
});
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
crossorigin="anonymous"></script>
<!-- Builder CORE JS (Vanilla) -->
<script type="module">
import { DNDBuilder } from "https://cdn.jsdelivr.net/gh/app-generator/[email protected]/dist/index.js";
DNDBuilder.setup(
{
dropContainer: "dropzone",
dropIndicator: "drop-here-indicator",
backendUrl: "https://components-server.onrender.com/",
uiKit: "bs5"
},
{
actionPreview: "#action_preview",
actionDownload: "#action_download",
actionDeploy: "#action_deploy",
closeModal: "#closeModal",
fullScreenOption: "#fullScreenOption",
tabletOption: "#tabletOption",
mobileOption: "#mobileOption",
deployForm: "#deployForm",
}
);
DNDBuilder.render();
</script>
<script>
$(document).ready(function () {
$(".Click").click(function () {
$(".leftAside").toggleClass("show");
});
$(".ClickTwo").click(function () {
$(".rightAside").toggleClass("show");
});
$('[data-bs-toggle="popover"]').popover();
});
</script>
</body>
</html>