[gimp-web/testing] Testing fix for *nix downloads sections



commit 3ad0f14c52abc8cdad840ca0487341ccb14097f0
Author: Pat David <patdavid gmail com>
Date:   Tue Dec 29 11:33:10 2015 -0600

    Testing fix for *nix downloads sections

 content/downloads/index.md |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/content/downloads/index.md b/content/downloads/index.md
index 35d67ee..bc3e105 100644
--- a/content/downloads/index.md
+++ b/content/downloads/index.md
@@ -347,16 +347,19 @@ If you are running one of the existing GIMP mirrors, or want to create a new one
 <script>
 
 if ( platform.os.family.indexOf('Win') !== -1 && platform.os.family.indexOf('Phone') == -1 ){
+    // Windows, _not_ Phone
     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 ){
+    // OS X
     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 ){
+    // iOS or Android
     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
     var nope = "<br/><strong>This platform is not currently supported.</strong>";
     document.getElementById('pOSTEST').innerHTML += nope;
@@ -364,9 +367,10 @@ if ( platform.os.family.indexOf('Win') !== -1 && platform.os.family.indexOf('Pho
     document.getElementById('mac').style.display = 'none';
     document.getElementById('linux').style.display = 'none';
 }else {
+    // Everything else (assuming *nix-type)
     document.getElementById('pOSTEST').innerHTML = platform.os.family + '.';
-    document.getElementById('win').style.display = 'block';
-    document.getElementById('mac').style.display = 'block';
+    document.getElementById('win').style.display = 'none';
+    document.getElementById('mac').style.display = 'none';
     document.getElementById('linux').style.display = 'block';
 }
 


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