Fragment gemist bijna af
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?php $__env->startSection('title'); ?>
|
||||
Fragment gemist
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
##parent-placeholder-040f06fd774092478d450774f5ba30c5da78acc8##
|
||||
|
||||
<?php if(isset($program)): ?>
|
||||
<h2><?php echo e($program->name); ?></h2>
|
||||
<p class="align-right">
|
||||
<a href="<?php echo e(url('gemist')); ?>" title="Alle programma's" class="btn btn-info">← Toon alles</a>
|
||||
<a href="<?php echo e(url('programma' . $program->url)); ?>" title="<?php echo e($program->name); ?>" class="btn btn-info">Programmainfo</a>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<p>Hele uitzendingen kunt u binnen twee weken terugluisteren door het betreffende programma op te zoeken via de <a href="<?php echo e(url('gids')); ?>">programmagids</a>.
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($podcasts): ?>
|
||||
|
||||
<div class="page_layout clearfix">
|
||||
<div class="row grid" id="items">
|
||||
<?php echo $__env->make('podcastitems', ['podcasts' => $podcasts], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
||||
</div><!--/.row-->
|
||||
</div>
|
||||
|
||||
<div id="loading" style="display: none">
|
||||
<div class="progress progress-striped active">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
||||
<b>Meer podcasts aan het ophalen...</b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $__env->startPush('scripts'); ?>
|
||||
<script>
|
||||
var page = 1;
|
||||
var isLoading = 0;
|
||||
var $items = $('#items');
|
||||
var $isLoading = $('#loading');
|
||||
$(function() {
|
||||
$(window).scroll(function () {
|
||||
var $this = $(this);
|
||||
var tweak = 10;
|
||||
|
||||
if(!isLoading && (page > 0) && ($this.scrollTop() >= $items.height() - $this.height() - tweak))
|
||||
{
|
||||
isLoading = 1;
|
||||
$isLoading.show();
|
||||
$.ajax({ url: document.location.pathname + '?pagina=' + (++page) })
|
||||
.always(function() { isLoading = 0; $isLoading.hide(); })
|
||||
.done(function(data) {
|
||||
if(!data) {
|
||||
if(page > 1) $items.append("<hr /><p>Er zijn geen podcasts (meer).</p>");
|
||||
page = -1;
|
||||
return;
|
||||
}
|
||||
$newPage = $("<div />").append(data);
|
||||
$items.append($newPage);
|
||||
$newPage.find("audio, video").mediaelementplayer({ stretching: 'responsive' });
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php $__env->stopPush(); ?>
|
||||
<?php else: ?>
|
||||
|
||||
<p>Er zijn geen fragmenten beschikbaar.</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
|
||||
<?php echo $__env->make('page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|
||||
Reference in New Issue
Block a user