This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
2015-03-14 13:36:03 +00:00
|
|
|
@extends('frontend/template')
|
2015-03-09 21:22:43 +00:00
|
|
|
|
2015-03-14 13:36:03 +00:00
|
|
|
@section('page-css')
|
2015-03-09 21:22:43 +00:00
|
|
|
<link rel="stylesheet" href="/css/memory.css">
|
2015-03-15 18:38:11 +00:00
|
|
|
<style>
|
|
|
|
.mg__tile--inside {
|
2015-03-16 13:07:32 +00:00
|
|
|
background-size: cover;
|
2015-03-15 18:38:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2015-03-14 13:36:03 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
2015-03-16 13:07:32 +00:00
|
|
|
<div id="my-memory-game"></div>
|
2015-03-14 13:36:03 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<script src="/js/memory.js"></script>
|
2015-03-14 16:48:57 +00:00
|
|
|
<script>
|
|
|
|
|
2015-03-15 18:38:11 +00:00
|
|
|
var cards2 = [];
|
|
|
|
@foreach($oeuvres as $o)
|
|
|
|
cards2.push(
|
|
|
|
{
|
|
|
|
id : '{{$o->id}}',
|
|
|
|
img : 'http://www.augustins.org/documents/10180/156407/{{ $o->image}}'}
|
|
|
|
);
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
var myMem = new Memory({
|
|
|
|
wrapperID : "my-memory-game",
|
|
|
|
cards : cards2,
|
|
|
|
onGameStart : function() { return false; },
|
|
|
|
onGameEnd : function() { return false; }
|
2015-03-16 13:07:32 +00:00
|
|
|
}, {{$niveau}});
|
2015-03-15 18:38:11 +00:00
|
|
|
|
2015-03-14 16:48:57 +00:00
|
|
|
|
|
|
|
</script>
|
2015-03-14 13:36:03 +00:00
|
|
|
@endsection
|