Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
LB123658 authored May 19, 2021
1 parent 257bb68 commit 52a35d1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@
<div id="confirmation">
<p id="extensionInfo">This extension will only work on Chrome, Brave, Opera, or Edge.</p>
<button class="extensionButtons" id="cancelExtension" onclick="hideExtension()">Cancel</button>
<a href="https://github.com/LB123658/browse-in-darkness-chrome-extension/archive/refs/heads/main.zip" target="_blank">
<button class="extensionButtons" id="confirnExtension" onclick="directions(); hideExtension();">Download</button></a>
<a href="https://github.com/LB123658/browse-in-darkness-chrome-extension/archive/refs/heads/main.zip" target="_blank" id="downloadLink">
<button class="extensionButtons" id="confirnExtension" onclick="successExtension();">Download</button></a>
</div>

<!-- menu bar -->
Expand Down Expand Up @@ -333,8 +333,10 @@
function hideExtension() {
document.getElementById("confirmation").style.visibility = "hidden";
}
function directions() {
location.replace("https://lb123658.github.io/cebolla/extension");
function successExtension() {
document.getElementById("confirmation").style.visibility = "hidden";
document.getElementById("getExtension").innerHTML = "How to install extension";
document.getElementById("downloadLink").href = "https://lb123658.github.io/cebolla/extension";
}
</script>
<script src="version.js"></script>
Expand Down

0 comments on commit 52a35d1

Please sign in to comment.