Skip to content

Commit 118a0b9

Browse files
committed
JQuery to Vanilla js code rewrite, removed jQuery dependency
1 parent d8c3077 commit 118a0b9

23 files changed

+3737
-3462
lines changed

README.md

100644100755
Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<br><br>
66
<strong>Drag and drop website builder javascript library.</strong>
77
<br>
8-
<span>Built with jQuery and Bootstrap 5.</span>
8+
<span>Built with Vanilla Js with no dependencies and Bootstrap 5</span>
99
</p>
1010
<p align="center">
1111
<a href="https://www.vvveb.com">Website</a> |
@@ -160,10 +160,6 @@ npm run gulp screenshots
160160

161161

162162
```js
163-
<!-- jquery-->
164-
<script src="js/jquery.min.js"></script>
165-
<script src="js/jquery.hotkeys.js"></script>
166-
167163
<!-- bootstrap-->
168164
<script src="js/popper.min.js"></script>
169165
<script src="js/bootstrap.min.js"></script>
@@ -189,27 +185,22 @@ let pages = [
189185
{name:"landing-page", title:"Landing page", url: "demo/landing/index.html", file: "demo/landing/index.html"},
190186
];
191187

192-
$(function() {
193-
194-
let firstPage = Object.keys(pages)[0];
195-
Vvveb.Builder.init(pages[firstPage]["url"], function() {
196-
//load code after page is loaded here
197-
});
198188

199-
Vvveb.Gui.init();
200-
Vvveb.FileManager.init();
201-
Vvveb.SectionList.init();
202-
Vvveb.Breadcrumb.init();
203-
204-
Vvveb.FileManager.addPages(pages);
205-
Vvveb.FileManager.loadPage(pages[firstPage]["name"]);
206-
Vvveb.Breadcrumb.init();
207-
208-
//if url has #no-right-panel set one panel demo
209-
if (window.location.hash.indexOf("no-right-panel") != -1) {
210-
Vvveb.Gui.toggleRightColumn();
211-
}
189+
let firstPage = Object.keys(pages)[0];
190+
Vvveb.Builder.init(pages[firstPage]["url"], function() {
191+
//load code after page is loaded here
212192
});
193+
194+
Vvveb.Gui.init();
195+
Vvveb.FileManager.init();
196+
Vvveb.SectionList.init();
197+
Vvveb.Breadcrumb.init();
198+
199+
Vvveb.FileManager.addPages(pages);
200+
Vvveb.FileManager.loadPage(pages[firstPage]["name"]);
201+
Vvveb.Gui.toggleRightColumn(false);
202+
Vvveb.Breadcrumb.init();
203+
213204
<script>
214205
```
215206

0 commit comments

Comments
 (0)