Merge branch 'master' of https://github.com/matthieupenchenat81/ModuleWeb
This commit is contained in:
commit
f53ac92a27
@ -1,5 +1,5 @@
|
|||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||||
use Response;
|
use Response;
|
||||||
use App\Referent;
|
use App\Referent;
|
||||||
use App\ConfigJeu;
|
use App\ConfigJeu;
|
||||||
|
@ -179,10 +179,16 @@
|
|||||||
trophee.height = 270;
|
trophee.height = 270;
|
||||||
trophee.alpha = 0;
|
trophee.alpha = 0;
|
||||||
tween = game.add.tween(trophee).to( { alpha: 1 }, 1000).start();
|
tween = game.add.tween(trophee).to( { alpha: 1 }, 1000).start();
|
||||||
setTimeout(function(){
|
var r = new XMLHttpRequest();
|
||||||
location.href ="{{URL::to('setRecords')}}" + "/" + trophy;
|
r.open("GET", "{{URL::to('setRecords')}}", true);
|
||||||
location.href = "{{URL::to('puzzle/jouer')}}" + "/" + trophy;
|
r.onreadystatechange = function () {
|
||||||
}, 5000);
|
if (r.readyState != 4 || r.status != 200) return;
|
||||||
|
setTimeout(function(){
|
||||||
|
location.href = "{{URL::to('puzzle/jouer')}}" + "/" + trophy;
|
||||||
|
}, 3000);
|
||||||
|
};
|
||||||
|
r.send();
|
||||||
|
|
||||||
// TODO appel ajax
|
// TODO appel ajax
|
||||||
//var t1 = game.world.create(game.world.centerX,game.world.centerY, "tableau1");
|
//var t1 = game.world.create(game.world.centerX,game.world.centerY, "tableau1");
|
||||||
//t1.anchor.setTo(0.5,0.5);
|
//t1.anchor.setTo(0.5,0.5);
|
||||||
|
Reference in New Issue
Block a user