mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fullscreen schedule view
This commit is contained in:
parent
cd5e49d5fb
commit
db7eaa3822
8 changed files with 19 additions and 8 deletions
|
@ -79,9 +79,5 @@ body.room {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#schedule {
|
||||
@import "_schedule.less";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.schedule {
|
||||
body .schedule {
|
||||
&.scroll-container {
|
||||
overflow: hidden;
|
||||
overflow-x: scroll;
|
||||
|
|
|
@ -110,6 +110,7 @@ body {
|
|||
@import "_error.less";
|
||||
@import "_overview.less";
|
||||
@import "_room.less";
|
||||
@import "_schedule.less";
|
||||
@import "_relive.less";
|
||||
@import "_multiview.less";
|
||||
@import "_closed.less";
|
||||
|
|
|
@ -51,7 +51,7 @@ $(function() {
|
|||
// schedule-timeline
|
||||
$(function() {
|
||||
var
|
||||
$schedule = $('.schedule'),
|
||||
$schedule = $('body .schedule'),
|
||||
$now = $schedule.find('.now'),
|
||||
scrollLock = false,
|
||||
rewindTimeout,
|
||||
|
@ -156,7 +156,7 @@ $(function() {
|
|||
clearInterval(updateInterval);
|
||||
}
|
||||
|
||||
if(window.location.hash == '#schedule')
|
||||
if(window.location.hash == '#schedule' || window.location.href.indexOf('/schedule') != -1)
|
||||
on();
|
||||
|
||||
// trigger when a tab was changed
|
||||
|
|
|
@ -226,6 +226,11 @@ try {
|
|||
require('view/multiview.php');
|
||||
}
|
||||
|
||||
else if($route == 'schedule')
|
||||
{
|
||||
require('view/schedule.php');
|
||||
}
|
||||
|
||||
else if($route == 'multiview/audio')
|
||||
{
|
||||
$_GET['selection'] = 'audio';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="now"><span>now</span></div>
|
||||
<? $rooms = $schedule->getSchedule() ?>
|
||||
<? foreach($rooms as $roomname => $events): ?>
|
||||
<div class="room <? if($roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale())?>px">
|
||||
<div class="room <? if(isset($room) && $roomname == $room->getSlug()): ?>highlight<? endif ?>" style="width: <?=round($schedule->getDurationSum() / $schedule->getScale())?>px">
|
||||
<? $fromstart = 0; ?>
|
||||
<? foreach($events as $event): ?>
|
||||
<div
|
||||
|
|
1
template/schedule.phtml
Normal file
1
template/schedule.phtml
Normal file
|
@ -0,0 +1 @@
|
|||
<? require("$assemblies/schedule.phtml") ?>
|
8
view/schedule.php
Normal file
8
view/schedule.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
echo $tpl->render(array(
|
||||
'page' => 'schedule',
|
||||
'title' => 'Schedule-Übersicht',
|
||||
|
||||
'schedule' => new Schedule(),
|
||||
));
|
Loading…
Reference in a new issue