October 2017
Intermediate to advanced
370 pages
8h 57m
English
We're almost done. Now we just need to create the AMP page. This page will be very similar to the previous amp-iframe examples we've seen already. All we need to do is point the src URL of the amp-iframe at the geomap.html file:
<amp-iframe height="400" layout="fixed-height" sandbox="allow-scripts allow-same-origin" allowfullscreen src="https://alt.theampbook.com/ch9/geomap.html"> <amp-img layout="fill" src="img/placeholder.png" placeholder></amp-img></amp-iframe>
Note the domain we've used here: alt.theampbook.com. This should match the domain that you set up for your iframe content.
If you open up the example in your browser, it should look like the following image (full-screen version at ...
Read now
Unlock full access