-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added check for html5 canvas (with error page)
- Loading branch information
Showing
12 changed files
with
225 additions
and
38 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* TODO factor this */ | ||
home, body { | ||
font-family : Helvetica; | ||
background-color : black; | ||
color : white; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
color : white; | ||
} | ||
|
||
#header { | ||
text-align : center; | ||
font-size : large; | ||
} | ||
|
||
a { | ||
color : white; | ||
} | ||
|
||
a:link {text-decoration: none;} | ||
a:visited {text-decoration: none ; } | ||
a:active {text-decoration: none ; } | ||
a:hover {text-decoration: underline; } | ||
|
||
#footer { | ||
text-align : center; | ||
} | ||
|
||
#footer a { | ||
font-size : small; | ||
} | ||
|
||
/* --------- */ | ||
|
||
#intro { | ||
font-size : large; | ||
} | ||
|
||
#other_browsers { | ||
text-align : center; | ||
} | ||
|
||
#suggestion { | ||
font-size : medium; | ||
} | ||
|
||
a { | ||
font-size : large; | ||
} | ||
|
||
#details { | ||
font-size : small; | ||
font-style : italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<html> | ||
<head> | ||
<title>UBE</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="../../data/images/ico/player.ico" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="../../data/images/png/player.png" /> | ||
<link rel="stylesheet" href="../css/blueprint/screen.css" type="text/css" media="screen, projection"></link> | ||
<link rel="stylesheet" href="../css/blueprint/print.css" type="text/css" media="print"></link> | ||
<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> | ||
<link type="text/css" rel="stylesheet" href="../css/dark-hive/jquery-ui-1.8.2.custom.css"/> | ||
<link type="text/css" rel="stylesheet" href="../css/no_canvas.css"/> | ||
</head> | ||
<body> | ||
|
||
<script type="text/javascript" charset="UTF-8" src="../js/lib/jquery-1.4.2.min.js"></script> | ||
<script type="text/javascript" charset="UTF-8" src="../js/lib/jquery.url.min.js"></script> | ||
<script type="text/javascript" charset="UTF-8" src="../js/lib/jquery-ui-1.8.2.custom.min.js"></script> | ||
<script type="text/javascript" charset="UTF-8" src="../js/i18n.js"></script> | ||
<script type="text/javascript" charset="UTF-8" src="../js/no_canvas.js"></script> | ||
|
||
<div id="outer" class="container prepend-4 prepend-top"> | ||
|
||
<div id="header" class="span-20 last"> | ||
<h3 id="sorry">Sorry...</h3> | ||
<div class="span-12 prepend-4 last"> | ||
<p id="intro">The browser you're using can not play UBE.</p> | ||
</div> | ||
</div> | ||
|
||
<div id="other_browsers" class="span-20 last"> | ||
<div id="suggestion"> | ||
<p>Why don't you try with another browser ?<br/>Ube works (at least) with the latest versions of the following browsers : </p> | ||
</div> | ||
|
||
<div class="span-9 prepend-top"> | ||
<div class="span-5 prepend-3 last"> | ||
<a href="http://www.mozilla-europe.org/fr/firefox/"> | ||
<img class="span-5 last" | ||
src="../../data/images/logos/firefox.png" alt="Firefox"/> | ||
</a> | ||
<a class="span-5 last" href="http://www.mozilla-europe.org/fr/firefox/">Mozilla Firefox (version 3.6)</a> | ||
</div> | ||
</div> | ||
|
||
<div class="span-9 prepend-top"> | ||
<div class="span-5 prepend-3 last"> | ||
<a href="http://www.google.com/chrome"> | ||
<img class="span-5 last" | ||
src="../../data/images/logos/chrome.png" alt="Chrome"/> | ||
</a> | ||
<a class="span-5 last" href="http://www.google.com/chrome">Google Chrome (version 6)</a> | ||
</div> | ||
</div> | ||
|
||
<br/> | ||
<br/> | ||
|
||
<div id="details" class="span-20 prepend-top last"> | ||
<p>For those interested, UBE uses HTML5 'canvas' element, which is not yet available everywhere.<br/>Besides, those browsers are based on free software, which is a Good Thing (tm).</p> | ||
</div> | ||
</div> | ||
|
||
<div id="footer" class="span-20 last prepend-top"> | ||
Copyright 2010 - <a href="mailto:[email protected]">Pierre-Henri Trivier</a> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CanvasChecker = function () { | ||
} | ||
|
||
CanvasChecker.prototype.has_canvas = function () { | ||
return !!document.createElement('canvas').getContext; | ||
} | ||
|
||
CanvasChecker.prototype.check_canvas = function () { | ||
if (!this.has_canvas()) { | ||
window.location = "no_canvas.html" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
var g_i18n = { | ||
"en" : { | ||
|
||
}, | ||
"fr" : { | ||
|
||
} | ||
}; | ||
|
||
NoCanvas = function () { | ||
}; | ||
|
||
NoCanvas.prototype.append_i18n = function (selector, lg, key) { | ||
$(selector).append(g_home_i18n[lg][key]); | ||
} | ||
|
||
$(document).ready(function () { | ||
var lg = get_lg(); | ||
n = new NoCanvas(); | ||
// n.append_i18n("#sorry") | ||
}); |