1jQuery(document).ready(function($) { 2 $('.single-post .rank-math-breadcrumb span.last').prev('span.separator').remove(); 3 $('.single-post .rank-math-breadcrumb span.last').remove(); 4}); 5 6jQuery(document).ready(function ($) { 7 $('.custom-dropdown-trigger').on('click', function (e) { 8 e.stopPropagation(); 9 const $dropdown = $(this).next('.custom-dropdown-content'); 10 $('.custom-dropdown-content').not($dropdown).removeClass('show-dropdown'); 11 $dropdown.toggleClass('show-dropdown'); 12 }); 13 14 $(document).on('click', function () { 15 $('.custom-dropdown-content').removeClass('show-dropdown'); 16 }); 17 18 $('.custom-dropdown-content').on('click', function (e) { 19 e.stopPropagation(); 20 }); 21 22 $('.custom-dropdown-option').on('click', function () { 23 const selectedText = $(this).find('.league-name span').text(); 24 25 $(this) 26 .closest('.sl-leagues') 27 .find('.custom-dropdown-trigger span') 28 .text(selectedText); 29 30 $('.custom-dropdown-option').removeClass('active'); 31 $(this).addClass('active'); 32 33 $(this).closest('.custom-dropdown-content').removeClass('show-dropdown'); 34 }); 35}); 36 37 38jQuery(document).ready(function ($) { 39 $('.navbar-toggler').on('click', function (e) { 40 e.preventDefault(); 41 const $this = $(this); 42 const targetMenu = $($this.data('open')); 43 const isOpen = $this.attr('aria-expanded') === 'true'; 44 45 $this.attr('aria-expanded', !isOpen); 46 targetMenu.toggleClass('show'); 47 48 $this.toggleClass('collapsed'); 49 50 const bgClass = $this.data('bg'); 51 if (bgClass) { 52 if (targetMenu.hasClass('show')) { 53 $('body').append(`<div class="${bgClass}"></div>`); 54 } else { 55 $(`.${bgClass}`).remove(); 56 } 57 } 58 }); 59 60 $(document).on('click', function (e) { 61 if (!$(e.target).closest('.navbar-toggler, .navbar-collapse').length) { 62 $('.navbar-collapse').removeClass('show'); 63 $('.navbar-toggler').attr('aria-expanded', 'false').addClass('collapsed'); 64 $('.main-menu-overlay').remove(); 65 } 66 }); 67}); 68 69jQuery(function($){ 70 $("#datepicker").datepicker({ 71 dateFormat: "dd/mm/yy" 72 }); 73}); 74 75jQuery(document).ready(function($) { 76 $('.as-match__play').on('click', function() { 77 $('.as-popup').addClass('as-popup__show'); 78 }); 79 80 $('.as-popup__schedule-close-btn').on('click', function() { 81 $('.as-popup').removeClass('as-popup__show'); 82 }); 83}); 84 85jQuery(document).ready(function($) { 86 $('.as-match__item .as-scoreboard .as-score-vs.as-score-vs__28').on('click', function(e) { 87 e.preventDefault(); 88 89 $('.as-popup.as-popup__result.as-popup__result-90phut') 90 .addClass('as-popup__show'); 91 }); 92 93 $('.as-popup.as-popup__result.as-popup__result-90phut .as-popup__result-close-btn').on('click', function(e) { 94 e.preventDefault(); 95 96 $('.as-popup.as-popup__result.as-popup__result-90phut') 97 .removeClass('as-popup__show'); 98 }); 99}); 100 101jQuery(document).ready(function($) { 102 103 $(document).on('click', function(e) { 104 const $popup = $('.as-popup.as-popup__show'); 105 if ( 106 $popup.length && 107 ($(e.target).is('.as-popup__mask-overlay') || $(e.target).closest('.as-popup__mask-overlay').length) 108 ) { 109 $popup.removeClass('as-popup__show'); 110 } 111 }); 112}); 113 114 115 116jQuery(document).ready(function($) { 117 $('.sports-bars .nav-link').on('click', function(e) { 118 e.preventDefault(); 119 120 const target = $(this).attr('data-target'); 121 122 $('.sports-bars .nav-link').removeClass('active').attr('aria-selected', 'false'); 123 $('.sports-bars .btn-livescore').removeClass('active'); 124 $('.panel__body > .tab-content > .tab-pane').removeClass('active show'); 125 126 $(this).addClass('active').attr('aria-selected', 'true'); 127 $(target).addClass('active show'); 128 }); 129 130 $('.sports-bars .btn-livescore').on('click', function(e) { 131 e.preventDefault(); 132 133 const target = '#livescore'; 134 const $firstTab = $('.sports-bars .nav-link').first(); 135 const firstTarget = $firstTab.attr('data-target'); 136 const isActive = $(this).hasClass('active'); 137 138 if (isActive) { 139 $(this).removeClass('active'); 140 $('.panel__body > .tab-content > .tab-pane').removeClass('active show'); 141 $firstTab.addClass('active').attr('aria-selected', 'true'); 142 $(firstTarget).addClass('active show'); 143 } else { 144 $('.sports-bars .nav-link').removeClass('active').attr('aria-selected', 'false'); 145 $('.panel__body > .tab-content > .tab-pane').removeClass('active show'); 146 147 $(this).addClass('active'); 148 $(target).addClass('active show'); 149 } 150 }); 151}); 152 153 154jQuery(document).ready(function($) { 155 $('.match-popup .hpu-nav-tabs .nav-link').on('click', function(e) { 156 e.preventDefault(); 157 158 const $popup = $(this).closest('.match-popup'); 159 const target = $(this).data('target'); 160 161 $popup.find('.hpu-nav-tabs .nav-link').removeClass('active'); 162 $popup.find('.hpu-stats-home .tab-content .tab-pane').removeClass('active show'); 163 164 $(this).addClass('active'); 165 $popup.find(target).addClass('active show'); 166 }); 167}); 168jQuery(document).ready(function($) { 169 $('.matches__item').each(function() { 170 const $item = $(this); 171 const $popup = $item.find('.match-popup'); 172 const $statics = $popup.find('.statics-popup'); 173 const $incident = $popup.find('.incident-popup'); 174 const $triggers = $item.find('.gmd-elapsed-time, .gmd-mid_score.grid-match__status'); 175 176 function showPopup(type) { 177 $popup.removeClass('d-none'); 178 const isScore = type === 'score'; 179 $statics.toggleClass('d-none', isScore); 180 $incident.toggleClass('d-none', !isScore); 181 $popup.toggleClass('statistic-section', !isScore); 182 } 183 184 function hidePopup() { 185 $popup.addClass('d-none statistic-section'); 186 $statics.removeClass('d-none'); 187 $incident.addClass('d-none'); 188 } 189 190 // Hover và o trigger -> hiá»n popup 191 $triggers.on('mouseenter', function() { 192 const type = $(this).hasClass('gmd-mid_score') ? 'score' : 'time'; 193 showPopup(type); 194 }); 195 196 // Rá»i khá»i toà n bá» item (bao gá»m popup) ->
196 ẩn popup 197 $item.on('mouseleave', hidePopup); 198 }); 199}); 200 201 202jQuery(document).ready(function($) { 203 $('.as-tabs-icon__item').on('click', function() { 204 const target = $(this).data('target'); 205 $(this).addClass('as-active').siblings().removeClass('as-active'); 206 $('.as-popup__result-tab-content > div').addClass('d-none'); 207 $(target).removeClass('d-none'); 208 }); 209}); 210 211jQuery(document).ready(function($) { 212 $('.play_main_right .as-tabs-icon__item').on('click', function() { 213 const target = $(this).data('target'); 214 $(this).addClass('as-active').siblings().removeClass('as-active'); 215 $('.as-match-detail-content > div').addClass('d-none'); 216 $(target).removeClass('d-none'); 217 }); 218}); 219 220jQuery(document).ready(function($) { 221 $('#team_detail-app .as-item-right .as-tabs-icon__item').on('click', function() { 222 const target = $(this).data('target'); 223 $(this).addClass('as-active').siblings().removeClass('as-active'); 224 $('.as-item-right .as-w-100 > div').addClass('d-none'); 225 $(target).removeClass('d-none'); 226 }); 227}); 228 229jQuery(document).ready(function($) { 230 $('#team_detail-app .as-team-detail-wrapper__head .as-tabs-icon__item').on('click', function() { 231 const target = $(this).data('target'); 232 $(this).addClass('as-active').siblings().removeClass('as-active'); 233 $('.as-w-100 > .body-tab').addClass('d-none'); 234 $(target).removeClass('d-none'); 235 }); 236}); 237 238jQuery(document).ready(function($) { 239 $('.play_main_right .as-tabs-icon__item').on('click', function() { 240 const target = $(this).data('target'); 241 $(this).addClass('as-active').siblings().removeClass('as-active'); 242 $('.as-match-detail-content > div').addClass('d-none'); 243 $(target).removeClass('d-none'); 244 }); 245}); 246 247jQuery(document).ready(function($) { 248 $('.play_main_left .nav-tabs .nav-link').on('click', function() { 249 const target = $(this).data('target'); 250 $(this).addClass('as-active').siblings().removeClass('as-active'); 251 $('.play_main_left > div').addClass('d-none'); 252 $(target).removeClass('d-none'); 253 }); 254}); 255 256jQuery(document).ready(function ($) { 257 $('#tools ul li').not('.filterLi').not('.filterLi2').on('click', function (e) { 258 e.preventDefault(); 259 $('#tools ul li').removeClass('on'); 260 $(this).addClass('on'); 261 }); 262 263 $('#tools ul li.filterLi, #tools p.setit').on('click', function (e) { 264 e.preventDefault(); 265 266 var targetSelector = $(this).data('target'); 267 if (!targetSelector) return; 268 269 $('#Layer1 > div').removeClass('visible-on'); 270 271 $(targetSelector).addClass('visible-on'); 272 }); 273 274 $('#Layer1').on('click', '.sotit .cc a', function (e) { 275 e.preventDefault(); 276 $(this).closest('div').removeClass('visible-on'); 277 }); 278 279 $('#tools ul li.filterLi2').on('click', function (e) { 280 e.preventDefault(); 281 282 const $leagueLink = $(this).find('#li_league'); 283 const $timeLink = $(this).find('#li_time'); 284 285 $leagueLink.toggle(); 286 $timeLink.toggle(); 287 288 const $leagueTable = $('#theo-giai-dau'); 289 const $timeTable = $('#theo-thoi-gian'); 290 291 $leagueTable.toggleClass('d-none'); 292 $timeTable.toggleClass('d-none'); 293 }); 294}); 295 296jQuery(document).ready(function ($) { 297 298 $(document).on("click", ".video-tv", function (e) { 299 e.preventDefault(); 300 $(".tvLink").addClass("d-block"); 301 }); 302 303 $(document).on("click", ".tvLink .cc", function (e) { 304 e.preventDefault(); 305 $(".tvLink").removeClass("d-block"); 306 }); 307 308}); 309 310jQuery(document).ready(function ($) { 311 $('.live-mb ul.tools li').not('.filter-sw').on('click', function (e) { 312 e.preventDefault(); 313 $('.live-mb ul.tools li').removeClass('on'); 314 $(this).addClass('on'); 315 }); 316 317}); 318 319jQuery(document).ready(function ($) { 320 $('.live-mb ul.tools li').not('.filter-sw').on('click', function (e) { 321 e.preventDefault(); 322 $('.live-mb ul.tools li').removeClass('on'); 323 $(this).addClass('on'); 324 }); 325 326 $(document).on('click', '.live-mb ul.tools li.bytime, .live-mb ul.tools li.bylea', function (e) { 327 e.preventDefault(); 328 329 const $byTime = $('.live-mb ul.tools li.bytime'); 330 const $byLea = $('.live-mb ul.tools li.bylea'); 331 const $thoiGian = $('.live-mb .matchList .thoi-gian'); 332 const $giaiDau = $('.live-mb .matchList .giai-dau'); 333 334 $byTime.toggleClass('d-none'); 335 $byLea.toggleClass('d-none'); 336 337 $thoiGian.toggleClass('d-none'); 338 $giaiDau.toggleClass('d-none'); 339 }); 340}); 341 342jQuery(document).ready(function ($) { 343 $(document).on('click', '.mb_videoTvLink .video-tv', function (e) { 344 e.preventDefault(); 345 $('#bfFilterPop').removeClass('d-none'); 346 $('#bfFilterPop #settingPop.video-live').removeClass('d-none'); 347 }); 348 349 $(document).on('click', '.t-gdau, .t-qgia', function (e) { 350 e.preventDefault(); 351 $('#bfFilterPop').removeClass('d-none'); 352 $('#bfFilterPop #settingPop.match-filter').removeClass('d-none'); 353 354 if ($(this).hasClass('t-gdau')) { 355 $('#btnLeague').trigger('click'); 356 } else if ($(this).hasClass('t-qgia')) { 357 $('#btnCountry').trigger('click'); 358 } 359 }); 360 361 $(document).on('click', '#bfFilterPop #settingPop.match-filter .HTabs .tab', function (e) { 362 e.preventDefault(); 363 364 const tabId = $(this).attr('id'); 365 366 $('#bfFilterPop #settingPop.match-filter .HTabs .tab').removeClass('on'); 367 $(this).addClass('on'); 368 369 $('#bfFilterPop #settingPop.match-filter .dbList > ul').addClass('d-none'); 370 371 if (tabId === 'btnLeague') { 372 $('#leaFilter_list').removeClass('d-none'); 373 } else if (tabId === 'btnCountry') { 374 $('#countryFilter_list').removeClass('d-none'); 375 } else if (tabId === 'btnGoalOdds') { 376 $('#oddsFilter_list').removeClass('d-none'); 377 } 378 }); 379 380 $(document).on('click', '#settingPop .close_b, #popMask', function (e) { 381 e.preventDefault(); 382 $('#bfFilterPop').addClass('d-none'); 383 $('#bfFilterPop #settingPop').addClass('d-none'); 384 }); 385 386}); 387 388jQuery(document).ready(function($) { 389 $('#team_detail-app .as-standing__top .as-menu').on('click', function() { 390 $(this).toggleClass('as-active'); 391 $('#team_detail-app .as-parent-standing .as-standing') 392 .toggleClass('as-show-full'); 393 }); 394}); 395 396jQuery(document).ready(function($) { 397 $('.as-button-filter').on('click', function() { 398 $(this).toggleClass('as-active'); 399 }); 400}); 401
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.