1// jQuery(document).ready(function(){ 2// jQuery(".modal-link-add a").addClass('modal-link'); 3// jQuery("#watch-now").addClass('modal-link'); 4// jQuery('a.elementor-post__thumbnail__link.modal-link').prepend('<img id="playb" src="/wp-content/uploads/2020/01/playb.png" />') 5// jQuery('.uael-post__thumbnail a').prepend('<img id="playb" src="/wp-content/uploads/2020/01/playb.png" />') 6 7 8 9 10 11// }); 12 13 14// jQuery(document).ready(function(){ 15 16// jQuery("body").on("click", ".modal-link", function(e) { 17// jQuery("body").addClass('overflowhidden'); 18// if ( jQuery(".modal-wrapper").hasClass("show")) { 19 20// jQuery("body").addClass('overflowhidden'); 21 22 23// }else { 24// jQuery("body").removeClass('overflowhidden'); 25// } 26 27// }); 28 29 30 31// }); 32 33 34 35 36 37 38 39 40jQuery(document).ready(function(){ 41jQuery(window).scroll(function() { 42 var scroll = jQuery(window).scrollTop(); 43 44 if (scroll >= 50) { 45 jQuery('.header1').addClass("scrol-header"); 46 } else { 47 jQuery('.header1').removeClass('scrol-header'); 48 } 49}); 50 51}); 52 53 54 55jQuery(document).ready(function(){ 56 57jQuery(function ($) { 58 $('.elementor-widget-nav-menu ul').each(function () { 59 let level = $(this).parents('ul').length; 60 $(this).addClass('level-' + level); 61 }); 62}); 63 64 65}); 66 67 68 69 70 71 72 73 74 75 76 77 78jQuery(function ($) { 79 80 const $tabsWidget = $('.con-course-s-desc-mob-tab'); 81 82 if (!$tabsWidget.length) return; 83 84 $tabsWidget.each(function () { 85 86 const $widget = $(this); 87 const $tabsNav = $widget.find('.e-n-tabs-heading'); 88 const $tabs = $tabsNav.find('.e-n-tab-title'); 89 90 if (!$tabs.length) return; 91 92 // Create select 93 const $select = $('<select class="e-n-tabs-select"></select>'); 94 95 $tabs.each(function (index) { 96 const $tab = $(this); 97 const text = $tab.find('.e-n-tab-title-text').text().trim(); 98 const isActive = $tab.attr('aria-selected') === 'true'; 99 100 const $option = $('<option></option>') 101 .val(index) 102 .text(text); 103 104 if (isActive) { 105 $option.prop('selected', true); 106 } 107 108 $select.append($option); 109 }); 110 111 // Insert select before tabs 112 $tabsNav.before($select); 113 114 // On select change â click tab 115 $select.on('change', function () { 116 const index = $(this).val(); 117 $tabs.eq(index).trigger('click'); 118 }); 119 120 // On tab click â sync select 121 $tabs.on('click', function () { 122 const index = $tabs.index(this); 123 $select.val(index); 124 }); 125 126 }); 127 128}); 129 130 131 132 133 134 135 136 137 138jQuery(function ($) { 139 140 const $menu = $('#menu-course-information'); 141 142 if (!$menu.length) return; 143 144 const $items = $menu.find('li'); 145 146 if (!$items.length) return; 147 148 // Create select 149 const $select = $('<select class="menu-select"></select>'); 150 151 $items.each(function (index) { 152 const $li = $(this); 153 const $link = $li.find('a'); 154 const text = $link.text().trim(); 155 const url = $link.attr('href'); 156 const isActive = $li.hasClass('current-menu-item'); 157 158 const $option = $('<option></option>') 159 .val(url) 160 .text(text); 161 162 if (isActive) { 163 $option.prop('selected', true); 164 } 165 166 $select.append($option); 167 }); 168 169 // Insert select before menu 170 $menu.before($select); 171 172 // On select change â go to page 173 $select.on('change', function () { 174 const url = $(this).val(); 175 if (url) { 176 window.location.href = url; 177 } 178 }); 179 180}); 181 182 183 184
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.