'; upload_by[1] = 'Difasilitasi oleh Youtube.COM'; video[2] = ''; upload_by[2] = 'Difasilitasi oleh Youtube.COM'; video[3] = ''; upload_by[3] = 'Difasilitasi oleh Youtube.COM'; video[4] = ''; upload_by[4] = 'Difasilitasi oleh Youtube.COM'; video[5] = ''; upload_by[5] = 'Difasilitasi oleh Youtube.COM'; video[6] = ''; upload_by[6] = 'Difasilitasi oleh Youtube.COM'; function showVideo(idx) { $('.video-wrapper').html(video[idx]); $('.tx-upload-by').text(upload_by[idx]); $('.content-slider > ul > li').attr('class', ''); $('#vid' + idx).attr('class', 'selected'); if ($('.video-wrapper iframe').attr('width') > wWidth) { newWidth = wWidth; newHeight = Math.floor(newWidth * videoHeight / videoWidth); $('.video-wrapper iframe').attr('width', newWidth + 'px'); $('.video-wrapper iframe').attr('height', newHeight + 'px'); } } jQuery(function($) { $('.toggle-list > .toggle-touch').click(function () { $(this).siblings('ul').slideUp(); $(this).next('ul').slideToggle(); }); wWidth = $(window).width(); //retrieve current window width wHeight = $(window).height(); //retrieve current window height if ($('.video-wrapper iframe').attr('width') > wWidth) { newWidth = wWidth; newHeight = Math.floor(newWidth * videoHeight / videoWidth); $('.video-wrapper iframe').attr('width', newWidth + 'px'); $('.video-wrapper iframe').attr('height', newHeight + 'px'); } var sliderWidth = $('.content-slider').width(); var contentWidth = $('.content-slider > ul').width(); var contentSlider = $('.content-slider > ul'); var itemWidth = $('.content-slider > ul > li'); var move = ($('.content-slider > ul > li').width() + 4) * 2; $('.nav-left').click(function () { if (contentWidth > sliderWidth) { if (contentSlider.position().left < 0 && !contentSlider.is(":animated")) { contentSlider.animate({ left: '+=' + move + 'px' }); } } }); $('.nav-right').click(function () { if (contentWidth > sliderWidth) { if (contentSlider.position().left > (sliderWidth - contentWidth) && !contentSlider.is(":animated")) { contentSlider.animate({ left: '-=' + move + 'px' }); } } }); $('.nav-btn-collapse').click(function () { $('#nav-search').hide(); $('#nav-menu').slideToggle(); });$('.nav-search-collapse').click(function () { $('#nav-menu').hide(); $('#nav-search').slideToggle(); }); }); jQuery(window).load(function() { $('.skiptranslate > iframe').css('z-index', '0'); $('body').css('top', '0'); }); /*]]>*/