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.

104 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>
<small>(<span class="conf_start"></span> - <span class="conf_end"></span>)</small>
<div class="row">
<div class="col">
<h3>demnächst stattfindende Talks</h3>
<div class="row">
<div class="col">
<div class="card-deck talks">
<div class="row">
<div class="col-sm">
<img class="img-fluid" alt="Grundriss" src="img/zw.png"/>
<div class="col-sm">
<img class="img-fluid patch float-right" src="img/patchgehabt.svg"/>
$.when($.ready).then(function () {
let path = "./src/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) {