-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsert.js
32 lines (32 loc) · 1.36 KB
/
insert.js
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
if(!document.getElementById('bootstrap-scripts')) {
var script = document.createElement('script');
script.id = 'bootstrap-scripts';
script.type = 'text/javascript';
script.src = "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js";
script.integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL";
script.crossOrigin="anonymous";
document.head.appendChild(script);
}
if(!document.getElementById('jquery-scripts')) {
var script = document.createElement('script');
script.id = 'jquery-scripts';
script.type = 'text/javascript';
script.src = "https://code.jquery.com/jquery-3.7.1.min.js";
document.head.appendChild(script);
}
if(!document.getElementById('bootstrap-styles')) {
var link = document.createElement('link');
link.id = 'bootstrap-styles';
link.rel = 'stylesheet';
link.href = 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css';
script.integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN";
script.crossOrigin="anonymous";
document.head.appendChild(link);
}
if(!document.getElementById('W3-styles')) {
var link = document.createElement('link');
link.id = 'W3-styles';
link.rel = 'stylesheet';
link.href = 'https://www.w3schools.com/w3css/4/w3.css';
document.head.appendChild(link);
}