You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.4 KiB

<!doctype html>
<html lang="de">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/ds19.css">
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="js/Schedule.js"></script>
<title>Konferenz Wegweiser</title>
<div class="container h-100 w-100 fullscreen">
<div class="row">
<div class="col">
<h1>Konferenz Wegweiser</h1>
<div class="col">
<span class="conf_title">loading schedule..</span>
Fahrplan-Version: <span class="conf_version"></span>
<div class="row">
<div class="col">
<h3>nächste Talks:</h3>
<div class="row">
<div class="col">
<div class="card-deck talks">
<div class="row">
<div class="col-sm text-center mt-3">
<img class="img-fluid h-75" alt="Grundriss" src="img/plan4.svg" />
setTimeout(function () {
}, 60000);
$.when($.ready).then(function () {
let path = "./schedule/schedule.xml";
$.get(path, function (data) {
this.xml = new XMLSerializer().serializeToString(data);
// load your schedule
var scheduleXml = $($.parseXML(this.xml));
var s = new Schedule(scheduleXml);
// for testing purposes
// Example: ?faketime=2018-09-22T19:29:00
let faketime = new URL(window.location.href).searchParams.get("faketime");
if (faketime != null) {
s.setTimeTo(new Date(faketime));
// output part of the schedule
var events = s.getNextEvents();
for (var i = 0; i < events.length; i++) {
event = ` <div class="card">
<div class="card-title">
<h2> ${events[i].title} </h2>
<div class="card-body">
<p> ${events[i].abstract} </p>
<div class="card-footer">
<p class="ml-1">${(events[i].persons !== "\n") ? events[i].persons : "<br>"}</p>
<span class="float-left ml-1">${events[i].start}Uhr</span>
<span class="float-right mr-2">${events[i].duration}h</span>
if (i >= 2) {