mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-27 09:58:44 +01:00
cleaning, dropping modernizr and jquery
This commit is contained in:
parent
a859c644b5
commit
a9bf8fdb79
16 changed files with 45 additions and 217 deletions
|
@ -1,32 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<title>Page Not Found</title>
|
|
||||||
<style>
|
|
||||||
body { text-align: center;}
|
|
||||||
h1 { font-size: 50px; text-align: center }
|
|
||||||
span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
|
|
||||||
body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
|
|
||||||
::-moz-selection{ background:#FF5E99; color:#fff; }
|
|
||||||
::selection { background:#FF5E99; color:#fff; }
|
|
||||||
article {display:block; text-align: left; width: 500px; margin: 0 auto; }
|
|
||||||
|
|
||||||
a { color: rgb(36, 109, 56); text-decoration:none; }
|
|
||||||
a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<article>
|
|
||||||
<h1>Not found <span frown>:(</span></h1>
|
|
||||||
<div>
|
|
||||||
<p>Sorry, but the page you were trying to view does not exist.</p>
|
|
||||||
<p>It looks like this was the result of either:</p>
|
|
||||||
<ul>
|
|
||||||
<li>a mistyped address</li>
|
|
||||||
<li>an out-of-date link</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
|
|
||||||
GOOG_FIXURL_SITE = location.host;
|
|
||||||
</script>
|
|
||||||
<script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
|
|
||||||
</article>
|
|
Binary file not shown.
Before Width: | Height: | Size: 1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 640 B |
Binary file not shown.
Before Width: | Height: | Size: 747 B |
Binary file not shown.
Before Width: | Height: | Size: 640 B |
Binary file not shown.
Before Width: | Height: | Size: 640 B |
|
@ -1,25 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
|
||||||
<cross-domain-policy>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
|
||||||
|
|
||||||
<!-- Most restrictive policy: -->
|
|
||||||
<site-control permitted-cross-domain-policies="none"/>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Least restrictive policy: -->
|
|
||||||
<!--
|
|
||||||
<site-control permitted-cross-domain-policies="all"/>
|
|
||||||
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
|
||||||
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
|
||||||
-->
|
|
||||||
<!--
|
|
||||||
If you host a crossdomain.xml file with allow-access-from domain=“*”
|
|
||||||
and don’t understand all of the points described here, you probably
|
|
||||||
have a nasty security vulnerability. ~ simon willison
|
|
||||||
-->
|
|
||||||
|
|
||||||
</cross-domain-policy>
|
|
|
@ -1,43 +0,0 @@
|
||||||
/* the humans responsible & colophon */
|
|
||||||
/* humanstxt.org */
|
|
||||||
|
|
||||||
|
|
||||||
/* TEAM */
|
|
||||||
<your title>: <your name>
|
|
||||||
Site:
|
|
||||||
Twitter:
|
|
||||||
Location:
|
|
||||||
|
|
||||||
/* THANKS */
|
|
||||||
Names (& URL):
|
|
||||||
|
|
||||||
/* SITE */
|
|
||||||
Standards: HTML5, CSS3
|
|
||||||
Components: Modernizr, jQuery
|
|
||||||
Software:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-o/-
|
|
||||||
+oo//-
|
|
||||||
:ooo+//:
|
|
||||||
-ooooo///-
|
|
||||||
/oooooo//:
|
|
||||||
:ooooooo+//-
|
|
||||||
-+oooooooo///-
|
|
||||||
-://////////////+oooooooooo++////////////::
|
|
||||||
:+ooooooooooooooooooooooooooooooooooooo+:::-
|
|
||||||
-/+ooooooooooooooooooooooooooooooo+/::////:-
|
|
||||||
-:+oooooooooooooooooooooooooooo/::///////:-
|
|
||||||
--/+ooooooooooooooooooooo+::://////:-
|
|
||||||
-:+ooooooooooooooooo+:://////:--
|
|
||||||
/ooooooooooooooooo+//////:-
|
|
||||||
-ooooooooooooooooooo////-
|
|
||||||
/ooooooooo+oooooooooo//:
|
|
||||||
:ooooooo+/::/+oooooooo+//-
|
|
||||||
-oooooo/::///////+oooooo///-
|
|
||||||
/ooo+::://////:---:/+oooo//:
|
|
||||||
-o+/::///////:- -:/+o+//-
|
|
||||||
:-:///////:- -:/://
|
|
||||||
-////:- --//:
|
|
||||||
-- -:
|
|
|
@ -1,9 +1,4 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
|
||||||
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
|
||||||
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
|
||||||
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
|
||||||
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
@ -14,14 +9,10 @@
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
||||||
<link rel="stylesheet" href="css/style.css?v=2">
|
<link rel="stylesheet" href="css/style.css?v=2">
|
||||||
<link rel="stylesheet" href="css/star.css">
|
<link rel="stylesheet" href="css/star.css">
|
||||||
<link rel="stylesheet" href="css/star_HP48.css">
|
<link rel="stylesheet" href="css/star_HP48.css">
|
||||||
<link rel="stylesheet" href="css/index.css">
|
<link rel="stylesheet" href="css/index.css">
|
||||||
|
|
||||||
<script src="js/libs/modernizr-1.7.min.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
@ -37,23 +28,9 @@
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
|
|
||||||
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
|
|
||||||
|
|
||||||
<script src="js/plugins.js"></script>
|
|
||||||
<script src="js/script.js"></script>
|
|
||||||
|
|
||||||
<!--[if lt IE 7 ]>
|
|
||||||
<script src="js/libs/dd_belatedpng.js"></script>
|
|
||||||
<script> DD_belatedPNG.fix('img, .png_bg');</script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<script src="js/star.js"></script>
|
<script src="js/star.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(
|
initialize_a_star( "#main", 0, "cyco002" );
|
||||||
function() {
|
|
||||||
initialize_a_star( "#main", 0, "cyco002" );
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because one or more lines are too long
16
star.js/js/libs/jquery-1.5.1.min.js
vendored
16
star.js/js/libs/jquery-1.5.1.min.js
vendored
File diff suppressed because one or more lines are too long
2
star.js/js/libs/modernizr-1.7.min.js
vendored
2
star.js/js/libs/modernizr-1.7.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,9 +0,0 @@
|
||||||
window.log = function(){
|
|
||||||
log.history = log.history || [];
|
|
||||||
log.history.push(arguments);
|
|
||||||
arguments.callee = arguments.callee.caller;
|
|
||||||
if(this.console) console.log( Array.prototype.slice.call(arguments) );
|
|
||||||
};
|
|
||||||
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
$(function(){
|
|
||||||
|
|
||||||
});
|
|
|
@ -5,30 +5,30 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
|
|
||||||
var assets = {
|
var assets = {
|
||||||
levels: [ "#################@## x#H## x #### ##x ## ## x #### x x x ## x x## x ## ##x x#################",
|
levels: [ "#################@## x#H## x #### ##x ## ## x #### x x x ## x x## x ## ##x x#################",
|
||||||
" # # # # # ### x @# #x #x x # # x x # # # x # # #H# x # # # # #xx## # # # # ",
|
" # # # # # ### x @# #x #x x # # x x # # # x # # #H# x # # # # #xx## # # # # ",
|
||||||
"################# x#@## ## ##H## #x x ## x x## x## #x x x# x### ##x #x x x####x ##x #################",
|
"################# x#@## ## ##H## #x x ## x x## x## #x x x# x### ##x #x x x####x ##x #################",
|
||||||
"################# #H## # ###x#x x#x#x#x#x## # #x x# # # ####x#x#x x#x#x#x## # ## # #@ #################",
|
"################# #H## # ###x#x x#x#x#x#x## # #x x# # # ####x#x#x x#x#x#x## # ## # #@ #################",
|
||||||
" ############## #@ # # # ## #x # x x # ### # # ##x #x# #### # x # ##x# # # # #H## # x# #x# ############## ",
|
" ############## #@ # # # ## #x # x x # ### # # ##x #x# #### # x # ##x# # # # #H## # x# #x# ############## ",
|
||||||
" ############ # x #x x# # x # ## # x ##@ x ### x # ### x # ##H # x ##x #################",
|
" ############ # x #x x# # x # ## # x ##@ x ### x # ### x # ##H # x ##x #################",
|
||||||
"################# # ## ### #x ##x# #x #x # # # # # # ### ## ## # #x# #x# # ## @#x H #x#################",
|
"################# # ## ### #x ##x# #x #x # # # # # # ### ## ## # #x# #x# # ## @#x H #x#################",
|
||||||
"############### # x## ### #x ## x ## x## # #x ### ## #x# ### # x#x ##xHx# x #@# ### # ###############",
|
"############### # x## ### #x ## x ## x## # #x ### ## #x# ### # x#x ##xHx# x #@# ### # ###############",
|
||||||
" # ########### #x#x # @##x x# x # # # x## x# ## #x #xHx x## x## # #x#x # # # ############ ",
|
" # ########### #x#x # @##x x# x # # # x## x# ## #x #xHx x## x## # #x#x # # # ############ ",
|
||||||
" ########### #### x ## H ###x x# x## x #x #x # # # x # x##x#x # x# #@# #x ### ### # # # # ######### # #",
|
" ########### #### x ## H ###x x# x## x #x #x # # # x # x##x#x # x# #@# #x ### ### # # # # ######### # #",
|
||||||
"################# # @## #xx xx #### x ## x##x #x#xx ##### ## ## ##x x# x H x###x### # ## ## ########### ",
|
"################# # @## #xx xx #### x ## x##x #x#xx ##### ## ## ##x x# x H x###x### # ## ## ########### ",
|
||||||
"## ## #### #@#####x ### x### xx x ## ## ##x #x# ## # x ###x ## ## ## ## #H# ## x ## x #################",
|
"## ## #### #@#####x ### x### xx x ## ## ##x #x# ## # x ###x ## ## ## ## #H# ## x ## x #################",
|
||||||
" ############## # @# x ### # #x x## ## x # ## x #x## # x ### x x #x##H # x # # # ############## ",
|
" ############## # @# x ### # #x x## ## x # ## x #x## # x ### x x #x##H # x # # # ############## ",
|
||||||
"#################x#x x#x## x#@ ## ## H x ## x# ## x ## x# # ##x#x x#x#################",
|
"#################x#x x#x## x#@ ## ## H x ## x# ## x ## x# # ##x#x x#x#################",
|
||||||
" ###### ####### # x# x ## # x # # x ## @# #xx #x # # # # x H# ##x # #x # # x # #x x# ############## ",
|
" ###### ####### # x# x ## # x # # x ## @# #xx #x # # # # x H# ##x # #x # # x # #x x# ############## ",
|
||||||
"################## H#x x x##x @x#x #### ### x #### x#x# ##xx x#x ### x ####x ###x# # #################",
|
"################## H#x x x##x @x#x #### ### x #### x#x# ##xx x#x ### x ####x ###x# # #################",
|
||||||
"################# x# #@ ## # x#xx#x # ## #x##x# x ## x# x# ## x#x x# ## # # ##x# # ## x #x H #################",
|
"################# x# #@ ## # x#xx#x # ## #x##x# x ## x# x# ## x#x x# ## # # ##x# # ## x #x H #################",
|
||||||
"################# x x H# ## #x#x #x ## #x# #x ## x # x#x ## #x# # x# ## x#x # x # ##x#@ # # #################",
|
"################# x x H# ## #x#x #x ## #x# #x ## x # x#x ## #x# # x# ## x#x # x # ##x#@ # # #################",
|
||||||
"#################x ## ##x## # # #x ## x# x## x ## # #x ## # x# ## ## x# ##x #H## x# #x ##@#################",
|
"#################x ## ##x## # # #x ## x# x## x ## # #x ## # x# ## ## x# ##x #H## x# #x ##@#################",
|
||||||
"################# x#x ###x x# ##x ### # # x # # ## H # ## # @x## # # x # # ### x## #x x### x#x #################",
|
"################# x#x ###x x# ##x ### # # x # # ## H # ## # @x## # # x # # ### x## #x x### x#x #################",
|
||||||
"################# ### x ### # # ### ##x x ## x x x ### # ###x ## x x @ H x xx################# ",
|
"################# ### x ### # # ### ##x x ## x x x ### # ###x ## x x @ H x xx################# ",
|
||||||
"#################x# #x# #x # ## # ##x # #x x ### #x x #### x # ###x ## #@#H x ################# ",
|
"#################x# #x# #x # ## # ##x # #x x ### #x x #### x # ###x ## #@#H x ################# ",
|
||||||
" ############## # # #x# #x # ## x # ### # x #x ## #x # xx x ###x # ## x ## #@#H x # ############## ",
|
" ############## # # #x# #x # ## x # ### # x #x ## #x # xx x ###x # ## x ## #@#H x # ############## ",
|
||||||
"################# # ### ##x x ##x### #x x# #### xx x# ## ## #x x # ## ## ## @#H###xx################# ",
|
"################# # ### ##x x ##x### #x x# #### xx x# ## ## #x x # ## ## ## @#H###xx################# ",
|
||||||
"################# # ## x ##x x ## #x x ## ## x ## #x ## #x x# x ## ##x #@ H ################# " ]
|
"################# # ## x ##x x ## #x x ## ## x ## #x ## #x x# x ## ##x #@ H ################# " ]
|
||||||
};
|
};
|
||||||
|
|
||||||
////// FUNCTIONS //////
|
////// FUNCTIONS //////
|
||||||
|
@ -70,10 +70,10 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
|
|
||||||
var load_level = function( index ) {
|
var load_level = function( index ) {
|
||||||
return( { moving: cell.BALL,
|
return( { moving: cell.BALL,
|
||||||
distance_travelled: 0,
|
distance_travelled: 0,
|
||||||
level: index,
|
level: index,
|
||||||
board: assets.levels[ index ],
|
board: assets.levels[ index ],
|
||||||
it_s_over: false } );
|
it_s_over: false } );
|
||||||
};
|
};
|
||||||
|
|
||||||
var make_a_move = function( where ) {
|
var make_a_move = function( where ) {
|
||||||
|
@ -153,7 +153,7 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
level_infos.cell.height );
|
level_infos.cell.height );
|
||||||
};
|
};
|
||||||
|
|
||||||
var display_switch_actor = function( ) {
|
var display_switch_actor = function( ) {
|
||||||
var ball_pos = get_pos( cell.BALL );
|
var ball_pos = get_pos( cell.BALL );
|
||||||
var cube_pos = get_pos( cell.CUBE );
|
var cube_pos = get_pos( cell.CUBE );
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
infos += "<em>" + count_gifts( ) + "</em> gifts left<br />";
|
infos += "<em>" + count_gifts( ) + "</em> gifts left<br />";
|
||||||
infos += "<em>" + state.distance_travelled + "</em> meters travelled";
|
infos += "<em>" + state.distance_travelled + "</em> meters travelled";
|
||||||
|
|
||||||
jQuery( DOM_infos.container + " .gstar #infos" ).html( infos );
|
document.querySelector( DOM_infos.container + " .gstar #infos" ).innerHTML = infos;
|
||||||
};
|
};
|
||||||
|
|
||||||
var format_help = function( ) {
|
var format_help = function( ) {
|
||||||
|
@ -208,7 +208,7 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
for ( var i=0 ; i < path.length-1 ; i++ ) {
|
for ( var i=0 ; i < path.length-1 ; i++ ) {
|
||||||
draw_cell( assets.sprites.empty, path[ i ][ 0 ], path[ i ][ 1 ] );
|
draw_cell( assets.sprites.empty, path[ i ][ 0 ], path[ i ][ 1 ] );
|
||||||
draw_cell( ( state.moving == cell.BALL ) ? assets.sprites.ball_selected : assets.sprites.cube_selected,
|
draw_cell( ( state.moving == cell.BALL ) ? assets.sprites.ball_selected : assets.sprites.cube_selected,
|
||||||
path[ i+1 ][ 0 ], path[ i+1 ][ 1 ] );
|
path[ i+1 ][ 0 ], path[ i+1 ][ 1 ] );
|
||||||
|
|
||||||
state.distance_travelled++; /* increment distance_travelled */
|
state.distance_travelled++; /* increment distance_travelled */
|
||||||
}
|
}
|
||||||
|
@ -302,7 +302,7 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
starhtml += '<canvas id="starboard" width="320" height="180"></canvas>';
|
starhtml += '<canvas id="starboard" width="320" height="180"></canvas>';
|
||||||
starhtml += '<aside id="infos"></aside>';
|
starhtml += '<aside id="infos"></aside>';
|
||||||
starhtml += '</div>';
|
starhtml += '</div>';
|
||||||
jQuery( dom_container ).html( starhtml );
|
document.querySelector( dom_container ).innerHTML = starhtml;
|
||||||
|
|
||||||
// Now we can collect some informations about this DOM branch we have
|
// Now we can collect some informations about this DOM branch we have
|
||||||
load_sprites( theme );
|
load_sprites( theme );
|
||||||
|
@ -310,10 +310,10 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
container: dom_container,
|
container: dom_container,
|
||||||
canvas: {
|
canvas: {
|
||||||
//jQuery() returns a jquery object, [0] to get the canvas itself
|
//jQuery() returns a jquery object, [0] to get the canvas itself
|
||||||
context: jQuery( dom_container + " #starboard" )[ 0 ].getContext( '2d' ),
|
context: document.querySelector( dom_container + " #starboard" ).getContext( '2d' ),
|
||||||
offset: jQuery( dom_container + " #starboard" ).offset(),
|
offset: document.querySelector( dom_container + " #starboard" ).offsetLeft,
|
||||||
width: jQuery( dom_container + " #starboard" ).width(),
|
width: document.querySelector( dom_container + " #starboard" ).width,
|
||||||
height: jQuery( dom_container + " #starboard" ).height()
|
height: document.querySelector( dom_container + " #starboard" ).height
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -335,7 +335,6 @@ var initialize_a_star = function( dom_container, level_index, theme ) {
|
||||||
setTimeout( function(){ display_level( ); }, 100 ); // 1/10 second
|
setTimeout( function(){ display_level( ); }, 100 ); // 1/10 second
|
||||||
|
|
||||||
// Start main "loop"
|
// Start main "loop"
|
||||||
jQuery(document).focus( );
|
document.addEventListener('click', event_handler)
|
||||||
jQuery(document).click( event_handler );
|
document.addEventListener('keydown', event_handler)
|
||||||
jQuery(document).keydown( event_handler );
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# www.robotstxt.org/
|
|
||||||
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
|
|
||||||
|
|
||||||
User-agent: *
|
|
||||||
|
|
Loading…
Reference in a new issue