forked from jinix6/ItemID
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathHowToSearch.html
More file actions
executable file
·280 lines (260 loc) · 13.7 KB
/
HowToSearch.html
File metadata and controls
executable file
·280 lines (260 loc) · 13.7 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Search Documentation</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
dark: {
800: '#1a1a1a',
700: '#262626',
600: '#404040',
}
}
}
}
}
</script>
<style>
.code-font {
font-family: 'IBM Plex Mono', monospace;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #262626;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #404040;
border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #525252;
}
</style>
</head>
<body class="code-font bg-black text-white min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-5xl">
<!-- Header -->
<header class="bg-dark-800 rounded-xl p-6 mb-8 border border-dark-600">
<h1 class="text-3xl md:text-4xl font-bold mb-2">Advanced Search Documentation</h1>
<p class="text-gray-400">Learn how to use powerful search operators to find exactly what you're looking for</p>
</header>
<!-- Search Syntax Section -->
<section class="bg-dark-800 rounded-xl p-6 mb-8 border border-dark-600">
<h2 class="text-2xl font-bold mb-4">Search Syntax</h2>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2"><span class="bg-dark-600 text-white py-1 px-2 rounded mr-2">&&</span> OR Operator</h3>
<p class="mb-2 text-gray-400">Use <code class="bg-dark-700 text-white px-2 py-1 rounded code-font">&&</code> to separate groups of conditions where any group can match.</p>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">Icon_Emote_Hello&&Icon_Token_Camo</pre>
<p class="text-gray-400 text-sm mt-1">Finds items that contain either "Icon_Emote_Hello" OR "Icon_Token_Camo".</p>
</div>
</div>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2"><span class="bg-dark-600 text-white py-1 px-2 rounded mr-2">&</span> AND Operator</h3>
<p class="mb-2 text-gray-400">Use <code class="bg-dark-700 text-white px-2 py-1 rounded code-font">&</code> to combine conditions that must all be true.</p>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">Icon_Token_Camo&Rare:BLUE</pre>
<p class="text-gray-400 text-sm mt-1">Finds items that contain both "Icon_Token_Camo" AND have rarity set to "BLUE".</p>
</div>
</div>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2"><span class="bg-dark-600 text-white py-1 px-2 rounded mr-2">field:value</span> Field-Specific Search</h3>
<p class="mb-2 text-gray-400">Search within specific fields using the <code class="bg-dark-700 text-white px-2 py-1 rounded code-font">field:value</code> syntax.</p>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">collectionType:EMOTE&Rare:PURPLE</pre>
<p class="text-gray-400 text-sm mt-1">Finds items where the collectionType is exactly "EMOTE" AND rarity is exactly "PURPLE".</p>
</div>
</div>
</section>
<!-- Available Fields Section -->
<section class="bg-dark-800 rounded-xl p-6 mb-8 border border-dark-600">
<h2 class="text-2xl font-bold mb-4">Available Fields</h2>
<p class="text-gray-400 mb-4">You can search by any of these fields using the field:value syntax:</p>
<div class="bg-dark-700 p-4 rounded-lg">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">icon</span>
<span class="text-gray-400 text-sm">The icon identifier for the item</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">itemID</span>
<span class="text-gray-400 text-sm">The unique identifier for the item</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">description</span>
<span class="text-gray-400 text-sm">The primary description of the item</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">description2</span>
<span class="text-gray-400 text-sm">Secondary description field</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">Rare</span>
<span class="text-gray-400 text-sm">The rarity level of the item</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">isUnique</span>
<span class="text-gray-400 text-sm">Whether the item is unique (true/false)</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">IconInAB</span>
<span class="text-gray-400 text-sm">Icon location identifier</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">itemType</span>
<span class="text-gray-400 text-sm">The type of item</span>
</div>
<div class="flex items-start">
<span class="bg-dark-600 text-white px-2 py-1 rounded code-font text-sm mr-2">collectionType</span>
<span class="text-gray-400 text-sm">The collection category of the item</span>
</div>
</div>
</div>
</section>
<!-- Item Types Section -->
<section class="bg-dark-800 rounded-xl p-6 mb-8 border border-dark-600">
<h2 class="text-2xl font-bold mb-4">Item Types & Rarities</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<h3 class="text-xl font-semibold mb-3">Rarity Types</h3>
<div class="bg-dark-700 p-4 rounded-lg max-h-80 overflow-y-auto custom-scrollbar">
<div class="grid grid-cols-1 gap-2" id="rarityTypesList">
<!-- JavaScript will populate this -->
</div>
</div>
</div>
<div>
<h3 class="text-xl font-semibold mb-3">Collection Types</h3>
<div class="bg-dark-700 p-4 rounded-lg max-h-80 overflow-y-auto custom-scrollbar">
<div class="grid grid-cols-1 gap-2" id="collectionTypesList">
<!-- JavaScript will populate this -->
</div>
</div>
</div>
</div>
</section>
<!-- Advanced Examples Section -->
<section class="bg-dark-800 rounded-xl p-6 mb-8 border border-dark-600">
<h2 class="text-2xl font-bold mb-4">Advanced Examples</h2>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2">Complex Boolean Search</h3>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">Icon_Emote_Hello&collectionType:EMOTE&&Icon_Token_Camo&collectionType:WEAPON_SKIN</pre>
<p class="text-gray-400 text-sm mt-1">Finds items that are (Icon_Emote_Hello AND collectionType=EMOTE) OR (Icon_Token_Camo AND collectionType=WEAPON_SKIN).</p>
</div>
</div>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2">Multiple Field Search</h3>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">Icon_Token_Camo&collectionType:WEAPON_SKIN&Rare:BLUE</pre>
<p class="text-gray-400 text-sm mt-1">Finds items containing "Icon_Token_Camo" with collectionType=WEAPON_SKIN and rarity=BLUE.</p>
</div>
</div>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2">Mixed Search</h3>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">collectionType:EMOTE&Rare:PURPLE&&collectionType:WEAPON_SKIN&Rare:ORANGE</pre>
<p class="text-gray-400 text-sm mt-1">Finds items that are (collectionType=EMOTE AND rarity=PURPLE) OR (collectionType=WEAPON_SKIN AND rarity=ORANGE).</p>
</div>
</div>
<div class="mb-6">
<h3 class="text-xl font-semibold mb-2">Field-Specific Examples</h3>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">itemID:909000001</pre>
<p class="text-gray-400 text-sm mt-1">Finds the item with ID 909000001.</p>
</div>
<div class="bg-dark-700 p-4 rounded-lg mb-2">
<pre class="text-white code-font overflow-x-auto">isUnique:true&Rare:PURPLE</pre>
<p class="text-gray-400 text-sm mt-1">Finds unique items with purple rarity.</p>
</div>
<div class="bg-dark-700 p-4 rounded-lg">
<pre class="text-white code-font overflow-x-auto">description:Hello</pre>
<p class="text-gray-400 text-sm mt-1">Finds items with "Hello" in their description.</p>
</div>
</div>
</section>
</div>
<script>
// Item Rarity Types
const RareType = {
ALL: 0,
WHITE: 1,
GREEN: 2,
BLUE: 3,
PURPLE: 4,
ORANGE: 5,
CARD: 6,
RED: 7,
PURPLE_PLUS: 8,
ORANGE_PLUS: 9,
NONE: 10,
};
// Collection Types
const CollectionType = {
ALL: 0,
BANNER: 1,
HEADPIC: 2,
LOOTBOX: 3,
GAMEBAG: 4,
PARACHUTE: 5,
SKATE: 6,
WEAPON_SKIN: 7,
VEHICLE_SKIN: 8,
EMOTE: 9,
PIN: 10,
FLIGHT: 11,
GROUPANIM: 12,
MUSIC: 13,
TRANSFORM_EMOTE: 14,
TITLE: 16,
ACTION_JUMP: 17,
ACTION_FIRST_AID_KIT: 18,
ACTION_CROSS_WINDOW: 19,
ACTION_FALL: 20,
QUICK_CHAT: 21,
SKILL_SKIN: 22,
FINAL_SHOT: 23,
SUPER_EMOTE: 24,
LOADING_CARD: 25,
NONE: 26,
};
// Function to display types using loops
function displayTypes() {
const rarityTypesList = document.getElementById('rarityTypesList');
const collectionTypesList = document.getElementById('collectionTypesList');
// Display Rarity Types
for (const [key, value] of Object.entries(RareType)) {
const typeItem = document.createElement('div');
typeItem.className = 'flex justify-between items-center py-2 border-b border-dark-600 last:border-b-0';
typeItem.innerHTML = `
<span class="text-white">${key}</span>
<span class="text-gray-400 code-font">${value}</span>
`;
rarityTypesList.appendChild(typeItem);
}
// Display Collection Types
for (const [key, value] of Object.entries(CollectionType)) {
const typeItem = document.createElement('div');
typeItem.className = 'flex justify-between items-center py-2 border-b border-dark-600 last:border-b-0';
typeItem.innerHTML = `
<span class="text-white">${key}</span>
<span class="text-gray-400 code-font">${value}</span>
`;
collectionTypesList.appendChild(typeItem);
}
}
// Call the function when the page loads
window.onload = displayTypes;
</script>
</body>
</html>