Co co mit

This commit is contained in:
alexandre-pereira
2015-03-16 14:07:32 +01:00
parent 4ef3e7e8b3
commit f9251c68f9
10 changed files with 51 additions and 146 deletions

View File

@ -248,8 +248,6 @@
@endsection
@section('page-scripts')
<script src="{{ URL::to('js/image-picker.min.js') }}"></script>
<script src="{{ URL::to('js/masonry.min.js') }}"></script>
<script src="{{ URL::to('js/image-picker.min.js') }}"></script>
<script src="{{ URL::to('js/bootstrap-multiselect.js') }}"></script>
<script>
$("select.multiple").imagepicker();
@ -258,14 +256,14 @@ $("select.multiple").imagepicker();
$('#imagesSearched').load('{{ URL::to('api/searchOeuvres') }}', function(){$("select.multiple").imagepicker();});
function fitGrid(){
/*$('.thumbnails').masonry({
/*function fitGrid(){
$('.thumbnails').masonry({
itemSelector: 'li',
gutterWidth: 10
}).masonry('reload');*/
};
}).masonry('reload');
};*/
$('#imagesSearched').on('click', '.pager a', function (event) {
$('#imagesSearched').on('click', '.pagination a', function (event) {
event.preventDefault();
if ( $(this).attr('href') != '#' ) {
$("#imagesSearched").animate({ scrollTop: 0 }, "fast");
@ -295,11 +293,10 @@ $("#recherche").on('submit', function(event){
$('#imagesSearched').empty();
$('#imagesSearched').append(data);
$("select.multiple").imagepicker();
fitGrid();
});
});
/*

View File

@ -4,7 +4,7 @@
<option data-img-src='http://www.augustins.org/documents/10180/156407/{{$oeuvre->image}}' value='{{$oeuvre->id}}'></option>
@endforeach
</select>
<div class="text-center">
{!! $oeuvres->render() !!}
</div>
<button type="submit" class="btn btn-primary">Ajouter à la liste courante</button>

View File

@ -4,20 +4,14 @@
<link rel="stylesheet" href="/css/memory.css">
<style>
.mg__tile--inside {
overflow: hidden;
}
.mg__tile--inside img {
max-width: 100%;
background-size: cover;
}
</style>
@endsection
@section('content')
<div style="margin:auto;width:90%">
<div id="my-memory-game"></div>
</div>
<div id="my-memory-game"></div>
@endsection
@section('page-scripts')
@ -38,7 +32,7 @@
cards : cards2,
onGameStart : function() { return false; },
onGameEnd : function() { return false; }
});
}, {{$niveau}});
</script>

View File

@ -10,21 +10,11 @@
</div>
<br>
<button 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>
<button 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><br>
<span class="icon-star-full"></span></button><br>
<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><br>
<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/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('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>
</div>