-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube.html
63 lines (56 loc) · 1.78 KB
/
youtube.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Polymer: Google Youtube — Hongkiat</title>
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="bower_components/google-youtube/google-youtube.html">
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:300,400,700'>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/monokai.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script>
<style>
html {
background-color: #fafafa;
}
pre {
white-space: pre;
text-align: left;
font-size: 14px;
}
pre code {
padding: 15px !important;
}
.youtube {
display: inline-block;
margin-right: auto;
margin-left: auto;
}
.demo-code {
margin-top: 30px;
}
.demo-content {
padding-bottom: 80px;
}
</style>
</head>
<body>
<header class="demo-header cf">
<h1>Google Polymer: Youtube</h1>
<a href="http://www.hongkiat.com/blog/">Go to the Article</a>
</header>
<div class="demo-content cf">
<div class="demo-youtube cf">
<google-youtube video-id="TA8JprZlDYA" height="388px" width="690px" class="youtube"></google-youtube>
</div>
<div class="demo-code">
<pre>
<code><google-youtube video-id="TA8JprZlDYA" height="388px" width="690px" class="youtube"></google-youtube></code>
</pre>
</div>
</div>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>