aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-24 15:48:44 -0700
committerJose Antonio Marquez2012-07-24 15:48:44 -0700
commit52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45 (patch)
tree0023f2299c1a4bb5adc9dc3d3818e31f42e72cc3
parent21d74af1e9fc57cc25cea8aa7408beabf79ff2f3 (diff)
downloadninja-52e3356f79e3c1ef7a86c1fabaaf1ebca200ad45.tar.gz
New: OS check on load
Performing OS check on load to redirect users to system requirements if their OS currently is not supported.
-rwxr-xr-xindex.html4
-rw-r--r--os.html48
2 files changed, 52 insertions, 0 deletions
diff --git a/index.html b/index.html
index 8c2de1f6..a6e1f809 100755
--- a/index.html
+++ b/index.html
@@ -166,6 +166,10 @@ POSSIBILITY OF SUCH DAMAGE.
166 166
167 <script type="text/javascript"> 167 <script type="text/javascript">
168 window.onload = function() { 168 window.onload = function() {
169 //Check for OS support
170 if (navigator.appVersion.toLowerCase().indexOf("win") === -1 && navigator.appVersion.toLowerCase().indexOf("mac") === -1) {
171 window.location = "./os.html";
172 }
169 // Check if we are running in Chrome 173 // Check if we are running in Chrome
170 if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) { 174 if(navigator.userAgent.toLowerCase().indexOf("chrome") === -1) {
171 window.location = "./redirect.html"; 175 window.location = "./redirect.html";
diff --git a/os.html b/os.html
new file mode 100644
index 00000000..703c2b0d
--- /dev/null
+++ b/os.html
@@ -0,0 +1,48 @@
1<!DOCTYPE html>
2<!-- <copyright>
3Copyright (c) 2012, Motorola Mobility LLC.
4All Rights Reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met:
8
9* Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11
12* Redistributions in binary form must reproduce the above copyright notice,
13 this list of conditions and the following disclaimer in the documentation
14 and/or other materials provided with the distribution.
15
16* Neither the name of Motorola Mobility LLC nor the names of its
17 contributors may be used to endorse or promote products derived from this
18 software without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30POSSIBILITY OF SUCH DAMAGE.
31</copyright> -->
32<html>
33
34<head>
35
36 <title>Ninja - OS Support</title>
37
38</head>
39
40<body>
41
42 <div>
43 <p>Your operating system is currently not supported by Ninja. Please visit <a href="http://tetsubo.org/home/ninja/system-requirements/">Tetsubo</a> for more information on system requirements and more information.</p>
44 </div>
45
46</body>
47
48</html>