-
Notifications
You must be signed in to change notification settings - Fork 14
/
spa.html
80 lines (69 loc) · 2.89 KB
/
spa.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>GDG Twin Cities</title>
<link rel="icon" type="image/png" href="favicon.png">
<script src="components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="spa-elements.html">
<link rel="import" href="components/core-ajax/core-ajax.html">
<link rel="stylesheet" href="styles.css" shim-shadowdom>
<base target="_blank"></base>
<style>
core-animated-pages > * {
font-size: inherit;
overflow-y: auto;
padding: 30px;
}
</style>
</head>
<body unresolved fullbleed>
<template is="auto-binding" id="t">
<!-- Route controller. -->
<flatiron-director route="{{route}}" autoHash></flatiron-director>
<!-- Keyboard nav controller. -->
<core-a11y-keys id="keys" target="{{parentElement}}"
keys="up down left right space space+shift"
on-keys-pressed="{{keyHandler}}"></core-a11y-keys>
<!-- Dynamic content controller -->
<core-ajax id="ajax" url="{{selectedPage.page.url}}" handleAs="document"
on-core-response="{{onResponse}}"></core-ajax>
<core-scaffold id="scaffold">
<nav>
<core-toolbar>
<img src="images/gdgtc.svg" style="height:64px" />
</core-toolbar>
<core-menu id="menu" valueattr="hash"
selected="{{route}}"
selectedModel="{{selectedPage}}"
on-core-select="{{menuItemSelected}}" on-click="{{ajaxLoad}}">
<template repeat="{{page, i in pages}}">
<paper-item icon="label{{route != page.hash ? '-outline' : ''}}"
label="{{page.name}}" hash="{{page.hash}}">
<a href="#{{page.hash}}">{{page.name}}</a>{{page.name}}
</paper-item>
</template>
</core-menu>
</nav>
<core-toolbar tool flex>
<div flex>{{selectedPage.page.name}}</div>
<a href="http://meetup.com/gdg-tc"><core-icon-button src="images/meetup.png" ></core-icon-button></a>
<a href="http://google.com/+gdgtc"><core-icon-button src="images/gplus-red-signin_Short_base_44dp.png" ></core-icon-button></a>
<a href="https://www.youtube.com/user/GDGTC" target="_new" style="color:#eee"><core-icon-button icon="av:video-youtube"></core-icon-button></a>
</core-toolbar>
<div layout horizontal center-center fit>
<core-animated-pages id="pages" selected="{{route}}" valueattr="hash"
transitions="slide-from-right">
<template repeat="{{page, i in pages}}">
<section hash="{{page.hash}}" layout vertical center-center>
<div style="max-width:100%;">Loading...</div>
</section>
</template>
</core-animated-pages>
</div>
</core-scaffold>
</template>
<script src="spa-app-ajax.js"></script>
</body>
</html>