/*
* MultiYoutube on webpage
*
*
* Visit http://curiohub.blogspot.com for full source code
*/
$(window).load(function(){
(function($){
// this funtion puts video thubmnail in each Vid Div [for YouTube]
$(".yvid").each(function(){
$this = $(this);
var vid = $this.attr('vid');
$this.html('
');
});
//Below funtion embeds video onclick
$(".yvid").on('click',function(){
$this = $(this);
var vid = $this.attr('vid');
var w = $this.width(); //change video width according to parent div
var h = $this.height(); //change video height according to parent div
var vw = w?w:640;
var vh = h?h:360;
$this.html('');
});
})(jQuery);x
Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586