Добавил perplexity

This commit is contained in:
RedGrox2013
2026-05-19 21:41:43 +03:00
parent 0b28111381
commit 6470b26abf
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -28,7 +28,7 @@
</header>
<section class="hero">
<img src="images/logo.png" height="400">
<img src="images/logo.png" height="300">
<h1 id="title">We Build Worlds</h1>
<p id="desc">AloeGames is a modern game development studio focused on creating immersive, next-generation
experiences.</p>
@@ -37,12 +37,11 @@
<select id="searchEngine" class="search-engine" aria-label="Select search engine">
<option value="google">Google</option>
<option value="duckduckgo">DuckDuckGo</option>
<option value="perplexity">Perplexity</option>
</select>
<input id="searchInput" type="search" placeholder="Search the web..." aria-label="Search query">
<button class="btn search-btn" type="submit">Search</button>
</form>
<!-- <button class="btn" id="button">Explore</button> -->
</section>
<section>
+2
View File
@@ -59,6 +59,8 @@ function searchQuery(event) {
if (engine === 'duckduckgo') {
url = 'https://duckduckgo.com/?q=' + encodedQuery;
} else if (engine === 'perplexity') {
url = 'https://www.perplexity.ai/search?q=' + encodedQuery;
}
window.open(url, '_blank', 'noopener');