Workaroud for Chrome being stupid.

Chrome on Windows flags the downaload as malware from this widget, but not from
the download page. Sent Windows Chrome users to the downloads page then! index.html
This commit is contained in:
Latif Khalifa
2013-08-17 18:32:15 +02:00
parent 5549837145
commit 66f35a1db0

View File

@@ -35,6 +35,11 @@ a{
background-image: url(http://www.singularityviewer.org/home/sg_download_windows.png);
}
#windows_chrome{
display: none;
background-image: url(http://www.singularityviewer.org/home/sg_download_windows.png);
}
#mac{
display: none;
background-image: url(http://www.singularityviewer.org/home/sg_download_mac.png);
@@ -64,6 +69,12 @@ span{
href="https://bitbucket.org/SingularityViewer/singularityviewer/downloads/Singularity_1-8-1-4863_Setup.exe"><span>
Singularity 1.8.1(4863)<br/>
12 Aug 2013
for Windows
</span></a>
<a id="windows_chrome"
href="http://www.singularityviewer.org/downloads/"><span>
Singularity 1.8.1(4863)<br/>
12 Aug 2013
for Windows
</span></a>
<a id="mac"
@@ -90,9 +101,15 @@ Unable to detect your system. <br/> Please visit Download section.</span></a>
<script type="text/javascript">
p = (navigator.platform);
var p = (navigator.platform);
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if ((p.indexOf("Win32")!= -1) || (p.indexOf("Win64")!= -1)) {
document.getElementById("windows").style.display = "block";
if (is_chrome) {
document.getElementById("windows_chrome").style.display = "block";
} else {
document.getElementById("windows").style.display = "block";
}
document.getElementById("unknown").style.display = "none";
}
else if (p.indexOf("Linux")!= -1) {