cdnhost 2.2.7 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdnbanner_radius - /353/263/265/354/202/254/353/263/270.js" +174 -0
- package/cdnbanner_radius.js +115 -132
- package/link.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
function loadBanner(divId = '1', userId = 'admin', width = 300, height = 250, country = 'ko') {
|
|
2
|
+
const div = document.getElementById(divId);
|
|
3
|
+
if (!div) {
|
|
4
|
+
console.error(`Element with id="${divId}" not found.`);
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
div.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
9
|
+
div.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
10
|
+
div.style.overflow = 'hidden';
|
|
11
|
+
|
|
12
|
+
//div.style.background = '#000';
|
|
13
|
+
div.innerHTML = '';
|
|
14
|
+
|
|
15
|
+
fetch(`https://gig.snapp.im/banner_api.php?user=${encodeURIComponent(userId)}&country=${encodeURIComponent(country)}`)
|
|
16
|
+
|
|
17
|
+
.then(res => res.json())
|
|
18
|
+
.then(data => {
|
|
19
|
+
const hasImage = data.image && data.image.trim() !== '';
|
|
20
|
+
const banner = document.createElement('div');
|
|
21
|
+
|
|
22
|
+
const targetUrl = `https://gig.snapp.im/banner2.php?link=${encodeURIComponent(data.link)}&user=${encodeURIComponent(userId)}&country=${encodeURIComponent(country)}`;
|
|
23
|
+
|
|
24
|
+
// 배너 기본 스타일
|
|
25
|
+
banner.style.background = '#fff';
|
|
26
|
+
banner.style.color = '#000';
|
|
27
|
+
banner.style.borderRadius = '1rem';
|
|
28
|
+
banner.style.display = 'flex';
|
|
29
|
+
banner.style.overflow = 'hidden';
|
|
30
|
+
banner.style.position = 'relative';
|
|
31
|
+
banner.style.cursor = 'pointer';
|
|
32
|
+
|
|
33
|
+
// 배너 클릭 시 링크 이동
|
|
34
|
+
banner.addEventListener('click', (e) => {
|
|
35
|
+
if (e.target.closest('.fixed-icon')) return; // 아이콘 클릭 제외
|
|
36
|
+
window.open(targetUrl, '_blank');
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const textDiv = document.createElement('div');
|
|
40
|
+
textDiv.style.boxSizing = 'border-box';
|
|
41
|
+
textDiv.style.padding = '10px';
|
|
42
|
+
textDiv.style.overflow = 'hidden';
|
|
43
|
+
textDiv.style.height = '600px';
|
|
44
|
+
textDiv.style.display = 'flex';
|
|
45
|
+
textDiv.style.flexDirection = 'column';
|
|
46
|
+
textDiv.style.setProperty('color', '#000');
|
|
47
|
+
textDiv.style.setProperty('line-height', '1.4', 'important');
|
|
48
|
+
|
|
49
|
+
const title = document.createElement('h3');
|
|
50
|
+
title.textContent = data.title;
|
|
51
|
+
title.style.margin = '0 0 10px 0';
|
|
52
|
+
title.style.setProperty('color', '#000');
|
|
53
|
+
title.style.setProperty('line-height', '1.4', 'important');
|
|
54
|
+
|
|
55
|
+
const desc = document.createElement('p');
|
|
56
|
+
desc.textContent = data.desc;
|
|
57
|
+
desc.style.margin = '0';
|
|
58
|
+
desc.style.setProperty('color', '#000');
|
|
59
|
+
desc.style.setProperty('line-height', '1.4', 'important');
|
|
60
|
+
|
|
61
|
+
textDiv.appendChild(title);
|
|
62
|
+
textDiv.appendChild(desc);
|
|
63
|
+
|
|
64
|
+
const widthNum = typeof width === 'number' ? width : null;
|
|
65
|
+
|
|
66
|
+
const imgHeight = height;
|
|
67
|
+
const aspectRatio = 1.2;
|
|
68
|
+
const imgWidth = imgHeight * aspectRatio;
|
|
69
|
+
|
|
70
|
+
const isFullWidth = width.toString() === '100%';
|
|
71
|
+
|
|
72
|
+
if (hasImage) {
|
|
73
|
+
const imageDiv = document.createElement('div');
|
|
74
|
+
imageDiv.style.backgroundImage = `url('https://gig.snapp.im/${data.image}')`;
|
|
75
|
+
imageDiv.style.backgroundSize = 'cover';
|
|
76
|
+
imageDiv.style.backgroundPosition = 'center';
|
|
77
|
+
imageDiv.style.flexShrink = '0';
|
|
78
|
+
|
|
79
|
+
if (widthNum === imgWidth && height === imgHeight) {
|
|
80
|
+
banner.style.width = imgWidth + 'px';
|
|
81
|
+
banner.style.height = imgHeight + 'px';
|
|
82
|
+
banner.style.flexDirection = 'column';
|
|
83
|
+
|
|
84
|
+
imageDiv.style.width = imgWidth + 'px';
|
|
85
|
+
imageDiv.style.height = imgHeight + 'px';
|
|
86
|
+
|
|
87
|
+
banner.appendChild(imageDiv);
|
|
88
|
+
|
|
89
|
+
} else if (isFullWidth) {
|
|
90
|
+
banner.style.width = '100%';
|
|
91
|
+
banner.style.height = imgHeight + 'px';
|
|
92
|
+
banner.style.flexDirection = 'row';
|
|
93
|
+
|
|
94
|
+
imageDiv.style.width = imgWidth + 'px';
|
|
95
|
+
imageDiv.style.height = imgHeight + 'px';
|
|
96
|
+
|
|
97
|
+
textDiv.style.flexGrow = '1';
|
|
98
|
+
textDiv.style.height = imgHeight + 'px';
|
|
99
|
+
|
|
100
|
+
banner.appendChild(imageDiv);
|
|
101
|
+
banner.appendChild(textDiv);
|
|
102
|
+
|
|
103
|
+
} else if (widthNum !== null && widthNum > imgWidth) {
|
|
104
|
+
const extraWidth = widthNum - imgWidth;
|
|
105
|
+
banner.style.width = widthNum + 'px';
|
|
106
|
+
banner.style.height = imgHeight + 'px';
|
|
107
|
+
banner.style.flexDirection = 'row';
|
|
108
|
+
|
|
109
|
+
imageDiv.style.width = imgWidth + 'px';
|
|
110
|
+
imageDiv.style.height = imgHeight + 'px';
|
|
111
|
+
|
|
112
|
+
textDiv.style.width = extraWidth + 'px';
|
|
113
|
+
textDiv.style.height = imgHeight + 'px';
|
|
114
|
+
|
|
115
|
+
banner.appendChild(imageDiv);
|
|
116
|
+
banner.appendChild(textDiv);
|
|
117
|
+
|
|
118
|
+
} else if (typeof height === 'number' && height > imgHeight) {
|
|
119
|
+
const extraHeight = height - imgHeight;
|
|
120
|
+
banner.style.width = imgWidth + 'px';
|
|
121
|
+
banner.style.height = height + 'px';
|
|
122
|
+
banner.style.flexDirection = 'column';
|
|
123
|
+
|
|
124
|
+
imageDiv.style.width = imgWidth + 'px';
|
|
125
|
+
imageDiv.style.height = imgHeight + 'px';
|
|
126
|
+
|
|
127
|
+
textDiv.style.width = imgWidth + 'px';
|
|
128
|
+
textDiv.style.height = extraHeight + 'px';
|
|
129
|
+
|
|
130
|
+
banner.appendChild(imageDiv);
|
|
131
|
+
banner.appendChild(textDiv);
|
|
132
|
+
} else {
|
|
133
|
+
banner.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
134
|
+
banner.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
135
|
+
banner.style.flexDirection = 'column';
|
|
136
|
+
|
|
137
|
+
imageDiv.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
138
|
+
imageDiv.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
139
|
+
|
|
140
|
+
banner.appendChild(imageDiv);
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
banner.style.flexDirection = 'column';
|
|
144
|
+
textDiv.style.display = 'block';
|
|
145
|
+
banner.appendChild(textDiv);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 고정 아이콘 (클릭 제외 대상)
|
|
149
|
+
const fixedIcon = document.createElement('a');
|
|
150
|
+
fixedIcon.className = 'fixed-icon';
|
|
151
|
+
fixedIcon.href = 'https://gig.snapp.im/';
|
|
152
|
+
fixedIcon.target = '_blank';
|
|
153
|
+
fixedIcon.style.position = 'absolute';
|
|
154
|
+
fixedIcon.style.top = '5px';
|
|
155
|
+
fixedIcon.style.right = '5px';
|
|
156
|
+
fixedIcon.style.width = '30px';
|
|
157
|
+
fixedIcon.style.zIndex = '10';
|
|
158
|
+
|
|
159
|
+
const fixedImg = document.createElement('img');
|
|
160
|
+
fixedImg.src = 'https://cdn.jsdelivr.net/npm/cdnhost@0.1.4/l2.png';
|
|
161
|
+
fixedImg.alt = 'a';
|
|
162
|
+
fixedImg.style.width = '100%';
|
|
163
|
+
fixedImg.style.borderRadius = '50%';
|
|
164
|
+
fixedImg.style.background = '#000';
|
|
165
|
+
|
|
166
|
+
fixedIcon.appendChild(fixedImg);
|
|
167
|
+
banner.appendChild(fixedIcon);
|
|
168
|
+
|
|
169
|
+
div.appendChild(banner);
|
|
170
|
+
})
|
|
171
|
+
.catch(err => {
|
|
172
|
+
console.error('배너 로드 실패:', err);
|
|
173
|
+
});
|
|
174
|
+
}
|
package/cdnbanner_radius.js
CHANGED
|
@@ -1,161 +1,52 @@
|
|
|
1
|
-
function loadBanner(divId = '1', userId = '
|
|
1
|
+
function loadBanner(divId = '1', userId = 'fluke103', width = 300, height = 250, country = 'ko') {
|
|
2
2
|
const div = document.getElementById(divId);
|
|
3
3
|
if (!div) {
|
|
4
4
|
console.error(`Element with id="${divId}" not found.`);
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
div.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
9
|
-
div.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
10
|
-
div.style.overflow = 'hidden';
|
|
11
|
-
|
|
12
|
-
//div.style.background = '#000';
|
|
13
7
|
div.innerHTML = '';
|
|
14
8
|
|
|
15
9
|
fetch(`https://gig.snapp.im/banner_api.php?user=${encodeURIComponent(userId)}&country=${encodeURIComponent(country)}`)
|
|
16
|
-
|
|
17
10
|
.then(res => res.json())
|
|
18
11
|
.then(data => {
|
|
19
12
|
const hasImage = data.image && data.image.trim() !== '';
|
|
13
|
+
|
|
20
14
|
const banner = document.createElement('div');
|
|
15
|
+
banner.className = 'snapp-banner-container';
|
|
16
|
+
banner.id = `banner-${divId}`;
|
|
17
|
+
|
|
18
|
+
banner.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
19
|
+
banner.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
20
|
+
|
|
21
|
+
if (width.toString() === '100%') {
|
|
22
|
+
banner.classList.add('layout-full-width');
|
|
23
|
+
}
|
|
21
24
|
|
|
22
25
|
const targetUrl = `https://gig.snapp.im/banner2.php?link=${encodeURIComponent(data.link)}&user=${encodeURIComponent(userId)}&country=${encodeURIComponent(country)}`;
|
|
23
|
-
|
|
24
|
-
// 배너 기본 스타일
|
|
25
|
-
banner.style.background = '#fff';
|
|
26
|
-
banner.style.color = '#000';
|
|
27
|
-
banner.style.borderRadius = '1rem';
|
|
28
|
-
banner.style.display = 'flex';
|
|
29
|
-
banner.style.overflow = 'hidden';
|
|
30
|
-
banner.style.position = 'relative';
|
|
31
|
-
banner.style.cursor = 'pointer';
|
|
32
|
-
|
|
33
|
-
// 배너 클릭 시 링크 이동
|
|
34
26
|
banner.addEventListener('click', (e) => {
|
|
35
|
-
if (e.target.closest('.fixed-icon')) return;
|
|
27
|
+
if (e.target.closest('.fixed-icon')) return;
|
|
36
28
|
window.open(targetUrl, '_blank');
|
|
37
29
|
});
|
|
38
30
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
textDiv.style.display = 'flex';
|
|
45
|
-
textDiv.style.flexDirection = 'column';
|
|
46
|
-
textDiv.style.setProperty('color', '#000');
|
|
47
|
-
textDiv.style.setProperty('line-height', '1.4', 'important');
|
|
31
|
+
const imageDiv = document.createElement('div');
|
|
32
|
+
imageDiv.className = 'image-div';
|
|
33
|
+
if (hasImage) {
|
|
34
|
+
imageDiv.style.backgroundImage = `url('https://gig.snapp.im/${data.image}')`;
|
|
35
|
+
}
|
|
48
36
|
|
|
37
|
+
const textDiv = document.createElement('div');
|
|
38
|
+
textDiv.className = 'text-div';
|
|
49
39
|
const title = document.createElement('h3');
|
|
40
|
+
title.className = 'banner-title';
|
|
50
41
|
title.textContent = data.title;
|
|
51
|
-
title.style.margin = '0 0 10px 0';
|
|
52
|
-
title.style.setProperty('color', '#000');
|
|
53
|
-
title.style.setProperty('line-height', '1.4', 'important');
|
|
54
|
-
|
|
55
42
|
const desc = document.createElement('p');
|
|
43
|
+
desc.className = 'banner-desc';
|
|
56
44
|
desc.textContent = data.desc;
|
|
57
|
-
desc.style.margin = '0';
|
|
58
|
-
desc.style.setProperty('color', '#000');
|
|
59
|
-
desc.style.setProperty('line-height', '1.4', 'important');
|
|
60
|
-
|
|
61
|
-
textDiv.appendChild(title);
|
|
62
|
-
textDiv.appendChild(desc);
|
|
63
|
-
|
|
64
|
-
const widthNum = typeof width === 'number' ? width : null;
|
|
65
|
-
|
|
66
|
-
const imgHeight = height;
|
|
67
|
-
const aspectRatio = 1.2;
|
|
68
|
-
const imgWidth = imgHeight * aspectRatio;
|
|
69
|
-
|
|
70
|
-
const isFullWidth = width.toString() === '100%';
|
|
71
|
-
|
|
72
|
-
if (hasImage) {
|
|
73
|
-
const imageDiv = document.createElement('div');
|
|
74
|
-
imageDiv.style.backgroundImage = `url('https://gig.snapp.im/${data.image}')`;
|
|
75
|
-
imageDiv.style.backgroundSize = 'cover';
|
|
76
|
-
imageDiv.style.backgroundPosition = 'center';
|
|
77
|
-
imageDiv.style.flexShrink = '0';
|
|
78
|
-
|
|
79
|
-
if (widthNum === imgWidth && height === imgHeight) {
|
|
80
|
-
banner.style.width = imgWidth + 'px';
|
|
81
|
-
banner.style.height = imgHeight + 'px';
|
|
82
|
-
banner.style.flexDirection = 'column';
|
|
83
|
-
|
|
84
|
-
imageDiv.style.width = imgWidth + 'px';
|
|
85
|
-
imageDiv.style.height = imgHeight + 'px';
|
|
86
|
-
|
|
87
|
-
banner.appendChild(imageDiv);
|
|
88
|
-
|
|
89
|
-
} else if (isFullWidth) {
|
|
90
|
-
banner.style.width = '100%';
|
|
91
|
-
banner.style.height = imgHeight + 'px';
|
|
92
|
-
banner.style.flexDirection = 'row';
|
|
93
45
|
|
|
94
|
-
imageDiv.style.width = imgWidth + 'px';
|
|
95
|
-
imageDiv.style.height = imgHeight + 'px';
|
|
96
|
-
|
|
97
|
-
textDiv.style.flexGrow = '1';
|
|
98
|
-
textDiv.style.height = imgHeight + 'px';
|
|
99
|
-
|
|
100
|
-
banner.appendChild(imageDiv);
|
|
101
|
-
banner.appendChild(textDiv);
|
|
102
|
-
|
|
103
|
-
} else if (widthNum !== null && widthNum > imgWidth) {
|
|
104
|
-
const extraWidth = widthNum - imgWidth;
|
|
105
|
-
banner.style.width = widthNum + 'px';
|
|
106
|
-
banner.style.height = imgHeight + 'px';
|
|
107
|
-
banner.style.flexDirection = 'row';
|
|
108
|
-
|
|
109
|
-
imageDiv.style.width = imgWidth + 'px';
|
|
110
|
-
imageDiv.style.height = imgHeight + 'px';
|
|
111
|
-
|
|
112
|
-
textDiv.style.width = extraWidth + 'px';
|
|
113
|
-
textDiv.style.height = imgHeight + 'px';
|
|
114
|
-
|
|
115
|
-
banner.appendChild(imageDiv);
|
|
116
|
-
banner.appendChild(textDiv);
|
|
117
|
-
|
|
118
|
-
} else if (typeof height === 'number' && height > imgHeight) {
|
|
119
|
-
const extraHeight = height - imgHeight;
|
|
120
|
-
banner.style.width = imgWidth + 'px';
|
|
121
|
-
banner.style.height = height + 'px';
|
|
122
|
-
banner.style.flexDirection = 'column';
|
|
123
|
-
|
|
124
|
-
imageDiv.style.width = imgWidth + 'px';
|
|
125
|
-
imageDiv.style.height = imgHeight + 'px';
|
|
126
|
-
|
|
127
|
-
textDiv.style.width = imgWidth + 'px';
|
|
128
|
-
textDiv.style.height = extraHeight + 'px';
|
|
129
|
-
|
|
130
|
-
banner.appendChild(imageDiv);
|
|
131
|
-
banner.appendChild(textDiv);
|
|
132
|
-
} else {
|
|
133
|
-
banner.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
134
|
-
banner.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
135
|
-
banner.style.flexDirection = 'column';
|
|
136
|
-
|
|
137
|
-
imageDiv.style.width = (typeof width === 'number' ? width + 'px' : width);
|
|
138
|
-
imageDiv.style.height = (typeof height === 'number' ? height + 'px' : height);
|
|
139
|
-
|
|
140
|
-
banner.appendChild(imageDiv);
|
|
141
|
-
}
|
|
142
|
-
} else {
|
|
143
|
-
banner.style.flexDirection = 'column';
|
|
144
|
-
textDiv.style.display = 'block';
|
|
145
|
-
banner.appendChild(textDiv);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// 고정 아이콘 (클릭 제외 대상)
|
|
149
46
|
const fixedIcon = document.createElement('a');
|
|
150
47
|
fixedIcon.className = 'fixed-icon';
|
|
151
48
|
fixedIcon.href = 'https://gig.snapp.im/';
|
|
152
49
|
fixedIcon.target = '_blank';
|
|
153
|
-
fixedIcon.style.position = 'absolute';
|
|
154
|
-
fixedIcon.style.top = '5px';
|
|
155
|
-
fixedIcon.style.right = '5px';
|
|
156
|
-
fixedIcon.style.width = '30px';
|
|
157
|
-
fixedIcon.style.zIndex = '10';
|
|
158
|
-
|
|
159
50
|
const fixedImg = document.createElement('img');
|
|
160
51
|
fixedImg.src = 'https://cdn.jsdelivr.net/npm/cdnhost@0.1.4/l2.png';
|
|
161
52
|
fixedImg.alt = 'a';
|
|
@@ -163,12 +54,104 @@ const imgWidth = imgHeight * aspectRatio;
|
|
|
163
54
|
fixedImg.style.borderRadius = '50%';
|
|
164
55
|
fixedImg.style.background = '#000';
|
|
165
56
|
|
|
57
|
+
textDiv.appendChild(title);
|
|
58
|
+
textDiv.appendChild(desc);
|
|
166
59
|
fixedIcon.appendChild(fixedImg);
|
|
60
|
+
banner.appendChild(imageDiv);
|
|
61
|
+
banner.appendChild(textDiv);
|
|
167
62
|
banner.appendChild(fixedIcon);
|
|
168
|
-
|
|
169
63
|
div.appendChild(banner);
|
|
64
|
+
|
|
65
|
+
const style = document.createElement('style');
|
|
66
|
+
style.textContent = `
|
|
67
|
+
body {
|
|
68
|
+
background: #000;
|
|
69
|
+
}
|
|
70
|
+
/* 💡 width/height는 JS에서 직접 제어하므로 .snapp-banner-container 자체에는 W/H 스타일 없음 */
|
|
71
|
+
.snapp-banner-container {
|
|
72
|
+
position: relative;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
border-radius: 1rem;
|
|
75
|
+
border: 3px solid #fff;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
background: #f0f0f0;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
.fixed-icon {
|
|
81
|
+
position: absolute; top: 10px; right: 10px;
|
|
82
|
+
width: 30px; height: 30px; z-index: 3;
|
|
83
|
+
}
|
|
84
|
+
.fixed-icon img { width: 100%; border-radius: 50%; }
|
|
85
|
+
|
|
86
|
+
/* --- 데스크탑 스타일 (769px 이상) --- */
|
|
87
|
+
@media (min-width: 769px) {
|
|
88
|
+
.snapp-banner-container.layout-full-width {
|
|
89
|
+
display: flex; flex-direction: row;
|
|
90
|
+
}
|
|
91
|
+
.snapp-banner-container.layout-full-width .image-div {
|
|
92
|
+
width: ${height * 1.2}px; height: 100%; flex-shrink: 0;
|
|
93
|
+
background-size: cover; background-position: center;
|
|
94
|
+
}
|
|
95
|
+
.snapp-banner-container.layout-full-width .text-div {
|
|
96
|
+
flex-grow: 1; padding: 20px;
|
|
97
|
+
display: flex; flex-direction: column; justify-content: center;
|
|
98
|
+
background: #fff;
|
|
99
|
+
}
|
|
100
|
+
.snapp-banner-container.layout-full-width .banner-title {
|
|
101
|
+
color: #111; font-size: 1.2em; font-weight: bold; margin: 0;
|
|
102
|
+
}
|
|
103
|
+
.snapp-banner-container.layout-full-width .banner-desc {
|
|
104
|
+
color: #555; font-size: 1em; margin: 0;
|
|
105
|
+
}
|
|
106
|
+
.snapp-banner-container:not(.layout-full-width) {
|
|
107
|
+
display: flex; align-items: flex-end;
|
|
108
|
+
}
|
|
109
|
+
.snapp-banner-container:not(.layout-full-width) .image-div {
|
|
110
|
+
position: absolute; top:0; left:0; width:100%; height:100%;
|
|
111
|
+
background-size: cover; background-position: center; z-index:1;
|
|
112
|
+
}
|
|
113
|
+
.snapp-banner-container:not(.layout-full-width) .text-div {
|
|
114
|
+
width: 100%; position: relative; z-index: 2; padding: 40px 20px 20px 20px;
|
|
115
|
+
box-sizing: border-box; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
|
|
116
|
+
}
|
|
117
|
+
.snapp-banner-container:not(.layout-full-width) .banner-title,
|
|
118
|
+
.snapp-banner-container:not(.layout-full-width) .banner-desc {
|
|
119
|
+
color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
|
|
120
|
+
overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
|
|
121
|
+
-webkit-box-orient: vertical; -webkit-line-clamp: 2;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media (max-width: 768px) {
|
|
126
|
+
.snapp-banner-container {
|
|
127
|
+
display: flex; align-items: flex-end;
|
|
128
|
+
}
|
|
129
|
+
.snapp-banner-container .image-div {
|
|
130
|
+
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
|
|
131
|
+
background-size: cover; background-position: center; z-index: 1;
|
|
132
|
+
}
|
|
133
|
+
.snapp-banner-container .text-div {
|
|
134
|
+
width: 100%; position: relative; z-index: 2;
|
|
135
|
+
padding: 40px 20px 20px 20px; box-sizing: border-box;
|
|
136
|
+
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
|
|
137
|
+
}
|
|
138
|
+
.snapp-banner-container .banner-title,
|
|
139
|
+
.snapp-banner-container .banner-desc {
|
|
140
|
+
color: #fff !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
|
|
141
|
+
margin: 0; overflow: hidden; text-overflow: ellipsis;
|
|
142
|
+
display: -webkit-box; -webkit-box-orient: vertical;
|
|
143
|
+
}
|
|
144
|
+
.snapp-banner-container .banner-title {
|
|
145
|
+
font-weight: bold; -webkit-line-clamp: 2;
|
|
146
|
+
}
|
|
147
|
+
.snapp-banner-container .banner-desc {
|
|
148
|
+
font-size: 0.9em; -webkit-line-clamp: 2;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
document.head.appendChild(style);
|
|
170
153
|
})
|
|
171
154
|
.catch(err => {
|
|
172
155
|
console.error('배너 로드 실패:', err);
|
|
173
156
|
});
|
|
174
|
-
}
|
|
157
|
+
}
|
package/link.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
const urls = [...new Set([
|
|
3
3
|
"//seekr.kr","//snapp.im","//manatoki.kr","//199.kr","//thedeo.uk",
|
|
4
|
-
"//ruliweb.iwinv.net/","//instiz.iwinv.net/","//gmarket.iwinv.net/","//aliexpress.iwinv.net/","//facebook.iwinv.net/","//dcinside.iwinv.net/","//etoland.iwinv.net/","//auction.iwinv.net/","//asdasd.iwinv.net/","//kangkas.iwinv.net/","//lavikit.iwinv.net/","//maplegg.iwinv.net/","//kemono.iwinv.net/","//redgifs.iwinv.net/","//wikikr.iwinv.net/","//
|
|
4
|
+
"//ruliweb.iwinv.net/","//instiz.iwinv.net/","//gmarket.iwinv.net/","//aliexpress.iwinv.net/","//facebook.iwinv.net/","//dcinside.iwinv.net/","//etoland.iwinv.net/","//auction.iwinv.net/","//asdasd.iwinv.net/","//kangkas.iwinv.net/","//lavikit.iwinv.net/","//maplegg.iwinv.net/","//kemono.iwinv.net/","//redgifs.iwinv.net/","//wikikr.iwinv.net/","//koreakr.iwinv.net/","//capcut.iwinv.net/","//snp500.iwinv.net/","//shopee.iwinv.net/","//namuwiki.iwinv.net/","//popcat.iwinv.net/","//fiveguys.iwinv.net/","//jjang0u.iwinv.net/","//mmtcld.iwinv.net/","//tdgall.iwinv.net/","//yakored.iwinv.net/","//postype.iwinv.net/","//manatoki.iwinv.net/","//dctribe.iwinv.net/","//munpia.iwinv.net/","//snpetf.iwinv.net/","//hygall.iwinv.net/","//skyscanner.iwinv.net/","//flightaware.iwinv.net/","//interpals.iwinv.net/","//fconline.iwinv.net/","//flextv.iwinv.net/","//mlbpark.iwinv.net/","//eomisae.iwinv.net/","//ecount.iwinv.net/","//hiworks.iwinv.net/","//toomics.iwinv.net/","//mixamo.iwinv.net/","//yandex.iwinv.net/","//toptoon.iwinv.net/","//slrclub.iwinv.net/","//dmitory.iwinv.net/","//kmcert.iwinv.net/","//lolchess.iwinv.net/","//curseforge.iwinv.net/","//hsreplay.iwinv.net/","//mapleinven.iwinv.net/","//c19670.iwinv.net/","//bikini.iwinv.net/","//school.iwinv.net/","//qqqqqq.iwinv.net/","//iiiiii.iwinv.net/","//llllll.iwinv.net/","//oooooo.iwinv.net/","//xxxxxx.iwinv.net/","//eeeeee.iwinv.net/","//aaaaaa.iwinv.net/","//zzzzzz.iwinv.net/","//tttttt.iwinv.net/","//ssssss.iwinv.net/","//pdnews.iwinv.net/","//twitch.iwinv.net/","//twitter.iwinv.net/","//valorant.iwinv.net/","//tiktok.iwinv.net/","//tumblr.iwinv.net/","//netflix.iwinv.net/","//minecraft.iwinv.net/","//openai.iwinv.net/","//palworld.iwinv.net/",
|
|
5
5
|
"//1a.seekr.kr","//1b.seekr.kr","//1c.seekr.kr","//1d.seekr.kr","//1e.seekr.kr","//1f.seekr.kr","//1g.seekr.kr","//1h.seekr.kr","//1i.seekr.kr","//1.seekr.kr","//2.seekr.kr","//3.seekr.kr","//4.seekr.kr","//5.seekr.kr","//6.seekr.kr","//7.seekr.kr","//8.seekr.kr","//9.seekr.kr","//10.seekr.kr","//11.seekr.kr","//12.seekr.kr","//13.seekr.kr","//14.seekr.kr","//15.seekr.kr","//16.seekr.kr","//17.seekr.kr","//18.seekr.kr","//19.seekr.kr","//20.seekr.kr","//21.seekr.kr","//22.seekr.kr","//23.seekr.kr","//24.seekr.kr","//25.seekr.kr","//26.seekr.kr","//27.seekr.kr","//28.seekr.kr","//29.seekr.kr","//30.seekr.kr","//31.seekr.kr","//32.seekr.kr","//33.seekr.kr","//34.seekr.kr","//35.seekr.kr","//39.seekr.kr","//42.seekr.kr","//43.seekr.kr","//48.seekr.kr","//50.seekr.kr","//53.seekr.kr","//56.seekr.kr","//67.seekr.kr","//70.seekr.kr","//129.seekr.kr","//124.seekr.kr","//127.seekr.kr","//128.seekr.kr",
|
|
6
|
-
"//ranovel.kr","//
|
|
6
|
+
"//ranovel.kr","//16.snapp.im","//17.snapp.im","//18.snapp.im","//19.snapp.im","//20.snapp.im","//21.snapp.im","//22.snapp.im","//23.snapp.im","//24.snapp.im","//25.snapp.im",
|
|
7
7
|
"//1.manatoki.kr","//2.manatoki.kr","//3.manatoki.kr","//4.manatoki.kr","//5.manatoki.kr","//6.manatoki.kr","//7.manatoki.kr","//8.manatoki.kr","//9.manatoki.kr","//10.manatoki.kr","//11.manatoki.kr","//12.manatoki.kr","//13.manatoki.kr","//14.manatoki.kr","//15.manatoki.kr","//16.manatoki.kr","//17.manatoki.kr","//18.manatoki.kr","//19.manatoki.kr","//20.manatoki.kr","//19.manatoki.kr","//20.manatoki.kr","//21.manatoki.kr","//22.manatoki.kr","//23.manatoki.kr","//24.manatoki.kr","//25.manatoki.kr","//26.manatoki.kr","//27.manatoki.kr","//28.manatoki.kr","//29.manatoki.kr","//30.manatoki.kr","//31.manatoki.kr","//32.manatoki.kr","//33.manatoki.kr","//34.manatoki.kr","//35.manatoki.kr","//36.manatoki.kr","//37.manatoki.kr","//38.manatoki.kr","//39.manatoki.kr","//40.manatoki.kr","//41.manatoki.kr","//42.manatoki.kr","//43.manatoki.kr","//44.manatoki.kr","//45.manatoki.kr","//46.manatoki.kr","//47.manatoki.kr","//48.manatoki.kr","//49.manatoki.kr","//50.manatoki.kr","//51.manatoki.kr","//52.manatoki.kr","//53.manatoki.kr","//54.manatoki.kr","//55.manatoki.kr","//56.manatoki.kr","//57.manatoki.kr","//58.manatoki.kr","//59.manatoki.kr","//60.manatoki.kr","//61.manatoki.kr","//62.manatoki.kr","//63.manatoki.kr","//64.manatoki.kr","//65.manatoki.kr","//66.manatoki.kr","//67.manatoki.kr","//68.manatoki.kr","//69.manatoki.kr","//70.manatoki.kr","//71.manatoki.kr","//72.manatoki.kr","//73.manatoki.kr","//74.manatoki.kr","//75.manatoki.kr","//76.manatoki.kr","//77.manatoki.kr","//78.manatoki.kr","//79.manatoki.kr",
|
|
8
8
|
"//1.199.kr","//2.199.kr","//3.199.kr","//4.199.kr","//5.199.kr","//6.199.kr","//7.199.kr","//8.199.kr","//9.199.kr","//google.199.kr","//tistory.thedeo.uk","//blog.thedeo.uk","//news.thedeo.uk","//o.thedeo.uk","//oo.thedeo.uk","//ooo.thedeo.uk","//oooo.thedeo.uk","//ooooo.thedeo.uk","//i.thedeo.uk","//ii.thedeo.uk","//iii.thedeo.uk","//iiii.thedeo.uk","//iiiii.thedeo.uk","//a.thedeo.uk","//b.thedeo.uk","//c.thedeo.uk","//d.thedeo.uk","//e.thedeo.uk","//f.thedeo.uk","//g.thedeo.uk","//h.thedeo.uk","//j.thedeo.uk","//k.thedeo.uk","//l.thedeo.uk","//m.thedeo.uk","//n.thedeo.uk","//p.thedeo.uk","//q.thedeo.uk","//r.thedeo.uk","//s.thedeo.uk","//t.thedeo.uk","//u.thedeo.uk","//v.thedeo.uk","//w.thedeo.uk","//x.thedeo.uk","//y.thedeo.uk","//z.thedeo.uk","//a1.thedeo.uk","//a2.thedeo.uk","//a3.thedeo.uk","//a4.thedeo.uk","//a5.thedeo.uk","//a6.thedeo.uk","//a7.thedeo.uk","//a8.thedeo.uk","//a9.thedeo.uk","//b1.thedeo.uk","//b2.thedeo.uk","//b3.thedeo.uk","//b4.thedeo.uk","//b5.thedeo.uk","//b6.thedeo.uk","//b7.thedeo.uk","//b8.thedeo.uk","//b9.thedeo.uk","//cloud.thedeo.uk",
|
|
9
9
|
"//9.news1.workers.dev","//8.news1.workers.dev","//7.news1.workers.dev","//6.news1.workers.dev","//5.news1.workers.dev","//4.news1.workers.dev","//3.news1.workers.dev","//2.news1.workers.dev","//1.news1.workers.dev","//9.news2.workers.dev","//8.news2.workers.dev","//7.news2.workers.dev","//6.news2.workers.dev","//5.news2.workers.dev","//4.news2.workers.dev","//3.news2.workers.dev","//2.news2.workers.dev","//1.news2.workers.dev","//8.00000-c22.workers.dev","//7.00000-c22.workers.dev","//6.00000-c22.workers.dev","//5.00000-c22.workers.dev","//4.00000-c22.workers.dev","//3.00000-c22.workers.dev","//2.00000-c22.workers.dev","//1.00000-c22.workers.dev","//0.00000-c22.workers.dev","//9.daum.workers.dev","//8.daum.workers.dev","//7.daum.workers.dev","//6.daum.workers.dev","//5.daum.workers.dev","//4.daum.workers.dev","//3.daum.workers.dev","//2.daum.workers.dev","//1.daum.workers.dev","//9.tistory.workers.dev","//8.tistory.workers.dev","//7.tistory.workers.dev","//6.tistory.workers.dev","//5.tistory.workers.dev","//4.tistory.workers.dev","//3.tistory.workers.dev","//2.tistory.workers.dev","//1.tistory.workers.dev","//9.l1i1i.workers.dev","//8.l1i1i.workers.dev","//7.l1i1i.workers.dev","//6.l1i1i.workers.dev","//5.l1i1i.workers.dev","//4.l1i1i.workers.dev","//3.l1i1i.workers.dev","//2.l1i1i.workers.dev","//1.l1i1i.workers.dev","//9.naver-news.workers.dev","//8.naver-news.workers.dev","//7.naver-news.workers.dev","//6.naver-news.workers.dev","//5.naver-news.workers.dev","//4.naver-news.workers.dev","//3.naver-news.workers.dev","//2.naver-news.workers.dev","//1.naver-news.workers.dev","//6.naver-116.workers.dev","//5.naver-116.workers.dev","//4.naver-116.workers.dev","//3.naver-116.workers.dev","//2.naver-116.workers.dev","//1.naver-116.workers.dev","//6.q7x2.workers.dev","//5.q7x2.workers.dev","//4.q7x2.workers.dev","//3.q7x2.workers.dev","//2.q7x2.workers.dev","//1.q7x2.workers.dev","//8.a9lq.workers.dev","//7.a9lq.workers.dev","//6.a9lq.workers.dev","//5.a9lq.workers.dev","//4.a9lq.workers.dev","//3.a9lq.workers.dev","//2.a9lq.workers.dev","//1.a9lq.workers.dev","//long-bar-4b4e.a9lq.workers.dev","//1.x36q.workers.dev","//3.x36q.workers.dev","//4.x36q.workers.dev","//5.x36q.workers.dev","//6.x36q.workers.dev","//8.x36q.workers.dev","//9.x36q.workers.dev","//1.p1q7.workers.dev","//3.p1q7.workers.dev","//4.p1q7.workers.dev","//5.p1q7.workers.dev","//6.p1q7.workers.dev","//7.p1q7.workers.dev","//8.p1q7.workers.dev","//1.ascklw21.workers.dev","//2.ascklw21.workers.dev","//3.ascklw21.workers.dev","//5.ascklw21.workers.dev","//6.ascklw21.workers.dev","//7.ascklw21.workers.dev","//8.ascklw21.workers.dev","//9.ascklw21.workers.dev","//2.fluke201.workers.dev","//3.fluke201.workers.dev","//4.fluke201.workers.dev","//5.fluke201.workers.dev","//6.fluke201.workers.dev","//7.fluke201.workers.dev","//8.fluke201.workers.dev","//9.fluke201.workers.dev","//1.ffluke103.workers.dev","//2.ffluke103.workers.dev","//3.ffluke103.workers.dev","//4.ffluke103.workers.dev","//5.ffluke103.workers.dev","//6.ffluke103.workers.dev","//7.ffluke103.workers.dev","//8.ffluke103.workers.dev","//9.ffluke103.workers.dev","//1.qpx.workers.dev","//2.qpx.workers.dev","//3.qpx.workers.dev","//4.qpx.workers.dev","//5.qpx.workers.dev","//6.qpx.workers.dev","//7.qpx.workers.dev","//8.qpx.workers.dev","//9.qpx.workers.dev","//1.cxi.workers.dev","//2.cxi.workers.dev","//3.cxi.workers.dev","//4.cxi.workers.dev","//5.cxi.workers.dev","//6.cxi.workers.dev","//7.cxi.workers.dev","//8.cxi.workers.dev","//9.cxi.workers.dev","//1.kxq.workers.dev","//2.kxq.workers.dev","//3.kxq.workers.dev","//4.kxq.workers.dev","//5.kxq.workers.dev","//6.kxq.workers.dev","//7.kxq.workers.dev","//8.kxq.workers.dev","//9.kxq.workers.dev","//1.lesunghwa408.workers.dev","//2.lesunghwa408.workers.dev","//3.lesunghwa408.workers.dev","//4.lesunghwa408.workers.dev","//5.lesunghwa408.workers.dev","//6.lesunghwa408.workers.dev","//7.lesunghwa408.workers.dev","//8.lesunghwa408.workers.dev","//2.silisoft078.workers.dev","//3.silisoft078.workers.dev","//4.silisoft078.workers.dev","//5.silisoft078.workers.dev","//6.silisoft078.workers.dev","//7.silisoft078.workers.dev","//8.silisoft078.workers.dev","//floral-field-6df2.silisoft078.workers.dev","//admin.099.kr",
|