[gimp-web] Trying another fix for gbot



commit efc02a51326cdcb934cd065e858ee0c840b11c89
Author: Pat David <patdavid gmail com>
Date:   Wed Nov 25 14:58:39 2015 -0600

    Trying another fix for gbot

 content/downloads/index.md |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/content/downloads/index.md b/content/downloads/index.md
index 0d7158b..0f93a1e 100644
--- a/content/downloads/index.md
+++ b/content/downloads/index.md
@@ -363,22 +363,27 @@ If you are running one of the existing GIMP mirrors, or want to create a new one
 
 <script>
 
-document.getElementById('linux').style.display = 'none';
-document.getElementById('win').style.display = 'none';
-document.getElementById('mac').style.display = 'none';
-
 if ( platform.os.family.indexOf('Win') !== -1 && platform.os.family.indexOf('Phone') == -1 ){
     document.getElementById('win').style.display = 'block';
+    document.getElementById('mac').style.display = 'none';
+    document.getElementById('linux').style.display = 'none';
     document.getElementById('pOSTEST').innerHTML = 'Microsoft Windows.';
 }else if ( platform.os.family.indexOf('OS X') !== -1 ){
+    document.getElementById('win').style.display = 'none';
     document.getElementById('mac').style.display = 'block';
+    document.getElementById('linux').style.display = 'none';
     document.getElementById('pOSTEST').innerHTML = 'OS X.';
 }else if ( platform.os.family.indexOf('iOS') !== -1 || platform.os.family.indexOf('Android') !== -1 ){
     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
     var nope = "<br/><strong>This platform is not currently supported.</strong>";
     document.getElementById('pOSTEST').innerHTML += nope;
+    document.getElementById('win').style.display = 'none';
+    document.getElementById('mac').style.display = 'none';
+    document.getElementById('linux').style.display = 'none';
 }else {
     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
+    document.getElementById('win').style.display = 'block';
+    document.getElementById('mac').style.display = 'block';
     document.getElementById('linux').style.display = 'block';
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]