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;
|
||||
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||
use Response;
|
||||
use App\Referent;
|
||||
use App\ConfigJeu;
|
||||
|
@ -179,10 +179,16 @@
|
||||
trophee.height = 270;
|
||||
trophee.alpha = 0;
|
||||
tween = game.add.tween(trophee).to( { alpha: 1 }, 1000).start();
|
||||
setTimeout(function(){
|
||||
location.href ="{{URL::to('setRecords')}}" + "/" + trophy;
|
||||
location.href = "{{URL::to('puzzle/jouer')}}" + "/" + trophy;
|
||||
}, 5000);
|
||||
var r = new XMLHttpRequest();
|
||||
r.open("GET", "{{URL::to('setRecords')}}", true);
|
||||
r.onreadystatechange = function () {
|
||||
if (r.readyState != 4 || r.status != 200) return;
|
||||
setTimeout(function(){
|
||||
location.href = "{{URL::to('puzzle/jouer')}}" + "/" + trophy;
|
||||
}, 3000);
|
||||
};
|
||||
r.send();
|
||||
|
||||
// TODO appel ajax
|
||||
//var t1 = game.world.create(game.world.centerX,game.world.centerY, "tableau1");
|
||||
//t1.anchor.setTo(0.5,0.5);
|
||||
|
Reference in New Issue
Block a user