-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.html
More file actions
145 lines (121 loc) · 3.22 KB
/
colors.html
File metadata and controls
145 lines (121 loc) · 3.22 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>get.jloads.com</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<script src="jloads.min.js"></script>
<script>
// Configuration
var success = function (data) {
console.log('loaded', data);
};
var error = function (data) {
console.error('!loaded', data);
};
// Declaration
// var jl = new Load('body', success, error);
var jl = new Load({
target: "body",
success: success,
error: error,
});
// Environment
// jl.env("//localhost/", "local", function () {
// return window.location.hostname === 'localhost';
// });
// jl.env("//get.jloads.com/", "production", function () {
// return window.location.hostname !== 'localhost';
// });
console.log('jloads.cfg', jl.cfg);
// Declaration for Media
var media = new Load({
target: ".for_image",
success: success,
error: error,
replace: 1,
});
</script>
<script>
jloads.target({
"head": [
"//code.jquery.com/jquery-3.5.1.min.js",
"demo/css/default.css",
"demo/css/fade-in.css",
"demo/css/inputs.css"
],
".navbar": [
"demo/css/menu.css",
"demo/html/menu.html"
],
".footer": [
"demo/css/footer.css",
"demo/html/footer.html"
]
});
</script>
<script>
// Dynamic loading
function loadPinkCss() {
jl.cacheOff().css([
"/demo/css/pink.css",
]);
media.img([
"https://logo.jloads.com/4/cover.png",
]);
}
function loadBlackCss() {
jl.cacheOff().css([
"/demo/css/black.css",
]);
media.img([
"https://logo.jloads.com/6/cover.png",
]);
}
</script>
<style>
/* GLOBAL */
img {
max-width: 100%;
max-height: 100%;
display: block; /* remove extra space below image */
}
body {
/*background-color: #fb7e14;*/
/*color: #fffc60;*/
font-family: Tahoma;
}
.container > .content,
.container > .footer {
margin: auto auto;
width: 100%;
max-width: 500px;
}
.for_image {
margin: 20px auto;
}
.for_image img {
/*width: 450px;*/
height: 450px;
display: block;
margin-left: auto;
margin-right: auto;
/*width: 50%;*/
}
</style>
</head>
<body>
<div class="container fade-in">
<div class="navbar">
menu
</div>
<div class="content">
<div class="for_image">...</div>
</div>
<div class="footer">
footer
</div>
</div>
</body>
</html>