Skip to content

Commit ecdec74

Browse files
authored
Update index.html
1 parent a154b62 commit ecdec74

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ <h1>
143143
<input type="text" id="searchInput" placeholder="Search within HackTricks..." />
144144
<div class="buttons">
145145
<button type="submit" name="engine" value="hacktricks">Search in HackTricks</button>
146+
<button type="submit" name="engine" value="hacktricks-cloud">Search in HackTricks Cloud</button>
146147
<button type="submit" name="engine" value="bing">Search with Bing</button>
147148
</div>
148149
</form>
@@ -159,7 +160,13 @@ <h1>
159160
actionUrl = 'https://book.hacktricks.wiki/en/index.html';
160161
input_name = 'search';
161162
input_value = userQuery;
162-
} else {
163+
}
164+
if (engine === 'hacktricks-cloud') {
165+
actionUrl = 'https://cloud.hacktricks.wiki/en/index.html';
166+
input_name = 'search';
167+
input_value = userQuery;
168+
}
169+
else {
163170
actionUrl = 'https://www.bing.com/search';
164171
input_name = 'q';
165172
input_value = filter + ' ' + userQuery;

0 commit comments

Comments
 (0)