Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,16 @@
$("#squarish").css( "padding-bottom", "120%" );

}

function createGettyEmbed(){
var gettyURL = $("#getty-url").val();
var gettyID = (m =gettyURL.match(new RegExp("\/embed\/(.*?)\""))) ? m[1] : void 0;
var gettyEmbedURL = "<iframe src='http://embed.gettyimages.com/embed/" + gettyID + "' frameborder='0' scrolling='no'></iframe>";
var gettyPreviewURL = "<iframe src='http://embed.gettyimages.com/embed/" + gettyID + "' frameborder='0' scrolling='no'></iframe>";

$("#gettyembedCode").html( embedLabel + "<textarea rows='12' class='codebox'>" + embedContainerCSS + embedContainerDivOpen + gettyEmbedURL + embedContainerDivClose + "</textarea>");
$("#gettypreview").html( previewLabel + previewPrefix + gettyPreviewURL + previewSuffix );
}

function createVineEmbed(){

Expand Down Expand Up @@ -221,6 +231,7 @@
<li><a href="#dailymotion" data-toggle="tab">Dailymotion</a></li>
<li><a href="#googlemaps" data-toggle="tab">Google Maps</a></li>
<li><a href="#instagram" data-toggle="tab">Instagram</a></li>
<li><a href="#getty" data-toggle="tab">Getty Images</a></li>
<li><a href="#vine" data-toggle="tab">Vine</a></li>
<li><a href="#iframe" data-toggle="tab">Generic iFrame</a></li>
<li><a href="#more" data-toggle="tab">More</a></li>
Expand Down Expand Up @@ -335,6 +346,24 @@

</div>

<div class="tab-pane fade well" id="getty">

<form>
<fieldset>
<label>Getty (iFrame embed):</label>
<div class="input-append">
<input class="span6 inputfix" id="getty-url" type="text" placeholder="<iframe src='http://embed.gettyimages.com/embed/103332457?et=kRfMYDkec02a7ULgOKh-Kw&sig=5Tv96kTzzWdwMDNV_GiSux5prTGJoebq6633nvcmugM=' width='400' height='601' frameborder='0' scrolling='no'></iframe>">
<a class="btn btn-primary" onclick="createGettyEmbed();">Embed</a>
</div>
</fieldset>
</form>

<div id="gettypreview"></div>

<div class="code" id="gettyembedCode"></div>

</div>

<div class="tab-pane fade well" id="vine">

<form>
Expand Down