-
Notifications
You must be signed in to change notification settings - Fork 2
/
page.html
76 lines (71 loc) · 2.38 KB
/
page.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
<head>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/img/wafflehaus.ico" />
<link rel="apple-touch-icon" href="/img/wafflehaus.png" />
<link href="https://fonts.googleapis.com/css?family=Inconsolata|Noto+Sans:400,700&subset=cyrillic,cyrillic-ext,devanagari,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<title>Blackboard</title>
<script type="text/javascript">
function onGoogleApiLoad() {
window.gapi.load('auth', {callback: function() {
console.log('Google Auth API Loaded');
}});
window.gapi.load('picker', {callback: function() {
console.log('Google Picker API Loaded');
}});
}
</script>
<script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onGoogleApiLoad"></script>
</head>
<body>
{{#if currentUser}}
<div id="bb-body" class="{{#if boringMode}}boring{{/if}}">
{{> page }}
</div>
{{> header_confirmmodal}}
{{else}}
<div class="modal show">
{{> header_nickmodal_contents}}
</div>
{{/if}}
<!-- very important section that needs to be on every page -->
<div class="celebration {{#unless celebrationNeeded}}hidden{{/unless}}">
<div class="inner">
<img src="/img/CLIPLY_372109170_FREE_FIREWORKS_1000.gif" title="Celebration" class="img-responsive center-block"/>
</div>
</div>
</body>
<template name="page">
<div id="bb-content" class="container-fluid {{#if compactHeader}}compactHeader{{/if}}">
<!-- DEBUGGING: currentPage: "{{currentPage}}" -->
<!-- common header -->
{{> header }}
<!-- page contents -->
{{#if currentPageEquals "blackboard"}}
{{> blackboard }}
{{/if}}
{{#if currentPageEquals "round"}}
{{> puzzle }}
{{/if}}
{{#if currentPageEquals "puzzle"}}
{{> puzzle }}
{{/if}}
{{#if currentPageEquals "chat"}}
{{> chat }}
{{/if}}
{{#if currentPageEquals "oplog"}}
{{> oplog }}
{{/if}}
{{#if currentPageEquals "callins"}}
{{> callins }}
{{/if}}
{{#if currentPageEquals "quip"}}
{{> quip }}
{{/if}}
{{#if currentPageEquals "facts"}}
{{> facts }}
{{/if}}
<!-- add footer here? -->
</div>
</template>