-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (82 loc) · 3.37 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CPG Calendar</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="libs/vue.global.js"></script>
<script type="text/javascript" src="main.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- card related -->
<!--
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="">
<meta property="twitter:title" content="">
<meta property="og:description" content="">
<meta property="twitter:description" content="">
<meta property="og:image" content="https://.../preview_640x320.jpg">
<meta property="twitter:image" content="">
<meta property="org:url" content="https://...">
-->
</head>
<body>
<main id="app" style="display:none">
<h1>CPG Calendar</h1>
<br>
<table class="config">
<tr>
<td>Theater:</td>
<td>
<span v-if="theaters">
<input list="theaters" v-model="theaterId" placeholder="select theater">
<datalist id="theaters">
<option v-for="theater in theaters" v-bind:value="theater.slug">{{theater.name}}</option>
</datalist>
</span>
<span v-else>
Loading...
</span>
</td>
</tr>
<tr>
<td>Versions:</td>
<td>
<span v-for="version in versions">
<input type="checkbox" v-bind:id="version.id" v-on:input="this.changeVersions" v-model="version.selected"> <label v-bind:for="version.id">{{ version.id.toUpperCase() }}</label>
</span>
</td>
</tr>
<tr>
<td>Start date:</td>
<td><input type="date" v-model="startDateInput"></td>
</tr>
</table>
<br>
<table class="timetable" v-if="showTimetable">
<tr>
<th></th>
<template v-for="column in columns">
<th v-if="column.id === 0" v-bind:colspan="maxColumnWidth[column.date]">{{column.format}}</th>
</template>
</tr>
<tr class="time" v-for="row in rows">
<th v-if="row.minute === 0" rowspan="12">
{{row.format}}
</th>
<template v-for="column in columns">
<td
v-if="shouldShow(row, column)"
v-bind:rowspan="rowSpan(row, column)"
v-bind:class="getClass(row, column)"
v-bind:title="getInfo(row, column)"
v-bind:style="getStyle(row, column)"
v-on:click="onClick(row, column)"
></td>
</template>
</tr>
</table>
<h2 v-if="theaterId && !showTimetable">Loading... <span v-if="total > 0">({{total - remaining}}/{{total}})</span></h2>
<small><a href="https://twitter.com/_klemek" target="_blank">@Klemek</a> - <a href="https://github.com/klemek/cpg-calendar" target="_blank">Github Repository</a> - 2022</small>
</main>
</body>
</html>