PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
themes
/
dwt-listing
/
assets
/
js
/* Name: YouTubePopUp Description: jQuery plugin to display YouTube or Vimeo video in PopUp, responsive and retina, easy to use. Version: 1.0.0 Plugin URL: http://wp-time.com/youtube-popup-jquery-plugin/ Written By: Qassim Hassan Twitter: @QQQHZ Websites: wp-time.com | qass.im | wp-plugins.in Dual licensed under the MIT and GPL licenses: http://www.opensource.org/licenses/mit-license.php http://www.gnu.org/licenses/gpl.html Copyright (c) 2016 - Qassim Hassan */ (function ( $ ) { $.fn.YouTubePopUp = function(options) { var YouTubePopUpOptions = $.extend({ autoplay: 1 }, options ); $(this).on('click', function (e) { var youtubeLink = $(this).attr("href"); if( youtubeLink.match(/(youtube.com)/) ){ var split_c = "v="; var split_n = 1; } if( youtubeLink.match(/(youtu.be)/) || youtubeLink.match(/(vimeo.com\/)+[0-9]/) ){ var split_c = "/"; var split_n = 3; } if( youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/) ){ var split_c = "/"; var split_n = 5; } var getYouTubeVideoID = youtubeLink.split(split_c)[split_n]; var cleanVideoID = getYouTubeVideoID.replace(/(&)+(.*)/, ""); if( youtubeLink.match(/(youtu.be)/) || youtubeLink.match(/(youtube.com)/) ){ var videoEmbedLink = "https://www.youtube.com/embed/"+cleanVideoID+"?autoplay="+YouTubePopUpOptions.autoplay+""; } if( youtubeLink.match(/(vimeo.com\/)+[0-9]/) || youtubeLink.match(/(vimeo.com\/)+[a-zA-Z]/) ){ var videoEmbedLink = "https://player.vimeo.com/video/"+cleanVideoID+"?autoplay="+YouTubePopUpOptions.autoplay+""; } $("body").append('<div class="YouTubePopUp-Wrap"><div class="YouTubePopUp-Content"><span class="YouTubePopUp-Close"></span><iframe src="'+videoEmbedLink+'" allowfullscreen></iframe></div></div>'); $(".YouTubePopUp-Wrap, .YouTubePopUp-Close").click(function(){ $(".YouTubePopUp-Wrap").addClass("YouTubePopUp-Hide").delay(515).queue(function() { $(this).remove(); }); }); e.preventDefault(); }); $(document).keyup(function(e) { if ( e.keyCode == 27 ){ $('.YouTubePopUp-Wrap, .YouTubePopUp-Close').click(); } }); }; }( jQuery ));
[+]
..
[-] profile.js
[edit]
[+]
submit-listing
[-] listing.js
[edit]
[-] typeahead.adv.js
[edit]
[-] bootstrap-imageupload.min.js
[edit]
[-] zones.json
[edit]
[+]
listing-search
[-] js.cookie.js
[edit]
[+]
map
[-] plugins.js
[edit]
[-] theia-sticky-sidebar.js
[edit]
[-] typeahead.min.js
[edit]
[-] dropzone.js
[edit]
[-] booking.min.js
[edit]
[-] custom.js
[edit]
[-] video_player.js
[edit]
[-] jquery.validate.min.js
[edit]
[-] validator.min.js
[edit]
[-] jquery.slimscroll.min.js
[edit]
[-] jquery.mb.YTPlayer.min.js
[edit]
[-] oms.min.js
[edit]
[-] jquery-confirm.js
[edit]
[-] esri-leaflet-geocoder.js
[edit]
[+]
event-search
[-] map.js
[edit]
[-] registration.js
[edit]
[-] bootstrap.min.js
[edit]
[-] search.js
[edit]