This commit is contained in:
sidya82 2015-03-18 09:10:27 +01:00
commit d740e57d56
30 changed files with 431 additions and 228 deletions

View File

@ -24,7 +24,7 @@ class APIController extends Controller {
if(!empty($reg))
$res = Referent::where('nom', 'like', '%'.$reg.'%')->orWhere('prenom', 'like', '%'.$reg.'%')->select(['nom', 'prenom', 'image', 'id'])->get();
else
$res = Referent::get(5);
$res = Referent::take(5)->select(['nom', 'prenom', 'image', 'id'])->get();
return Response::json($res->toArray());
}

View File

@ -23,7 +23,8 @@ class GameController extends Controller {
* @return Response
*/
public function chooseDifMemo() {
return view('frontend/memo_level');
$nbOr = Cookie::get('referent');
return view('frontend/memo_level', ['nbOr' => $nbOr]);
}
public function playMemo($niveau) {
@ -94,7 +95,6 @@ class GameController extends Controller {
return view('referent_games', ['games' => $games]);
}
/**
* Show one referent game
*

View File

@ -29,7 +29,8 @@ class HomeController extends Controller {
public function choisirRef()
{
return view('frontend/home',['referents' => Referent::get()]);
$refs = Referent::take(5)->select(['nom', 'prenom', 'image', 'id'])->get();
return view('frontend/home',['referents' => $refs]);
}
public function changerRef($idRef)

View File

@ -65,7 +65,7 @@ class LoginController extends Controller {
{
Session::forget('admin');
Auth::logout();
return redirect('login');
return redirect()->guest('login');
}
public function forgottenPassword()

View File

@ -117,8 +117,12 @@ class ReferentController extends Controller {
Auth::user()->configjeu()->update(array('actifMemo' => 0));
Auth::user()->configjeu()->update(array('actifPuzzle' => 0));
if(Input::get('memo') != 0)
ConfigJeu::where('referent_id', '=', Auth::user()->id)->find(Input::get('memo'))->update(array('actifMemo' => 1));
if(Input::get('puzzle') != 0)
ConfigJeu::where('referent_id', '=', Auth::user()->id)->find(Input::get('puzzle'))->update(array('actifPuzzle' => 1));
Session::flash('message', 'Vous avez modifié les listes associées aux jeux avec succès.');
return redirect()->back();
}
@ -126,7 +130,8 @@ class ReferentController extends Controller {
//todo verifier user
$cj = ConfigJeu::find($id);
$cj->oeuvres()->attach(Input::get('toadd'));
Session::flash('message', 'Vous avez ajouter des oeuvres dans votre liste.');
return redirect()->back();
}
@ -137,6 +142,7 @@ class ReferentController extends Controller {
if(count(Input::get('todel')) >= 1)
$cj->oeuvres()->detach(Input::get('todel'));
Session::flash('erreur', 'Vous avez supprimer des oeuvres de votre liste.');
return redirect()->back();
}

BIN
SRC/composer.phar Executable file

Binary file not shown.

View File

@ -78,7 +78,7 @@ return [
| connection so that the application will be able to send messages.
|
*/
'password' => env('MAIL_PASSWD', ''),
'password' => env('MAIL_PASSWD', 'l3miashs2015'),
/*
|--------------------------------------------------------------------------
| Sendmail System Path

View File

@ -13,3 +13,70 @@
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<IfModule mod_deflate.c>
# Force compression for mangled headers.
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Map certain file types to the specified encoding type in order to
# make Apache serve them with the appropriate `Content-Encoding` HTTP
# response header (this will NOT make Apache compress them!).
# If the following file types wouldn't be served without the appropriate
# `Content-Enable` HTTP response header, client applications (e.g.:
# browsers) wouldn't know that they first need to uncompress the response,
# and thus, wouldn't be able to understand the content.
# http://httpd.apache.org/docs/current/mod/mod_mime.html#addencoding
<IfModule mod_mime.c>
AddEncoding gzip svgz
</IfModule>
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Compress all output labeled with one of the following media types.
# IMPORTANT: For Apache versions below 2.3.7 you don't need to enable
# `mod_filter` and can remove the `<IfModule mod_filter.c>` & `</IfModule>`
# lines as `AddOutputFilterByType` is still in the core directives.
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/atom+xml" \
"application/javascript" \
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
"application/vnd.ms-fontobject" \
"application/x-font-ttf" \
"application/x-web-app-manifest+json" \
"application/xhtml+xml" \
"application/xml" \
"font/opentype" \
"image/svg+xml" \
"image/x-icon" \
"text/cache-manifest" \
"text/css" \
"text/html" \
"text/javascript" \
"text/plain" \
"text/vtt" \
"text/x-component" \
"text/xml"
</IfModule>
</IfModule>

File diff suppressed because one or more lines are too long

81
SRC/public/css/frontend.css Executable file → Normal file
View File

@ -9,6 +9,8 @@ html, body {
background: #ebebeb;
background: url('../imgs/bg.png') no-repeat bottom center fixed;
background-size: cover;
font-weight:300;
}
nav {
@ -24,8 +26,6 @@ nav input {
padding: 10px 20px;
border-radius: 5px;
outline: 0;
letter-spacing: 1px;
word-spacing: 8px;
text-align: center;
font-family: 'Oswald', sans-serif;
@ -135,56 +135,35 @@ button:active {
}
/* FIL D'ARIANE */
.homeTitle {
font-weight:300;
}
#back_ref{
font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
width:500px;
margin-left: 5px;
.game {
background:rgba(255, 255, 255, 0.5);
margin:20px;
display:inline-block;
width:200px;
height:200px;
border:5px solid rgba(0, 0, 0, 0.55);
padding:5px;
border-radius:8px;
}
/*Reset sur la liste*/
#back_ref ul, #back_ref li {
list-style-type:none;
padding:0;margin:0;
}
/*Styles sur la liste*/
#back_ref ul{
height:33px;
margin:10px auto;
padding:30px 0;
}
/*Premier ÈlÈment de la liste*/
#back_ref li.first {
background:url(../imgs/ariane/first-left.png) 0 0 no-repeat;
height:33px;
}
/*Tous les ÈlÈments de la liste sauf premier et dernier*/
#back_ref li {
float:left;
background:url(../imgs/ariane/general-left.png) 0 0 no-repeat;
line-height:33px;
margin:5px 0 0 0;
padding-left:13px;
.game:hover, .game.active{
background:white;
cursor:pointer;
border:5px solid rgba(0, 0, 0, 0.95);
}
/*Style sur les ÈlÈments a et span*/
#back_ref li a,
#back_ref li span {
float:left;
background:url(../imgs/ariane/bg-gradient.jpg) 0 0 repeat-x;
height:33px;
margin:0;
padding:0 0 0 5px;
font-size:11px;
text-transform:uppercase;
letter-spacing:0.02em;
}
/*Style du dernier span de la liste*/
#back_ref li span.end {
float:left;
background:url(../imgs/ariane/general-right.png) 0 0 no-repeat;
width:20px;
height:33px;
}
#back_ref img {
vertical-align:middle;
.game img {
width:100%;
height:100%;
}
img#imgRef {
border-radius:50%; height:100px;width:100px;margin:40px; cursor:pointer;
}
img#imgRef:active {
cursor:wait;
}

