-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
145 lines (122 loc) · 3.44 KB
/
index2.html
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</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-url.js"></script>
<script>
// filtering logs source
var print_log = function (arguments) {
var str = 'LOG: ';
for (var i in arguments) {
str += arguments[i];
}
console.log(str);
return str;
}
var log = function () {
// console.log(arguments);
print_log(arguments);
// arguments[0] === 'Load' || print_log();
}
</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">
<div class="content">
<button onclick="loadPinkCss()" class="pink">Load Pink</button>
<button onclick="loadBlackCss()">Load Black</button>
<div class="for_image">...</div>
<div id="image">image</div>
<div id="form">form</div>
</div>
<div class="footer">
<h5>
local: <a href="http://localhost:8080/" rel="nofollow">localhost:8080/</a>
| production: <a href="https://get.jloads.com/" rel="nofollow">get.jloads.com</a>
| supported by: <a href="https://softreck.com/" rel="nofollow">softreck.com</a>
| <a href="https://docs.jloads.com" rel="nofollow">docs</a>
</h5>
</div>
</div>
<script>
// Configuration
var success = function (data) {
console.log('loaded', data);
};
var error = function (data) {
console.error('!loaded', data);
};
var json = {
"head" : [
"//code.jquery.com/ui/1.12.1/jquery-ui.min.js",
"//stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css",
"//code.jquery.com/jquery-3.5.1.min.js",
"//stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js",
"demo/css/pink.css"
],
"#image" : [
"https://logo.jloads.com/6/cover.png"
],
"#form" : [
"demo/html/create.html",
"demo/js/create.js"
]
}
// Declaration
loadAll(json, success, error);
function loadPinkCss() {
loadAll({
"head" : [
"demo/css/pink.css"
],
"#image" : [
"https://logo.jloads.com/4/cover.png"
]
})
}
function loadBlackCss() {
loadAll({
"head" : [
"demo/css/black.css"
],
"#image" : [
"https://logo.jloads.com/6/cover.png"
]
})
}
</script>
</body>
</html>