[gimp-web/gimp-web-static] Testing OS detection stuff for Downloads page.



commit 983efb272d3ef5b701aa2fe60faf5fa16ad78f94
Author: Pat David <patdavid gmail com>
Date:   Thu Sep 3 14:16:55 2015 -0500

    Testing OS detection stuff for Downloads page.

 content/about/meta/to-do/index.md |   34 ++++++++++++++++++++++++++++++++++
 content/downloads/index.md        |    4 +++-
 2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/content/about/meta/to-do/index.md b/content/about/meta/to-do/index.md
index 7621957..f3fb135 100644
--- a/content/about/meta/to-do/index.md
+++ b/content/about/meta/to-do/index.md
@@ -18,6 +18,40 @@ I'll have a deeper look at a good way to do this (hopefully without having to li
 
 I'm going to start by styling the page assuming no scripts at all, then progressively enhance it to 
auto-detect and display.
 
+I'm using [platform.js](https://github.com/bestiejs/platform.js/) to do the detecting.
+It currently provides more than we likely need but we'll roll with it (it's much less than pulling in 
jquery).
+
+At the moment, the OS will be detected as one of the following:
+
+    var os = getOS([
+      'Windows Phone ',
+      'Android',
+      'CentOS',
+      'Debian',
+      'Fedora',
+      'FreeBSD',
+      'Gentoo',
+      'Haiku',
+      'Kubuntu',
+      'Linux Mint',
+      'Red Hat',
+      'SuSE',
+      'Ubuntu',
+      'Xubuntu',
+      'Cygwin',
+      'Symbian OS',
+      'hpwOS',
+      'webOS ',
+      'webOS',
+      'Tablet OS',
+      'Linux',
+      'Mac OS X',
+      'Macintosh',
+      'Mac',
+      'Windows 98;',
+      'Windows '
+    ]);
+
 
 ## Link Order in Nav bar
 
diff --git a/content/downloads/index.md b/content/downloads/index.md
index 27765d2..e467068 100644
--- a/content/downloads/index.md
+++ b/content/downloads/index.md
@@ -9,7 +9,9 @@ Status: hidden
 
 <div class="OSTEST" markdown="1">
 <h3>Testing OS Detection...</h3>
-<p id="pOSTEST">
+<p id="pOSTEST" style="color: red;">
+Either Javascript is disabled, or I am not working quite right...  
+You'll have to choose your OS manually please.
 </p>
 
 If this is wrong, please let Pat David (patdavid gmail com) know.


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