View File

@ -531,3 +531,14 @@ left: 56.3333%%;
#fusionads a.fusion-poweredby {
color: #28aadc;
}
.icon-trophy {
color : yellow;
font-size : 100px;
}
.icon-spinner11{
font-size : 50px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 MiB

After

Width:  |  Height:  |  Size: 9.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

157
SRC/public/js/firework.js Normal file
View File

@ -0,0 +1,157 @@
var bits=80; // how many bits
var speed=33; // how fast - smaller is faster
var bangs=5; // how many can be launched simultaneously (note that using too many can slow the script down)
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c");
// blue red green purple cyan orange pink
var bangheight=new Array();
var intensity=new Array();
var colour=new Array();
var Xpos=new Array();
var Ypos=new Array();
var dX=new Array();
var dY=new Array();
var stars=new Array();
var decay=new Array();
var swide=800;
var shigh=600;
var boddie;
function firework(){
if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
/*var oldonload=window.onload;
if (typeof(oldonload)!='function') window.onload=funky;
else window.onload=function() {
if (oldonload) oldonload();*/
funky();
// }
}
addRVLoadEvent(light_blue_touchpaper);
}
function light_blue_touchpaper() { if (document.getElementById) {
var i;
boddie=document.createElement("div");
boddie.style.position="fixed";
boddie.style.top="0px";
boddie.style.left="0px";
boddie.style.overflow="visible";
boddie.style.width="1px";
boddie.style.height="1px";
boddie.style.backgroundColor="transparent";
document.body.appendChild(boddie);
set_width();
for (i=0; i<bangs; i++) {
write_fire(i);
launch(i);
setInterval('stepthrough('+i+')', speed);
}
}}
function write_fire(N) {
var i, rlef, rdow;
stars[N+'r']=createDiv('|', 12);
boddie.appendChild(stars[N+'r']);
for (i=bits*N; i<bits+bits*N; i++) {
stars[i]=createDiv('*', 13);
boddie.appendChild(stars[i]);
}
}
function createDiv(char, size) {
var div=document.createElement("div");
div.style.font=size+"px monospace";
div.style.position="absolute";
div.style.backgroundColor="transparent";
div.appendChild(document.createTextNode(char));
return (div);
}
function launch(N) {
colour[N]=Math.floor(Math.random()*colours.length);
Xpos[N+"r"]=swide*0.5;
Ypos[N+"r"]=shigh-5;
bangheight[N]=Math.round((0.5+Math.random())*shigh*0.4);
dX[N+"r"]=(Math.random()-0.5)*swide/bangheight[N];
if (dX[N+"r"]>1.25) stars[N+"r"].firstChild.nodeValue="/";
else if (dX[N+"r"]<-1.25) stars[N+"r"].firstChild.nodeValue="\\";
else stars[N+"r"].firstChild.nodeValue="|";
stars[N+"r"].style.color=colours[colour[N]];
}
function bang(N) {
var i, Z, A=0;
for (i=bits*N; i<bits+bits*N; i++) {
Z=stars[i].style;
Z.left=Xpos[i]+"px";
Z.top=Ypos[i]+"px";
if (decay[i]) decay[i]--;
else A++;
if (decay[i]==15) Z.fontSize="7px";
else if (decay[i]==7) Z.fontSize="2px";
else if (decay[i]==1) Z.visibility="hidden";
if (decay[i]>1 && Math.random()<.1) {
Z.visibility="hidden";
setTimeout('stars['+i+'].style.visibility="visible"', speed-1);
}
Xpos[i]+=dX[i];
Ypos[i]+=(dY[i]+=1.25/intensity[N]);
}
if (A!=bits) setTimeout("bang("+N+")", speed);
}
function stepthrough(N) {
var i, M, Z;
var oldx=Xpos[N+"r"];
var oldy=Ypos[N+"r"];
Xpos[N+"r"]+=dX[N+"r"];
Ypos[N+"r"]-=4;
if (Ypos[N+"r"]<bangheight[N]) {
M=Math.floor(Math.random()*3*colours.length);
intensity[N]=5+Math.random()*4;
for (i=N*bits; i<bits+bits*N; i++) {
Xpos[i]=Xpos[N+"r"];
Ypos[i]=Ypos[N+"r"];
dY[i]=(Math.random()-0.5)*intensity[N];
dX[i]=(Math.random()-0.5)*(intensity[N]-Math.abs(dY[i]))*1.25;
decay[i]=16+Math.floor(Math.random()*16);
Z=stars[i];
if (M<colours.length) Z.style.color=colours[i%2?colour[N]:M];
else if (M<2*colours.length) Z.style.color=colours[colour[N]];
else Z.style.color=colours[i%colours.length];
Z.style.fontSize="13px";
Z.style.visibility="visible";
}
bang(N);
launch(N);
}
stars[N+"r"].style.left=oldx+"px";
stars[N+"r"].style.top=oldy+"px";
}
window.onresize=set_width;
function set_width() {
var sw_min=999999;
var sh_min=999999;
if (document.documentElement && document.documentElement.clientWidth) {
if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
}
if (typeof(self.innerWidth)!="undefined" && self.innerWidth) {
if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
}
if (document.body.clientWidth) {
if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
}
if (sw_min==999999 || sh_min==999999) {
sw_min=800;
sh_min=600;
}
swide=sw_min;
shigh=sh_min;
}

