cdnhost 2.1.1 → 2.1.2
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/_search_banner.js +2 -1
- package/_search_banner2.js +80 -0
- package/blaboo.png +0 -0
- package/package.json +1 -1
- package/upbit-logo-removebg-preview.png +0 -0
package/_search_banner.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
document.addEventListener('DOMContentLoaded', function() {
|
|
3
3
|
const itemsData = [
|
|
4
|
-
{ name: '
|
|
4
|
+
{ name: 'zoai', url: 'https://zoai.seekr.kr' },
|
|
5
|
+
{ name: 'isai', url: 'https://isai.kr' },
|
|
5
6
|
{ name: 'AI매지션', url: 'https://099.kr' },
|
|
6
7
|
{ name: '로긱', url: 'https://logig.im' },
|
|
7
8
|
{ name: '블로긱', url: 'https://blog.099.kr' },
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
2
|
+
const itemsData = [
|
|
3
|
+
{ name: 'zoai', url: 'https://zoai.seekr.kr' },
|
|
4
|
+
{ name: 'isai', url: 'https://isai.kr' },
|
|
5
|
+
{ name: 'AI매지션', url: 'https://099.kr' },
|
|
6
|
+
{ name: '로긱', url: 'https://logig.im' },
|
|
7
|
+
{ name: '블로긱', url: 'https://blog.099.kr' },
|
|
8
|
+
{ name: '스냅', url: 'https://snapp.im' },
|
|
9
|
+
{ name: '시커', url: 'https://seekr.kr' },
|
|
10
|
+
{ name: '애드센스포럼', url: 'https://adsense.ko-kr.workers.dev' },
|
|
11
|
+
{ name: '유튜브포럼', url: 'https://youtube.ko-kr.workers.dev' },
|
|
12
|
+
{ name: '배경화면포럼', url: 'https://wallpaper.ko-kr.workers.dev' },
|
|
13
|
+
{ name: '유머햄', url: 'https://hham.ko-kr.workers.dev' },
|
|
14
|
+
{ name: '해외주식갤러리', url: 'https://199.kr' },
|
|
15
|
+
{ name: '미국주식갤러리', url: 'https://919.kr' },
|
|
16
|
+
{ name: '라노벨KR', url: 'https://ranovel.kr' },
|
|
17
|
+
{ name: '유머토끼', url: 'https://manatoki.kr' },
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
const fhlWidgetWrapper = document.createElement('div');
|
|
21
|
+
fhlWidgetWrapper.className = 'fhl-widget-wrapper';
|
|
22
|
+
|
|
23
|
+
const fhlSearchInput = document.createElement('input');
|
|
24
|
+
fhlSearchInput.type = 'text';
|
|
25
|
+
fhlSearchInput.className = 'fhl-search-input';
|
|
26
|
+
fhlSearchInput.placeholder = '검색';
|
|
27
|
+
fhlSearchInput.autocomplete = 'off';
|
|
28
|
+
|
|
29
|
+
const fhlListContainer = document.createElement('div');
|
|
30
|
+
fhlListContainer.className = 'fhl-list-container';
|
|
31
|
+
|
|
32
|
+
const fhlListItems = [];
|
|
33
|
+
|
|
34
|
+
itemsData.forEach(item => {
|
|
35
|
+
const listItem = document.createElement('a');
|
|
36
|
+
listItem.href = item.url;
|
|
37
|
+
listItem.target = '_blank';
|
|
38
|
+
listItem.className = 'fhl-list-item';
|
|
39
|
+
listItem.textContent = item.name;
|
|
40
|
+
|
|
41
|
+
// ▼▼▼▼▼▼▼▼▼▼▼▼▼▼ 이 부분이 추가/수정되었습니다 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼
|
|
42
|
+
// 'zoai' 또는 'isai' 항목일 경우 rel="nofollow" 속성을 추가합니다.
|
|
43
|
+
if (item.name === 'zoai' || item.name === 'isai') {
|
|
44
|
+
listItem.setAttribute('rel', 'nofollow');
|
|
45
|
+
}
|
|
46
|
+
// ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
|
|
47
|
+
|
|
48
|
+
fhlListContainer.appendChild(listItem);
|
|
49
|
+
fhlListItems.push(listItem);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const fhlScrollArrow = document.createElement('button');
|
|
53
|
+
fhlScrollArrow.className = 'fhl-scroll-arrow';
|
|
54
|
+
fhlScrollArrow.setAttribute('aria-label', '다음으로 스크롤');
|
|
55
|
+
fhlScrollArrow.textContent = '›';
|
|
56
|
+
|
|
57
|
+
fhlWidgetWrapper.appendChild(fhlSearchInput);
|
|
58
|
+
fhlWidgetWrapper.appendChild(fhlListContainer);
|
|
59
|
+
fhlWidgetWrapper.appendChild(fhlScrollArrow);
|
|
60
|
+
|
|
61
|
+
document.body.appendChild(fhlWidgetWrapper);
|
|
62
|
+
|
|
63
|
+
fhlScrollArrow.addEventListener('click', function() {
|
|
64
|
+
const scrollAmount = fhlListContainer.clientWidth * 0.8;
|
|
65
|
+
const isAtEnd = Math.abs(fhlListContainer.scrollWidth - fhlListContainer.clientWidth - fhlListContainer.scrollLeft) < 1;
|
|
66
|
+
|
|
67
|
+
fhlListContainer.scrollTo({
|
|
68
|
+
left: isAtEnd ? 0 : fhlListContainer.scrollLeft + scrollAmount,
|
|
69
|
+
behavior: 'smooth'
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
fhlSearchInput.addEventListener('input', function() {
|
|
74
|
+
const searchTerm = fhlSearchInput.value.toLowerCase();
|
|
75
|
+
fhlListItems.forEach(function(item) {
|
|
76
|
+
const itemText = item.textContent.toLowerCase();
|
|
77
|
+
item.style.display = itemText.includes(searchTerm) ? 'block' : 'none';
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
});
|
package/blaboo.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|