-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdemo.html
74 lines (62 loc) · 2.24 KB
/
demo.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>twilio-client Demo</title>
<script src="../platform/platform.js"></script>
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/slide-from-right.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="stylesheet" href="demo.css" shim-shadowdom>
</head>
<body unresolved fullbleed>
<template is="auto-binding" id="t">
<core-scaffold id="scaffold">
<nav>
<core-toolbar>
<span>Twilio Client</span>
</core-toolbar>
<core-menu id="menu">
<template repeat="{{page, i in pages}}">
<paper-item icon="label{{route != page.hash ? '-outline' : ''}}"
label="{{page.name}}">
<a href="{{page.url}}"></a>
</paper-item>
</template>
</core-menu>
</nav>
<core-toolbar tool flex>
<div flex>Demo Selector</div>
</core-toolbar>
<div layout horizontal center-center fit>
<core-animated-pages>
<section layout vertical center-center>
<h3>Twilio-Client Demo Application</h3>
<div>
<p>Please select a demo application from the left hand side menu.</p>
<p>On mobile, you can swipe to open the menu.</p>
</div>
<p>View on github: <a href="https://github.com/domderen/twilio-client">https://github.com/domderen/twilio-client</a></p>
</section>
</core-animated-pages>
</div>
</core-scaffold>
</template>
<script>
(function () {
"use strict";
var template = document.querySelector('#t');
template.pages = [
{name: 'Incoming call', url: 'bic-demo.html'},
{name: 'Outgoing call', url: 'boc-demo.html'},
{name: 'Browser to Browser', url: 'b2b-demo.html'},
{name: 'Promise demo', url: 'promise-demo.html'}
];
})();
</script>
</body>
</html>