2015-03-14 14:36:03 +01:00
|
|
|
@extends('frontend/template')
|
2015-03-09 22:22:43 +01:00
|
|
|
|
2015-03-14 14:36:03 +01:00
|
|
|
@section('page-css')
|
2015-03-09 22:22:43 +01:00
|
|
|
<link rel="stylesheet" href="/css/memory.css">
|
2015-03-17 12:23:24 +01:00
|
|
|
<link rel="stylesheet" href="/css/fonts/style.css" type="text/css">
|
2015-03-20 21:28:11 +01:00
|
|
|
|
2015-03-15 19:38:11 +01:00
|
|
|
<style>
|
|
|
|
.mg__tile--inside {
|
2015-03-16 16:01:24 +01:00
|
|
|
background-size: cover;
|
2015-03-15 19:38:11 +01:00
|
|
|
}
|
2015-03-16 16:01:24 +01:00
|
|
|
|
2015-03-15 19:38:11 +01:00
|
|
|
</style>
|
2015-03-14 14:36:03 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2015-03-21 16:39:38 +01:00
|
|
|
<div style="position: fixed; left: 0;top:0;">
|
|
|
|
<a href="/"><img style="height: 50px; width:50px;" src="{{ URL::to('imgs/previouspage.png') }}"></a>
|
2015-03-20 21:28:11 +01:00
|
|
|
</div>
|
2015-03-16 14:07:32 +01:00
|
|
|
<div id="my-memory-game"></div>
|
2015-03-14 14:36:03 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
2015-03-31 00:01:03 +02:00
|
|
|
|
|
|
|
<script src="/js/responsivevoice.js"></script>
|
2015-03-17 18:52:25 +01:00
|
|
|
<script src="/js/firework.js"></script>
|
2015-03-23 15:25:03 +01:00
|
|
|
|
|
|
|
<!--<script src="/js/fire-work.js"></script>-->
|
|
|
|
|
2015-03-14 14:36:03 +01:00
|
|
|
<script src="/js/memory.js"></script>
|
2015-03-17 18:52:25 +01:00
|
|
|
|
2015-03-14 17:48:57 +01:00
|
|
|
<script>
|
2015-03-16 16:01:24 +01:00
|
|
|
|
2015-03-15 19:38:11 +01:00
|
|
|
var cards2 = [];
|
|
|
|
@foreach($oeuvres as $o)
|
|
|
|
cards2.push(
|
|
|
|
{
|
|
|
|
id : '{{$o->id}}',
|
2015-03-22 16:49:58 +01:00
|
|
|
img : 'http://www.augustins.org/documents/10180/156407/{{ $o->image}}'
|
|
|
|
}
|
|
|
|
);
|
2015-03-15 19:38:11 +01:00
|
|
|
@endforeach
|
|
|
|
|
|
|
|
var myMem = new Memory({
|
|
|
|
wrapperID : "my-memory-game",
|
|
|
|
cards : cards2,
|
|
|
|
onGameStart : function() { return false; },
|
|
|
|
onGameEnd : function() { return false; }
|
2015-03-23 15:01:12 +01:00
|
|
|
}, {{$niveau}}, {{$nbBloc}},{{$nbPartie}} );
|
2015-03-16 16:01:24 +01:00
|
|
|
|
|
|
|
|
2015-03-14 17:48:57 +01:00
|
|
|
</script>
|
2015-03-17 18:52:25 +01:00
|
|
|
|
2015-03-16 16:01:24 +01:00
|
|
|
@endsection
|