-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.js
27 lines (26 loc) · 837 Bytes
/
Settings.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
//background
function bg1() {
document.getElementById("body").style.backgroundImage = "url(bg.jpg)";
}
function bg2() {
document.getElementById("body").style.backgroundImage = "url(citywater.png)";
}
function bg3() {
document.getElementById("body").style.backgroundImage = "url(Flowers.png)";
}
function bg4() {
document.getElementById("body").style.backgroundImage = "url(Boardwalk.png)";
}
function custom_bg(event) {
var reader = new FileReader();
reader.onload = function() {
document.getElementById("body").style.backgroundImage = `url(${reader.result})`;
document.getElementById("body").style.backgroundSize = 'cover';
}
reader.readAsDataURL(event.target.files[0]);
}
//Color scheme
function cssimport() {
b = document.getElementById("cssimport").value;
document.getElementById("style").href = b;
}