mirror of
https://github.com/mrfluffy-dev/assignment.git
synced 2026-01-17 05:40:34 +00:00
initial commit
This commit is contained in:
17
public/pages/loadSrc.js
Normal file
17
public/pages/loadSrc.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function loadSrc() {
|
||||
var link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.href = '/pages/style.css';
|
||||
document.head.appendChild(link);
|
||||
|
||||
var script = document.createElement('script');
|
||||
script.src = '/pages/sidebar.js';
|
||||
document.head.appendChild(script);
|
||||
|
||||
var script = document.createElement('script');
|
||||
script.src = '/pages/people.js';
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
|
||||
// Call the function to load src.html
|
||||
loadSrc();
|
||||
Reference in New Issue
Block a user