forked from podlove/podlove-subscribe-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
220 lines (187 loc) · 10.2 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
<style>
body {
font-family: 'Roboto';
font-weight: 300;
color: #444;
height: 100%;
margin: 0 auto;
padding-top: 25px;
text-align: center;
width: 60%;
}
h1,h2,h3 {
margin: 1.5em auto 0.5em auto;
}
button {
text-transform: uppercase;
}
body.dark {
background: #444;
color: #fff;
}
body .darktoggle {
color: #444;
}
body .lighttoggle {
color: #fff;
display: none;
}
body.dark .darktoggle {
display: none;
}
body.dark .lighttoggle {
display: block;
}
hr {
border: none;
border-top: 1px solid #ccc;
margin: 40px -100px 30px;
}
.podlove-subscribe-button-iframe {
margin: 0 auto 25px;
}
.feed-form input {
font-size: 18px;
height: 30px;
width: 100%;
}
.feed-form button {
background-color: #75ad91;
border: 1px solid #456757;
border-radius: 2px;
color: #fff;
font-size: 18px;
height: 40px;
text-shadow: 0 1px 0 rgba(0, 0, 1, .08);
width: 110px;
}
.feed-form button:disabled {
background-color: rgb(200, 200, 200);
border-color: rgb(240, 240, 240);
color: rgb(240, 240, 240);
}
.feed-form .success {
background-color: #75ad91;
border: 1px solid #456757;
border-radius: 2px;
color: #fff;
display: none;
padding: 10px 0;
text-shadow: 0 1px 0 rgba(0, 0, 1, .08);
}
.auto-size {
margin: 0 auto;
width: 300px;
}
@media (max-width: 500px) {
body,
.auto-size {
width: 100%;
}
}
</style>
<script src="http://zeptojs.com/zepto.min.js"></script>
</head>
<body>
<script>
window.podcastData = {
"title": "Newz of the World",
"subtitle": "Tim and Mark talk about the Newz™",
"description": "Newz of the World is a weekly show about world news. Mark Fonseca Rendeiro and Tim Pritlove come together to present interesting reports and discuss their aspects and possible consequences. Newz of the world wants to be an alternative window to the common media flow and cherry picks interesting developments for you.",
"cover": "http://meta.metaebene.me/media/newz/newz-logo-600x600.jpg",
"feeds": [
{
"type": "audio",
"format": "mp3",
"url": "http://newz-of-the-world.com/feed/mp3",
"variant": "high"
},
{
"type": "audio",
"format": "aac",
"url": "http://newz-of-the-world.com/feed/m4a",
"variant": "high",
"directory-url-itunes": "https://itunes.apple.com/de/podcast/newz-of-the-world/id492588543"
},
{
"type": "audio",
"format": "ogg",
"url": "http://newz-of-the-world.com/feed/ogg",
"variant": "high"
},
{
"type": "audio",
"format": "opus",
"url": "http://newz-of-the-world.com/feed/opus",
"variant": "high"
}
]
}
</script>
<h1>Podlove Subscribe Button</h1>
<p>All three formats (rectangle, square and cover) are available in three different styles: filled (default), outline, frameless. In addition there are three available sizes: small, medium (default) and big. All sizes may be combined with the value auto to adapt the button width to the available space. (Note: Does not work with square format!)</p>
<h2>Rectangle Format (default)</h2>
<h3>Small</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="en" data-size="small" data-json-data="podcastData" ></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="en" data-size="small" data-json-data="podcastData" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="en" data-size="small" data-json-data="podcastData" data-style="frameless"></script>
<h3>Medium</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" ></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-style="frameless"></script>
<h3>Big</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" ></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-style="frameless"></script>
<h3>Auto</h3>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" ></script>
</div>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" data-style="outline"></script>
</div>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" data-style="frameless"></script>
</div>
<h2>Square Format</h2>
<h3>Small</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="square"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="square" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="square" data-style="frameless"></script>
<h3>Medium</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="square"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="square" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="square" data-style="frameless"></script>
<h3>Big</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="square"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="square" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="square" data-style="frameless"></script>
<h2>Cover Format</h2>
<h3>Small</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="cover"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="cover" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="small" data-json-data="podcastData" data-format="cover" data-style="frameless"></script>
<h3>Medium</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="cover"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="cover" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="medium" data-json-data="podcastData" data-format="cover" data-style="frameless"></script>
<h3>Big</h3>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="cover"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="cover" data-style="outline"></script>
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big" data-json-data="podcastData" data-format="cover" data-style="frameless"></script>
<h3>Auto</h3>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" data-format="cover"></script>
</div>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" data-format="cover" data-style="outline"></script>
</div>
<div class="auto-size">
<script class="podlove-subscribe-button" src="dist/javascripts/app.js" data-language="de" data-size="big auto" data-json-data="podcastData" data-format="cover" data-style="frameless"></script>
</div>
</html>