Skip to content

Commit

Permalink
interrogate perplexity
Browse files Browse the repository at this point in the history
  • Loading branch information
AshSimmonds authored Jun 25, 2024
1 parent edbb55c commit ac44cb0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@ const rightMeowTimeDateFriendly = rightMeow.toLocaleString(undefined, {
}
</script>



<script>
document.getElementById('searchForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission

// Get the user's input
var query = document.getElementById('searchInput').value;

// Encode the query for use in a URL
var encodedQuery = encodeURIComponent(query);

// Construct the Perplexity URL
var perplexityUrl = 'https://www.perplexity.ai/?q=' + encodedQuery;

// Redirect to Perplexity
window.location.href = perplexityUrl;
});
</script>




<style>
.btn {
text-decoration: none;
Expand All @@ -42,6 +65,22 @@ const rightMeowTimeDateFriendly = rightMeow.toLocaleString(undefined, {

- [ ] make TODO list - [ ] do TODO thingzzz



<h2 class="align">hmmm</a>


<form id="searchForm">
<input type="text" id="searchInput" placeholder="Perplexity">
<button type="submit">Interrogate</button>
</form>







<h2 class="align">res prodentia</h2>

<a href="https://mail.google.com" class="btn btn-primary"
Expand Down

0 comments on commit ac44cb0

Please sign in to comment.