Skip to content

Commit

Permalink
add instructions for signing up
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandotsmith committed Nov 7, 2024
1 parent de7a29c commit 977a9ef
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
border: 2px solid green;
}
.option {
cursor: pointer;
width: 100%;
border: 1px solid gray;
box-sizing: border-box;
Expand Down Expand Up @@ -404,7 +405,11 @@ <h3>Dedicated</h3>
</div>
<div id="get-started" class="point">
<h2>Get Started</h2>
<p>Sign up for an account and start making queries today!</p>
<p>
Start building queries for free (rate limited to 5 per minute) on the <a href="https://indexsupply.net">Query Page</a>. Next you can turn
your queries into API requests and use your account's API key for production grade access.
</p>
<p><a href="https://www.indexsupply.net/login">Sign up</a> for an account and start making queries today!</p>
</div>
</div>
</body>
Expand Down Expand Up @@ -549,6 +554,11 @@ <h2>Get Started</h2>
}

document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll(".option").forEach((div) => {
div.addEventListener("click", (event) => {
window.location.href = "https://www.indexsupply.net/login";
});
});
document.querySelector("#submit-query input").addEventListener("click", (event) => {
document.querySelector("#live .query").value = document.querySelector("#simple .query").value;
document.querySelector("#live .events").value = document.querySelector("#simple .events").value;
Expand Down

0 comments on commit 977a9ef

Please sign in to comment.