Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ampproject/amphtml into scaling
- Loading branch information
Showing
5 changed files
with
152 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!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-0.1.js"></script> | ||
<title>My Story</title> | ||
<meta name="viewport" | ||
content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<link rel="canonical" href="helloworld.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> | ||
body { | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
amp-story-page { | ||
background: white; | ||
} | ||
h1 { | ||
font-size: 2.875em; | ||
font-weight: normal; | ||
line-height: 1.174; | ||
text-transform: uppercase; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<amp-story standalone bookend-config-src="bookend.json"> | ||
|
||
<amp-story-page id="cover"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Cover page - manual advance</h1> | ||
<p>3 page story with a bookend at the end</p> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<amp-story-page id="page-1" auto-advance-after="3s"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Page 1 - auto advance after 3s</h1> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<amp-story-page id="page-2"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Page 2 - manual advance</h1> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
</amp-story> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<!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-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script> | ||
<script async custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-0.1.js"></script> | ||
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-0.1.js"></script> | ||
<title>My Story</title> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<link rel="canonical" href="helloworld.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> | ||
body { | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
amp-story-page { | ||
background: white; | ||
} | ||
h1 { | ||
font-size: 2.875em; | ||
font-weight: normal; | ||
line-height: 1.174; | ||
text-transform: uppercase; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<amp-story standalone bookend-config-src="bookend.json"> | ||
|
||
<amp-story-page id="cover"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Progress Bar examples with bookend</h1> | ||
<p>This is the cover page. It does not have auto-advance enabled</p> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<amp-story-page id="page-1" auto-advance-after="4s"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Auto advance page</h1> | ||
<p>This page has auto-advance enabled</p> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<amp-story-page id="page-2"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Short version of video</h1> | ||
<amp-video | ||
src="../av/ForBiggerJoyrides-short.mp4" | ||
width="720" | ||
height="405" | ||
layout="responsive" | ||
controls> | ||
</amp-video> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<amp-story-page id="page-3"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Full length video</h1> | ||
<amp-video | ||
src="../av/ForBiggerJoyrides.mp4" | ||
width="720" | ||
height="405" | ||
layout="responsive" | ||
controls> | ||
</amp-video> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
|
||
<!-- <amp-story-page id="page-4"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Audio</h1> | ||
<amp-audio src="https://storage.googleapis.com/media-session/sintel/snow-fight.mp3" | ||
artwork="https://storage.googleapis.com/media-session/sintel/artwork-512.png" | ||
title="Snow Fight" | ||
album="Jan Morgenstern" | ||
artist="Sintel" | ||
height="50" | ||
width="auto" | ||
controls> | ||
</amp-audio> | ||
</amp-story-grid-layer> | ||
</amp-story-page> --> | ||
|
||
<amp-story-page id="page-4"> | ||
<amp-story-grid-layer template="vertical"> | ||
<h1>Fourth Page</h1> | ||
<p>This is the fourth page of this story.</p> | ||
</amp-story-grid-layer> | ||
</amp-story-page> | ||
</amp-story> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters