From 3e0a460a4be64b690531688eb14b6f6677aa61cd Mon Sep 17 00:00:00 2001 From: Andrew Hughey Date: Fri, 7 Mar 2014 21:07:28 -0500 Subject: [PATCH] Update index.html Adding support for Getty Images --- index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/index.html b/index.html index d7cc160..436f811 100644 --- a/index.html +++ b/index.html @@ -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 = ""; + + $("#gettyembedCode").html( embedLabel + ""); + $("#gettypreview").html( previewLabel + previewPrefix + gettyPreviewURL + previewSuffix ); + } function createVineEmbed(){ @@ -221,6 +231,7 @@
  • Dailymotion
  • Google Maps
  • Instagram
  • +
  • Getty Images
  • Vine
  • Generic iFrame
  • More
  • @@ -335,6 +346,24 @@ +
    + +
    +
    + +
    + + Embed +
    +
    +
    + +
    + +
    + +
    +