Skip to content

Commit

Permalink
make sure height is set from the outset in embed code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed Aug 8, 2024
1 parent 834da39 commit 0bdcf67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/template/all-media-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"text": {
"headline": "TimelineJS Media Types",
"text": "<p>TimelineJS supports many media types. This provides a simple way to test them all. This page tests a simple image on a remote server. Also, if the Timeline was created with the <code>soundcite</code> option set to <code>true</code> then <span class='soundcite' data-url='https://soundcite.knightlab.com/media/bach-cello-suite.mp3' data-start='0' data-end='164000' data-plays='1'>this should be an active SoundCite player.</span></p>"
"text": "<p>TimelineJS supports many media types. This provides a simple way to test them all. This page tests a simple image on a remote server. Also, if the Timeline was created with the <code>soundcite</code> option set to <code>true</code> then <span class='soundcite' data-url='https://soundcite.knightlab.com/media/bach-cello-suite.mp3' data-start='0' data-end='164000' data-plays='1'>this should be an active SoundCite player.</span></p><p><a target=\"_self\" href=\"#wikipedia-images\">click to jump to Wikipedia Images</a></p>"
},
"background": {
"color": "papayawhip"
Expand Down Expand Up @@ -388,10 +388,10 @@

{
"media": {
"url": "https://en.wikipedia.org/wiki/1997_International_Tennis_Championships_%E2%80%93_Doubles",
"url": "https://fr.wikipedia.org/wiki/Bataille_de_Champigny#/media/Fichier:Champigny,_le_four_%C3%A0_chaux_(d%C3%A9tail).jpg",
"caption": "1997 International Tennis Championships - Doubles",
"credit": "Wikipedia",
"link": "https://en.wikipedia.org/wiki/1997_International_Tennis_Championships_%E2%80%93_Doubles"
"link": "https://fr.wikipedia.org/wiki/Bataille_de_Champigny#/media/Fichier:Champigny,_le_four_%C3%A0_chaux_(d%C3%A9tail).jpg"
},
"start_date": {
"year": "1920"
Expand Down Expand Up @@ -548,6 +548,7 @@
"group": "Video"
},
{
"unique_id": "wistia",
"media": {
"url": "https://lakeshore.wistia.com/medias/g2h5ddrucc",
"credit": "Wistia"
Expand All @@ -562,6 +563,7 @@
"group": "Video"
},
{
"unique_id": "wikipedia-images",
"media": {
"url": "https://de.wikipedia.org/wiki/Beryllium#/media/Datei:Beryl-Quartz-Emerald-Zambia-33mm_0885.jpg",
"credit": "Wikipedia"
Expand All @@ -576,6 +578,7 @@
"group": "Image"
},
{
"unique_id": "wikipedia-commons",
"media": {
"url": "https://commons.wikimedia.org/wiki/File:David-Bowie_Chicago_2002-08-08_photoby_Adam-Bielawski-cropped.jpg",
"credit": "Wikipedia"
Expand Down
2 changes: 1 addition & 1 deletion website/templates/_make.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ <h6>Embed</h6>
<p class="small">Copy this embed code and paste it on your site where you want your timeline to appear (just like a YouTube video). </p>
<form>
<textarea id="embed_code" rows="3" readonly="readonly" type="text" name="textplaceholder" value="" style="height:5rem;">
&lt;iframe src=&quot;https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1xuY4upIooEeszZ_lCmeNx24eSFWe0rHe9ZdqH2xqVNk&amp;font=Default&amp;lang=en&amp;initial_zoom=2&amp;height=100%&quot; width=&quot;100%&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;
&lt;iframe src=&quot;https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1xuY4upIooEeszZ_lCmeNx24eSFWe0rHe9ZdqH2xqVNk&amp;font=Default&amp;lang=en&amp;initial_zoom=2&amp;height=650&quot; width=&quot;100%&quot; height=&quot;650&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;
</textarea>
</form>
<a class="button button-complement" href="#preview-embed" id="iframe-preview-button">Preview</a>&nbsp;
Expand Down

0 comments on commit 0bdcf67

Please sign in to comment.