forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinteractive_img_rtl.amp.html
284 lines (280 loc) Β· 13.6 KB
/
interactive_img_rtl.amp.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html β‘ lang="en" dir="rtl">
<head>
<meta charset="utf-8">
<title>Interactive Image Right to Left Story</title>
<link rel="canonical" href="interactive_img_rtl.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<style amp-custom>
body {
font-family: 'Poppins', sans-serif;
}
amp-story-interactive-img-poll, amp-story-interactive-img-quiz {
justify-self: center;
}
h1 {
color: #005af0;
font-size: 40px;
margin-bottom: 40px;
text-align: center;
}
.container {
background-color: white;
border-radius: 60px;
padding: 40px;
}
.label {
background-color: white;
border-radius: 10px;
margin-right: 10%;
opacity: 0.8;
padding: 10px;
position: relative;
text-align: center;
top: 80%;
width: 80%;
}
</style>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
<script async custom-element="amp-story-interactive" src="https://cdn.ampproject.org/v0/amp-story-interactive-0.1.js"></script>
</head>
<body>
<amp-story
standalone
title="RTL Story"
publisher="AMP Story testing"
publisher-logo-src="example.com/logo.png"
poster-portrait-src="example.com/poster.jpg"
>
<amp-story-page id="cover">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<div class="container">
<h1>RTL Image Quizzes and Polls</h1>
<p>
This story contains pages of image quizzes and image polls with
the text direction set to right-to-left
</p>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="4-options">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>4 option quiz</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-quiz
id="4-options-quiz"
prompt-text="Which of these structures is oldest?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1565475783696-96001eff1b45?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Statue of Liberty"
option-1-correct
option-1-confetti="π"
option-2-image="https://images.unsplash.com/photo-1610312278520-bcc893a3ff1d?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1460&q=80"
option-2-image-alt="Golden Gate Bridge"
option-3-image="https://images.unsplash.com/photo-1585436588477-340db86fc852?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2804&q=80"
option-3-image-alt="Christ the Redeemer"
option-4-image="https://images.unsplash.com/photo-1543349689-9a4d426bee8e?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1382&q=80"
option-4-image-alt="Eiffel Tower"
>
</amp-story-interactive-img-quiz>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="3-options">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>3 option quiz</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-quiz
id="3-options-quiz"
prompt-text="Which of these structures is oldest?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1565475783696-96001eff1b45?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Statue of Liberty"
option-1-correct
option-1-confetti="π"
option-2-image="https://images.unsplash.com/photo-1610312278520-bcc893a3ff1d?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1460&q=80"
option-2-image-alt="Golden Gate Bridge"
option-3-image="https://images.unsplash.com/photo-1585436588477-340db86fc852?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2804&q=80"
option-3-image-alt="Christ the Redeemer"
>
</amp-story-interactive-img-quiz>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="2-options">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>2 option quiz</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-quiz
id="2-options-quiz"
prompt-text="Which of these structures is oldest?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1565475783696-96001eff1b45?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Statue of Liberty"
option-1-correct
option-1-confetti="π"
option-2-image="https://images.unsplash.com/photo-1610312278520-bcc893a3ff1d?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1460&q=80"
option-2-image-alt="Golden Gate Bridge"
>
</amp-story-interactive-img-quiz>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="4-options-poll-page">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>4 option poll</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-poll
id="4-options-poll"
prompt-text="Which of these places would you travel to first?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1577416026704-0fe2d48a0f20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Lake Tahoe"
option-1-confetti="π²"
option-2-image="https://images.unsplash.com/photo-1506970845246-18f21d533b20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-2-image-alt="Hong Kong"
option-2-confetti="ποΈ"
option-3-image="https://images.unsplash.com/photo-1559494007-9f5847c49d94?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
option-3-image-alt="Hawaii"
option-3-confetti="ποΈ"
option-4-image="https://images.unsplash.com/photo-1516302350523-4c29d47b89e0?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-4-image-alt="Grand Canyon"
option-4-confetti="ποΈ"
>
</amp-story-interactive-img-poll>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="3-options-poll-page">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>3 option poll</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-poll
id="3-options-poll"
prompt-text="Which of these places would you travel to first?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1577416026704-0fe2d48a0f20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Lake Tahoe"
option-1-confetti="π²"
option-2-image="https://images.unsplash.com/photo-1506970845246-18f21d533b20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-2-image-alt="Hong Kong"
option-2-confetti="ποΈ"
option-3-image="https://images.unsplash.com/photo-1559494007-9f5847c49d94?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
option-3-image-alt="Hawaii"
option-3-confetti="ποΈ"
>
</amp-story-interactive-img-poll>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="2-options-poll-page">
<amp-story-grid-layer template="fill">
<amp-img
src="https://images.unsplash.com/photo-1513002749550-c59d786b8e6c?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=668&q=80"
layout="responsive"
width="467"
height="702"
>
</amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="fill">
<div>
<div class="label">
<p>2 option poll</p>
</div>
</div>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<amp-story-interactive-img-poll
id="2-options-poll"
prompt-text="Which of these places would you travel to first?"
endpoint="https://webstoriesinteractivity-beta.web.app/api/v1"
option-1-image="https://images.unsplash.com/photo-1577416026704-0fe2d48a0f20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-1-image-alt="Lake Tahoe"
option-1-confetti="π²"
option-2-image="https://images.unsplash.com/photo-1506970845246-18f21d533b20?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"
option-2-image-alt="Hong Kong"
option-2-confetti="ποΈ"
>
</amp-story-interactive-img-poll>
</amp-story-grid-layer>
</amp-story-page>
</amp-story>
</body>
</html>