View File

@ -1,12 +1,13 @@
;(function( window ) {
'use strict';
//'use strict';
/**
* Extend object function
*
*/
function extend( a, b ) {
for( var key in b ) {
if( b.hasOwnProperty( key ) ) {
@ -32,7 +33,8 @@
*/
function Memory( options, level, nbcase ) {
console.log(nbcase);
//console.log(nbcase);
console.log("bob");
this.options = extend( {}, this.options );
extend( this.options, options );
this._init(level, nbcase);
@ -337,19 +339,45 @@
* You won the game! This function runs the "onGameEnd" callback, which by
* default clears the game div entirely and shows a "play again" button.
*/
/*
Memory.prototype._winGame = function() {
var self = this;
if (this.options.onGameEnd() === false) {
this._clearGame();
/* document.getElementById("win").addEventListener( "click", function(e) {
alert("zoro 2");
document.location.href="/memo";
self.resetGame();
});*/
} else {
// run callback
this.options.onGameEnd();
//alert("coucou");
}
}
*/
Memory.prototype._winGame = function() {
var self = this;
if (this.options.onGameEnd() === false) {
this._clearGame();
firework();
this.gameMessages.innerHTML = '<h2 class="mg__onend--heading"><span class="icon-trophy"></span></h2>\
<p class="mg__onend--message">Vous avez gagné votre partie en ' + this.numMoves + ' coups !</p>\
<button id="mg__onend--restart" class="mg__button"><span class="icon-spinner11"></span></button>';
var texteADire = "Bravo, tu as gagné en "+this.numMoves+" coups ! ";
responsiveVoice.speak(texteADire, "French Female");
this.game.appendChild(this.gameMessages);
document.getElementById("mg__onend--restart").addEventListener( "click", function(e) {
document.location.href="/memo";
});
} else {
// run callback
this.options.onGameEnd();
}
}
/**
* Memory resetGame

View File

@ -1,12 +1,5 @@
@extends('backend/template')
@section('page-css')
<style>
html, body {
background-image: url('{{URL::to('imgs/adminbg.jpg')}}');
background-size: cover;
}</style>
@endsection
@section('content')
<div class="container-fluid">
<div class="row">

View File

@ -1,65 +0,0 @@
@extends('backend/template')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="/password/reset">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">Name</label>
<div class="col-md-6">
<input type="text" class="form-control" name="name" value="{{ old('name') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">E-Mail Address</label>
<div class="col-md-6">
<input type="email" class="form-control" name="email" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Confirm Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password_confirmation">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Register
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@ -5,7 +5,7 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Réinitialiser Mot de Passe</div>
<div class="panel-heading">Changer votre mot de passe</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
@ -23,7 +23,7 @@
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group">
<label class="col-md-4 control-label">Email</label>
<label class="col-md-4 control-label">Email :</label>
<div class="col-md-6">
<input type="text" class="form-control" name="email">
</div>
@ -31,14 +31,14 @@
<div class="form-group">
<label class="col-md-4 control-label">Mot de passe</label>
<label class="col-md-4 control-label">Nouveau mot de passe :</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Confirmer mot de passe</label>
<label class="col-md-4 control-label">Confirmer le mot de passe :</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password_confirmation">
</div>
@ -47,7 +47,7 @@
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
Réinitialiser Password
Valider
</button>
</div>
</div>

View File

@ -19,7 +19,19 @@
<div class="panel panel-primary">
<div class="panel-heading">Mes listes d'Oeuvres</div>
<div class="panel-body">
<div class="alert alert-warning">Ci-dessous, vous pouvez associer les listes d'oeuvres à un jeu. Cliquez sur le bouton "<span class="glyphicon glyphicon-ok"> </span> Associer" quand c'est terminé. Cliquez sur le bouton <span class="glyphicon glyphicon-pencil"></span> pour modifier la liste.</div>
<form method="post" action="{{ URL::to('referent/ajouterliste') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="nomListe">Nouvelle liste</label>
<div class="input-group">
<input type="text" id="nomListe" name="nomListe" class="form-control" placeholder="Nom de la liste">
<span class="input-group-btn">
<button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-plus"></span></button>
</span>
</div>
</div>
</form>
<div class="alert alert-grey">Ci-dessous, vous pouvez associer les listes d'oeuvres à un jeu. Cliquez sur le bouton "<span class="glyphicon glyphicon-ok"> </span> Associer" quand c'est terminé.</div>
<form method="post" action="{{ URL::to('referent/changerparamliste') }}">
<table class="table">
<thead class="tablethead">
@ -32,7 +44,7 @@
</thead>
<tbody>
<tr>
<td>Aucune liste</td>
<td>Liste aléatoire</td>
<td><input type="radio" name="memo" value="0" checked type="checkbox"></td>
<td><input type="radio" name="puzzle" value="0" checked type="checkbox"></td>
<td></td>
@ -55,18 +67,7 @@
</tbody>
</table>
<div class="text-center"><button type="submit" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-ok-circle"> </span> Associer</button></div>
<form method="post" action="{{ URL::to('referent/ajouterliste') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="nomListe">Nouvelle liste</label>
<div class="input-group">
<input type="text" id="nomListe" name="nomListe" class="form-control" placeholder="Nom de la liste">
<span class="input-group-btn">
<button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-plus"></span></button>
</span>
</div>
</div>
</form>
</div>
</div>
</div>
@ -235,7 +236,7 @@
</div>
</form>
@else
<h1>Veuillez selectionner une liste pour la modifier.</h1>
<div class="alert alert-grey">Cliquez sur le bouton <span class="glyphicon glyphicon-pencil"></span> pour modifier une liste.</div>
@endif
</div>
</div>
@ -252,6 +253,7 @@
width:100%;
height: 100px;
}
</style>
@endsection
@section('page-scripts')

View File

@ -1,26 +1,27 @@
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".nav-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Espace Référent</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<ul class="nav navbar-nav">
<li class="active"><a href="#">Mes Listes</a></li>
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Espace Référent</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Mes Listes</a></li>
<li><a data-toggle="modal" data-target="#myModal1" href="#">Mon Compte</a></li>
<li><a href="{{ URL::to('logout') }}">Se Déconnecter</a></li>
</ul>
<p class="navbar-text navbar-right">Connecté en tant que {{ $me->prenom }} {{ $me->nom }}</p>
<!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="{{ URL::to('logout') }}">Déconnexion</a></li>
</ul>
<p class="navbar-text navbar-right">Connecté en tant que {{ $me->prenom }} {{ $me->nom }}</p>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
<!-- Modal -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
@ -35,32 +36,32 @@
<input type="hidden" name="idUser" value="{{ $me->id }}" />
<div class="modal-body">
<div class="form-group">
<label for="firstname" class="col-sm-2 control-label">Prénom</label>
<div class="col-sm-10">
<label for="firstname" class="col-sm-3 control-label">Prénom :</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="firstname" name="prenom" required placeholder="Prénom" value="{{$me->prenom}}">
</div>
</div>
<div class="form-group">
<label for="lastname" class="col-sm-2 control-label">Nom</label>
<div class="col-sm-10">
<label for="lastname" class="col-sm-3 control-label">Nom :</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="lastname" name="nom" required placeholder="Nom" value="{{$me->nom}}">
</div>
</div>
<div class="form-group">
<label for="email" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<label for="email" class="col-sm-3 control-label">Email :</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="email" name="email" required placeholder="Email" value="{{$me->email}}">
</div>
</div>
<div class="form-group">
<label for="city" class="col-sm-2 control-label">Etablissement</label>
<div class="col-sm-10">
<label for="city" class="col-sm-3 control-label">Etablissement :</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="city" name="etablissement" required placeholder="Ecole" value="{{$me->etablissement}}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="exampleInputFile">Image</label>
<div class="col-sm-10">
<label class="col-sm-3 control-label" for="exampleInputFile">Image :</label>
<div class="col-sm-9">
<input type="file" class="form-control" name="file" id="file">
</div>
</div>

View File

@ -1,26 +1,29 @@
@extends('frontend/template')
@section('content')
<div class="titreIcon">
<img src="imgs/games.png" />
<div style="text-align:center">
<img id="imgRef" src="{{ $ref -> image }}"><br>
<div class="game" onclick="location.href='{{ URL::to('memo') }}'"><img src="imgs/memo/memo2.png"></div>
<div class="game" onclick="location.href='{{ URL::to('puzzle') }}'"><img src="imgs/puzzle/puzzle.png"></div>
</div>
<div id="back_ref">
<ul>
<li class="first">
<a href="/choisirref"><img src="{{ $ref -> image}}" style="border:1px solid silver;"/></a>
<span class="end">&nbsp;</span>
</li>
<li>
<span><img src="imgs/games.png" alt="game"/></span>
<span class="end">&nbsp;</span>
</li>
</ul>
</div>
<div class="text-center">
<a href="{{ URL::to('puzzle') }}" ><img src="imgs/puzzle/iconPuzzle.png" alt="puzzle"/></a>
<a href="{{ URL::to('memo') }}" ><img src="imgs/memo/memo2.png" alt="memo"/></a>
</div>
<footer>
<p style="text-align:center; color:black; font-size:12px; position:absolute; bottom: 0; "> Application du musée Augustin </p>
</footer>
@endsection
@section('page-scripts')
<script>
var redirect;
document.getElementById('imgRef').addEventListener("mousedown", function() {
redirect = setTimeout(function(){location.href="{{URL::to('choisirref')}}"}, 3000);
});
document.getElementById('imgRef').addEventListener("mouseup", function() {
clearTimeout(redirect);
});
</script>
@endsection

View File

@ -2,7 +2,14 @@
@section('content')
@if ($referents != [])
<h1 class="homeTitle"> Jeux Educatifs du musée Augustin </h1>
<div style="text-align:center;background-color: #fcfc6b; padding:10px; margin:auto;font-size:18px;">
<h1 class="homeTitle">Les jeux du Musée des Augustins</h1>
L'objectif de ce site est de permettre aux enfants de jouer à des jeux tout en leur apportant de l'intérêt pour les différentes oeuvres d'art exposées dans le fameux musée toulousain.<br>
<span style="color:red;">Lorsque vous aurez choisit un référent, il faudra appuyer pendant 3 secondes sur l'icone de votre référent afin de revenir sur cette page.</span><br>
Si vous n'avez pas de référent, vous pouvez toujours <span style="color:#37378e;">cliquer ici pour jouer aux jeux</span>, sinon cliquez sur leur image.
</div>
<nav>
<input name="searchterm" class="icon-search" id="searchterm" placeholder="&#xe986; Rechercher un référent" type="text">
</nav>
@ -19,9 +26,6 @@
@else
<h1>Aucun référent trouvé</h1>
@endif
<div class="about">
<a href="#"><span class="icon-info" style="font-size: 55px; color:black;"></span></a>
</div>
@endsection
@section('page-css')

View File

@ -2,6 +2,7 @@
@section('page-css')
<link rel="stylesheet" href="/css/memory.css">
<link rel="stylesheet" href="/css/fonts/style.css" type="text/css">
<style>
.mg__tile--inside {
background-size: cover;
@ -15,7 +16,10 @@
@endsection
@section('page-scripts')
<script src="/js/firework.js"></script>
<script src="{{ URL::to('js/responsivevoice.js') }}"></script>
<script src="/js/memory.js"></script>
<script>
var cards2 = [];
@ -36,4 +40,5 @@
</script>
@endsection

View File

@ -14,7 +14,14 @@
<button onclick="location.href='{{ URL::to('memo/jouer/2') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span></span><span class="icon-star-full"></span></button>
<button onclick="location.href='{{ URL::to('memo/jouer/3') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span><span class="icon-star-full"></span></span></button>
<button onclick="location.href='{{ URL::to('memo/jouer/3') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span><span class="icon-star-full"></span></span></button><br>
<div style="line-height:50px;"></div><img style="height:50px; vertical-align:middle;width:50px" src="{{ URL::to('imgs/trophees/or.png') }}"><span style="vertical-align:middle;font-size:20px">{{ $nbOr }}</span>
<img style="height:50px; vertical-align:middle;width:50px" src="{{ URL::to('imgs/trophees/or.png') }}"><span style="vertical-align:middle;font-size:20px">{{ $nbOr }}</span>
<img style="height:50px; vertical-align:middle;width:50px" src="{{ URL::to('imgs/trophees/or.png') }}"><span style="vertical-align:middle;font-size:20px">{{ $nbOr }}</span>
</div>
</div>

View File

@ -174,7 +174,7 @@
else {
setTimeout(function(){
nextPuzzle();
}, 5000);
}, 2000);
}
}

View File

@ -3,22 +3,18 @@
@section('content')
<div class="abso referents">
<div class="referent game"
<div class="game active"
onclick='location.href = "{{ URL::to('puzzle') }}";'
style="background:url('{{ URL::to('imgs/puzzle.jpg') }}'); width: 50%;">
<div class="infos">Puzzle</div>
style="background:url('{{ URL::to('imgs/puzzle/puzzle.png') }}'); width: 50%;">
</div>
<br>
<br>
<button onclick="location.href='{{ URL::to('puzzle/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>
<br>
<button onclick="location.href='{{ URL::to('puzzle/jouer/2') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span></span><span class="icon-star-full"></span></button>
<br>
<button onclick="location.href='{{ URL::to('puzzle/jouer/3') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span><span class="icon-star-full"></span></span></button>
<button onclick="location.href='{{ URL::to('puzzle/jouer/3') }}'"><span style="color:gold;"><span class="icon-star-full"></span><span class="icon-star-full"></span><span class="icon-star-full"></span></span></button>
</div>

View File

@ -4,15 +4,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Les Jeux du Musée</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Oswald:700,300" rel="stylesheet" type="text/css">
<link href="{{ URL::to('css/frontend.css') }}" rel="stylesheet" type="text/css"/>
@yield('page-css')
</head>
<body>
@yield('content')
@yield('page-scripts')
</body>
</html>