From 66ac4b8973a3d88035c886a363ad55c6597e7267 Mon Sep 17 00:00:00 2001 From: Mysaa Date: Sun, 6 Jun 2021 13:09:24 +0200 Subject: [PATCH] Changement de BDD et tests de cartes --- allein/{pieces.php => pieces.html} | 4 +- clazz/Zincluder.php | 6 +- includes/bdd.php | 2 +- includes/cards.html | 100 +++++++++++++++++++++++++++++ todo.list | 1 + 5 files changed, 108 insertions(+), 5 deletions(-) rename allein/{pieces.php => pieces.html} (98%) create mode 100644 includes/cards.html diff --git a/allein/pieces.php b/allein/pieces.html similarity index 98% rename from allein/pieces.php rename to allein/pieces.html index f92e3f0..9923dd7 100644 --- a/allein/pieces.php +++ b/allein/pieces.html @@ -20,7 +20,7 @@ var pieceHeigth = 7; var pieceLevitation = 1; var speed = 5; - var pieceDelta = 20; + var pieceDelta = 1; var getWidthFromSize = function(x){return 7*x+10;} var entreDeux = 200; document.getElementById('out').innerHTML="Géneration des déplacements"; @@ -74,7 +74,7 @@ oldY = endY; setTimeout(finishDeplacing,speed); }else - setTimeout(pieceDescending,speed); + setTimeout(pieceAscending,speed); ctx.fillStyle = pieceColor; ctx.fillRect(oldX,oldY,L,pieceHeigth); diff --git a/clazz/Zincluder.php b/clazz/Zincluder.php index def51c9..811e3f9 100644 --- a/clazz/Zincluder.php +++ b/clazz/Zincluder.php @@ -1,7 +1,9 @@ PDO::ERRMODE_WARNING));error_reporting(E_ALL); - //$GLOBALS['bdd'] = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************'); + //$GLOBALS['bdd'] = new PDO('mysql:host=127.0.0.1;dbname=u890869027_bcom;charset=utf8;port=3306', 'u890869027', '*******************', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING));error_reporting(E_ALL); + $GLOBALS['bdd'] = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************',array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING));error_reporting(E_ALL); + //$GLOBALS['bdd'] = new PDO('mysql:host=fdb6.awardspace.net;port=3306;dbname=2516148_bcom;charset=utf8', '2516148_bcom', '*******************'); + }catch(Exception $e){ die ('Erreur : ' . $e->getMessage()); } diff --git a/includes/bdd.php b/includes/bdd.php index 7c46d56..5c9fc86 100644 --- a/includes/bdd.php +++ b/includes/bdd.php @@ -1,6 +1,6 @@ getMessage() . "\n"); diff --git a/includes/cards.html b/includes/cards.html new file mode 100644 index 0000000..bc24df1 --- /dev/null +++ b/includes/cards.html @@ -0,0 +1,100 @@ + + + + + Cartajoué + + + + + + \ No newline at end of file diff --git a/todo.list b/todo.list index 3b9deb4..958ebc7 100644 --- a/todo.list +++ b/todo.list @@ -34,3 +34,4 @@ Bdd utilitary RER plan simulator Pokemon version maths (Discord:Bernard:376096618891444224) Convertisseur d'unitées communautaire (les utilisateurs créent des methodes "XtoMètre(double val) et MètretoX(double val)" et les publient) +Chrono de l'univers \ No newline at end of file