commit 597d7adba822dd1c4bb9a47bb7c501b380335f85
parent 080d857d99ada03419ed7a0da9e82722b99d7891
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date: Wed, 30 Mar 2011 11:46:39 +0200
Tentative de mise à l'échelle de la page.
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/code/html5/pticlic.js b/code/html5/pticlic.js
@@ -1,4 +1,15 @@
$(function () {
+/* window.setTimeout(function() {
+ var w=480;
+ var h=800;
+ var a=[]; $("#screen").find("*").add("#screen").each(function(i,e){ a.push({
+ e:$(e),
+ w:$(e).width()*w/480,
+ h:$(e).height()*h/800});
+ });
+ $.each(a,function(i,a){ a.e.width(a.w); a.e.height(a.h); });
+}, 1000); */
+
var url = "tmp.json"
$.getJSON(url, function(data) {
var game = data[0];