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.
ModuleWeb/SRC/resources/views/frontend/memo.blade.php

39 lines
803 B
PHP
Executable File

@extends('frontend/template')
@section('page-css')
<link rel="stylesheet" href="/css/memory.css">
<style>
.mg__tile--inside {
background-size: cover;
}
</style>
@endsection
@section('content')
<div id="my-memory-game"></div>
@endsection
@section('page-scripts')
<script src="/js/memory.js"></script>
<script>
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; }
}, {{$niveau}});
</script>
@endsection