This commit is contained in:
alexandre-pereira 2015-03-20 23:46:51 +01:00
parent e73999cd56
commit 6bc9de0f9d
4 changed files with 12 additions and 17 deletions

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<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">
@if (session('status'))
<div class="alert alert-success">

View File

@ -3,9 +3,7 @@
@section('content')
<div class="referents">
<div class="referent game"
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 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%;">
</div>
<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>

View File

@ -1,16 +1,10 @@
@extends('frontend/template')
@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/responsivevoice.js') }}"></script>
<script type="text/javascript">
document.body.innerHTML = "<h1 id='Chargement'> Chargement... </h1>" + document.body.innerHTML; //on affiche le chargement
function getPieceWidth(w,h) {
//if(h>w) {
return w * (y * ratioImage)/h;
@ -22,12 +16,11 @@
//} else return h * (x * ratioImage)/w;
}
function preload () {
document.getElementById("Chargement").innerHTML = ""; //on efface
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('trophy2', '{{ URL::to('imgs/trophees/argent.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++) {
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();
}
function create () {
var button = game.make.button(5, 5, 'previous', changePage, this, 2, 1, 0);
game.physics.startSystem(Phaser.Physics.ARCADE);
createPiecesFor(1);
}
function changePage() {
alert("Confirmer ?");
}
function startDrag(elt) {
elt.placed = false;
elt.body.moves = false;

View File

@ -1,9 +1,8 @@
@extends('frontend/template')
@section('content')
<div class="abso referents">
<div class="game active"
onclick='location.href = "{{ URL::to('puzzle') }}";'
<div class="referents">
<div class="game no-click"
style="background:url('{{ URL::to('imgs/puzzle/puzzle.png') }}'); background-repeat:no-repeat; background-size: contain; border: none; margin-top: 10%;">
</div>
<br>