Skip to content

Commit 0b7a6ac

Browse files
committed
remove duplicate download button, too many buttons
1 parent c2d87b4 commit 0b7a6ac

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

index.html

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -182,29 +182,6 @@
182182
<i class="fab fa-youtube"></i>
183183
</a>
184184
</div>
185-
<div class="navigation-link-right desktop-link">
186-
<a
187-
id="download-nav-brackets"
188-
class="large rounded radius"
189-
href="https://github.com/adobe/brackets/releases"
190-
download>
191-
<button
192-
class="download-button"
193-
onclick="navDownloadClicked()">
194-
<i
195-
class="fa fa-spinner fa-spin"
196-
style="
197-
visibility: hidden;
198-
margin-left: -16px;
199-
"
200-
id="navDownloadSpinner"></i>
201-
<span
202-
data-i18n="[html]index.page.hero.download"
203-
>Download</span
204-
>
205-
</button>
206-
</a>
207-
</div>
208185
</nav>
209186
<div class="hamburgerMenuIcon" id="hamburger">
210187
<i class="bx bx-menu"></i>
@@ -765,7 +742,6 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
765742
if (/iPad|iPod|iPhone|Android/.test(navigator.userAgent)) {
766743
OS = "OTHER";
767744
$("#download").hide();
768-
$("#secondary-download").hide();
769745
} else {
770746
$(
771747
"<img src='img/hero.png' srcset='img/hero@2x.png 2x' height='370' width='1059' alt='Screenshot of Brackets'>"
@@ -779,9 +755,6 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
779755
document
780756
.getElementById("download-plain-brackets")
781757
.setAttribute("href", downloadURL);
782-
document
783-
.getElementById("download-nav-brackets")
784-
.setAttribute("href", downloadURL);
785758
document
786759
.getElementById("other-downloads")
787760
.addEventListener("click", otherDownloadClicked);
@@ -801,21 +774,6 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
801774
}, 20000); // We dont have an API to determine if browser actually started the download. So clear after 20 secs.
802775
}
803776

804-
function navDownloadClicked() {
805-
logDownloadClicked("navBarDownload");
806-
document
807-
.getElementById("navDownloadSpinner")
808-
.setAttribute("style", "margin-left: -16px");
809-
setTimeout(() => {
810-
document
811-
.getElementById("navDownloadSpinner")
812-
.setAttribute(
813-
"style",
814-
"visibility:hidden; margin-left: -16px"
815-
);
816-
}, 20000);
817-
}
818-
819777
function otherDownloadClicked() {
820778
logDownloadClicked("otherDownloads");
821779
}

0 commit comments

Comments
 (0)