/
embed-mode-2.html
60 lines (53 loc) · 2.66 KB
/
embed-mode-2.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
<!doctype html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<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-video"
src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
<title>amp-story embed mode 2 visual diff</title>
<meta name="viewport"
content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="canonical" href="./template-vertical.html">
<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>
amp-story-page {
background: black;
font-family: sans-serif;
}
.i-amphtml-story-spinner-container {
/* Hide the spinner for loading pages, since this causes flakes */
display: none;
}
h1#hello-world {
color: white;
text-align: center;
text-shadow: 3px 3px rgba(0, 0, 0, 0.5);
}
</style>
<script>
// TODO(#17108): Remove this when getMode().test is set.
AMP_TEST = true;
location.hash = "embedMode=2"
</script>
</head>
<body>
<amp-story standalone publisher="AMP Team" title="Visual Diff Test"
publisher-logo-src="https://www.ampproject.org/static/img/icons/120.png"
poster-portrait-src="https://picsum.photos/900/1600?image=981"
poster-landscape-src="https://picsum.photos/1600/900?image=981"
poster-square-src="https://picsum.photos/1600/1600?image=981">
<amp-story-page id="cover">
<amp-story-grid-layer template="fill">
<amp-video autoplay layout="fill" poster="https://picsum.photos/1600/900?image=981">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<h1 id="hello-world">Hello world!</h1>
</amp-story-grid-layer>
</amp-story-page>
</amp-story>
</body>
</html>