1"use strict"; 2jQuery(document).ready(function($){ 3 4 var topHeader = 0; 5 6 if( $('.single').find('#top-header').length > 0 ){ 7 topHeader = parseFloat( $('#top-header').innerHeight() ); 8 } 9 10 var mainHeader = parseFloat( $('#main-header').innerHeight() ); 11 12 var totalHeight = 0; 13 14 if( $('body').hasClass('el-single-template') ){ 15 if( $('.el-single-post-template-classic.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').length > 0 ){ 16 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 17 $('.el-single-post-template-classic.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').css('padding-top', totalHeight); 18 } 19 20 if( $('.el-single-post-template-classic.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').length > 0 ){ 21 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 22 $('.el-single-post-template-classic.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').css('padding-top', totalHeight); 23 } 24 25 if( $('.el-single-post-template-prime.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-author:first-child').length > 0 ){ 26 totalHeight = ( topHeader + mainHeader ) + 15 + 'px'; 27 $('.el-single-post-template-prime.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-author:first-child').css('padding-top', totalHeight); 28 } 29 30 if( $('.el-single-post-template-prime.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').length > 0 ){ 31 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 32 $('.el-single-post-template-prime.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').css('padding-top', totalHeight); 33 } 34 35 if( $('.el-single-post-template-stellar.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-template-stellar:first-child .el-single-top-code').length > 0 ){ 36 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 37 $('.el-single-post-template-stellar.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-template-stellar:first-child .el-single-top-code').css('padding-top', totalHeight); 38 } 39 40 if( $('.el-single-post-template-lush.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').length > 0 ){ 41 totalHeight = ( topHeader + mainHeader ) + 'px'; 42 $('.el-single-post-template-lush.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').css('padding-top', totalHeight); 43 } 44 45 if( $('.el-single-post-template-lush.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').length > 0 ){ 46 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 47 $('.el-single-post-template-lush.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-single-top-code').css('padding-top', totalHeight); 48 } 49 50 if( $('.el-single-post-template-valiant.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').length > 0 ){ 51 totalHeight = ( topHeader + mainHeader ) + 50 + 'px'; 52 $('.el-single-post-template-valiant.et_pb_pagebuilder_layout.et_full_width_page.et_transparent_nav').find('.container > .el-post-header:first-child').css('padding-top', totalHeight); 53 } 54 } 55 56 /* Play & Pause for Video */ 57 $('body').on('click', '.et_main_video_container.el-no-background .mejs-overlay-play .mejs-overlay-button', function(){ 58 $(this).parents('.et_main_video_container').css('z-index', '9999'); 59 $(this).parents('.et_main_video_container').find('.mejs-controls').css('z-index', '2'); 60 }); 61 62 $('body').on('click', '.et_main_video_container.el-no-background .mejs-overlay-play', function(){ 63 if( $(this).parents('.et_main_video_container').find('.mejs-playpause-button.mejs-pause').length > 0 ){ 64 $(this).parents('.et_main_video_container').css('z-index', '1'); 65 $(this).parents('.et_main_video_container').find('.mejs-controls').css('z-index', '0'); 66 }else{ 67 $(this).parents('.et_main_video_container').css('z-index', '9999'); 68 } 69 }); 70 71 $('body').on('click', '.et_main_video_container.el-no-background .mejs-mediaelement', function(){ 72 if( $(this).parents('.et_main_video_container').find('.mejs-playpause-button.mejs-pause').length > 0 ){ 73 $(this).parents('.et_main_video_container').css('z-index', '1'); 74 $(this).parents('.et_main_video_container').find('.mejs-controls').css('z-index', '0'); 75 }else{ 76 $(this).parents('.et_main_video_container').css('z-index', '9999'); 77 } 78 }); 79 80 $('body').on('click', '.et_main_video_container.el-no-background .mejs-playpause-button.mejs-play', function(){ 81 $(this).parents('.et_main_video_container').css('z-index', '9999'); 82 }); 83 84 $('body').on('click', '.et_main_video_container.el-no-background .mejs-playpause-button.mejs-pause', function(){ 85 $(this).parents('.et_main_video_container').css('z-index', '1'); 86 $(this).parents('.et_main_video_container').find('.mejs-controls').css('z-index', '0'); 87 }); 88 89 $('body').on('click', '.et_main_video_container.el-no-background .fluid-width-video-wrapper iframe', function(){ 90 $(this).parents('.et_main_video_container').css('z-index', '9999'); 91 }); 92 93 94 /* Play & Pause for Audio */ 95 $('body').on('click', '.el-post-header .et_audio_content .mejs-playpause-button.mejs-play', function(){ 96 $(this).parents('.et_audio_content').css('z-index', '9999'); 97 }); 98 99 $('body').on('click', '.el-post-header .et_audio_content .mejs-playpause-button.mejs-pause', function(){ 100 $(this).parents('.et_audio_content').css('z-index', '1'); 101 }); 102 103 104 /* Enable/Disable Audio/Video player option */
105 $('.el-post-header .el-player-button').on('click', function(){ 106 var $this = $(this); 107 $this.parent('div').addClass('active-player'); 108 $this.fadeOut('300', function(){ 109 if( $this.next('div').find('.el-player-close-button').length <= 0 ){ 110 $this.next('div').prepend('<span class="el-player-close-button"></span>'); 111 } 112 $this.next('div').fadeIn('fast'); 113 }); 114 }); 115 116 $('body').on('click', '.el-post-header .el-player-close-button', function(){ 117 $(this).parent('div').fadeOut('300', function(){ 118 if( $(this).parent('div').find('video').length > 0 || $(this).parent('div').find('audio').length > 0 ){ 119 $('.mejs-playpause-button.mejs-pause').trigger('click'); 120 } 121 if( $(this).parent('div').find('iframe').length > 0 ){ 122 var src = $(this).parent('div').find('iframe').attr('src'); 123 $(this).parent('div').find('iframe').attr('src', ''); 124 $(this).parent('div').find('iframe').attr('src', src); 125 } 126 $(this).parents('.el-post-header').find('.active-player').removeClass('active-player'); 127 $(this).parents('.el-post-header').find('.el-player-button').fadeIn('fast'); 128 }); 129 }); 130});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.