Back to Amphtml

Example: Demo

examples/amp-script/example.amp.html

latest494 B
Original Source

Example: Demo

Insert Hello World!Long taskInsert amp-imgInsert <script>Insert \

Example: empty.js

Should be empty.

Example: #local-script

Should say "Hi there!".

Example: sandbox=""

Should be empty.

Example: sandbox="allow-forms"

Should add an input field.

Example: localStorage

getsetremoveclear

Example: Canvas

Example: amp-state

Should read "123" after tapping button below.

setState()

AMP.setState({bar: 123})
Prints AMP.getState('foo')