xd
This commit is contained in:
parent
e73999cd56
commit
6bc9de0f9d
@ -6,7 +6,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8 col-md-offset-2">
|
<div class="col-md-8 col-md-offset-2">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-primary">
|
||||||
<div class="panel-heading">Login <a class="btn btn-warning btn-xs pull-right" href="{{ URL::to('choisirref') }}">Retour Acceuil</a> </div>
|
<div class="panel-heading">Se connecter</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@if (session('status'))
|
@if (session('status'))
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
|
@ -3,9 +3,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="referents">
|
<div class="referents">
|
||||||
<div class="referent game"
|
<div class="game no-click" style="background:url('{{ URL::to('imgs/memo/memo2.png') }}'); background-repeat:no-repeat; background-size: contain; border: none; margin-top: 10%;">
|
||||||
onclick='location.href = "{{ URL::to('memo') }}";'
|
|
||||||
style="background:url('{{ URL::to('imgs/memo/memo2.png') }}'); background-repeat:no-repeat; background-size: contain; border: none; margin-top: 10%;">
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<button class="level" onclick="location.href='{{ URL::to('memo/jouer/1') }}'"><span style="color:gold;"><span class="icon-star-full"></span></span><span class="icon-star-full"></span><span class="icon-star-full"></span></button>
|
<button class="level" onclick="location.href='{{ URL::to('memo/jouer/1') }}'"><span style="color:gold;"><span class="icon-star-full"></span></span><span class="icon-star-full"></span><span class="icon-star-full"></span></button>
|
||||||
|
@ -1,16 +1,10 @@
|
|||||||
@extends('frontend/template')
|
@extends('frontend/template')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div style="position: relative; left: 0; bottom:40%; padding-left:1%; ">
|
|
||||||
<a href="/"><img style="height: 80px;" src="{{ URL::to('imgs/previouspage.png') }}"></a>
|
|
||||||
</div>
|
|
||||||
<script src="{{ URL::to('js/phaser.min.js') }}"></script>
|
<script src="{{ URL::to('js/phaser.min.js') }}"></script>
|
||||||
<script src="{{ URL::to('js/responsivevoice.js') }}"></script>
|
<script src="{{ URL::to('js/responsivevoice.js') }}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
document.body.innerHTML = "<h1 id='Chargement'> Chargement... </h1>" + document.body.innerHTML; //on affiche le chargement
|
|
||||||
|
|
||||||
function getPieceWidth(w,h) {
|
function getPieceWidth(w,h) {
|
||||||
//if(h>w) {
|
//if(h>w) {
|
||||||
return w * (y * ratioImage)/h;
|
return w * (y * ratioImage)/h;
|
||||||
@ -22,12 +16,11 @@
|
|||||||
//} else return h * (x * ratioImage)/w;
|
//} else return h * (x * ratioImage)/w;
|
||||||
}
|
}
|
||||||
function preload () {
|
function preload () {
|
||||||
document.getElementById("Chargement").innerHTML = ""; //on efface
|
|
||||||
game.load.spritesheet('balls', '{{ URL::to('imgs/puzzle/balls.png') }}', 17, 17);
|
game.load.spritesheet('balls', '{{ URL::to('imgs/puzzle/balls.png') }}', 17, 17);
|
||||||
game.load.image('trophy3', '{{ URL::to('imgs/trophees/or.png') }}');
|
game.load.image('trophy3', '{{ URL::to('imgs/trophees/or.png') }}');
|
||||||
game.load.image('trophy2', '{{ URL::to('imgs/trophees/argent.png') }}');
|
game.load.image('trophy2', '{{ URL::to('imgs/trophees/argent.png') }}');
|
||||||
game.load.image('trophy1', '{{ URL::to('imgs/trophees/bronze.png') }}');
|
game.load.image('trophy1', '{{ URL::to('imgs/trophees/bronze.png') }}');
|
||||||
|
game.load.image('previous', '{{ URL::to('imgs/previouspage.png') }}');
|
||||||
for(i=1; i<=selection.length; i++) {
|
for(i=1; i<=selection.length; i++) {
|
||||||
game.load.spritesheet("tableau"+i, selection[i-1].src, selection[i-1].width/dimensions[0], selection[i-1].height/dimensions[1]);
|
game.load.spritesheet("tableau"+i, selection[i-1].src, selection[i-1].width/dimensions[0], selection[i-1].height/dimensions[1]);
|
||||||
}
|
}
|
||||||
@ -71,10 +64,15 @@
|
|||||||
dateDebut = new Date();
|
dateDebut = new Date();
|
||||||
}
|
}
|
||||||
function create () {
|
function create () {
|
||||||
|
var button = game.make.button(5, 5, 'previous', changePage, this, 2, 1, 0);
|
||||||
game.physics.startSystem(Phaser.Physics.ARCADE);
|
game.physics.startSystem(Phaser.Physics.ARCADE);
|
||||||
createPiecesFor(1);
|
createPiecesFor(1);
|
||||||
}
|
}
|
||||||
|
function changePage() {
|
||||||
|
|
||||||
|
alert("Confirmer ?");
|
||||||
|
|
||||||
|
}
|
||||||
function startDrag(elt) {
|
function startDrag(elt) {
|
||||||
elt.placed = false;
|
elt.placed = false;
|
||||||
elt.body.moves = false;
|
elt.body.moves = false;
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
@extends('frontend/template')
|
@extends('frontend/template')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="abso referents">
|
<div class="referents">
|
||||||
<div class="game active"
|
<div class="game no-click"
|
||||||
onclick='location.href = "{{ URL::to('puzzle') }}";'
|
|
||||||
style="background:url('{{ URL::to('imgs/puzzle/puzzle.png') }}'); background-repeat:no-repeat; background-size: contain; border: none; margin-top: 10%;">
|
style="background:url('{{ URL::to('imgs/puzzle/puzzle.png') }}'); background-repeat:no-repeat; background-size: contain; border: none; margin-top: 10%;">
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
Reference in New Issue
Block a user