1var currentWindowWidth = $(window).width(); 2var $ = jQuery.noConflict(); 3 4$(function() { 5 var sidebarBlock = $(".sidebar-isi"); 6 $(window).scroll(function() { 7 var headerheight = $("#header").innerHeight(); 8 var scroll = $(window).scrollTop(); 9 if (scroll > headerheight) { 10 sidebarBlock.addClass("skicky"); 11 } else { 12 sidebarBlock.removeClass("skicky"); 13 } 14 }); 15}); 16 17$('.sidebar-right-content').mCustomScrollbar({}); 18 19$(document).ready(function() { 20 if ($(window).width() < 1024) { 21 $('body').removeClass('desktopSidebar'); 22 $('body').addClass('mobileSidebar'); 23 24 } else { 25 $('body').addClass('desktopSidebar'); 26 $('body').removeClass('mobileSidebar'); 27 28 } 29 30 $('.mobileSidebar .mobile-isi-popup-link').attr('style', 'display: block'); 31 $(".mobileSidebar .mobile-isi-popup-link-close").attr('style', 'display: none'); 32 $(".mobileSidebar .mobile-isi-stick .sidebar-isi").removeClass("mobileBottom"); 33 $('.mobile-isi-popup-link').on('click', function() { 34 35 $(".mobileSidebar .mobile-isi-stick #block-pfe-template-base-isi-block").attr('style', 'height: 100% !important'); 36 $(".mobileSidebar .mobile-isi-stick .sidebar-isi").addClass("mobileBottom"); 37 $('.mobileSidebar .mobile-isi-popup-link').attr('style', 'display: none'); 38 $(".mobileSidebar .mobile-isi-popup-link-close").attr('style', 'display: block'); 39 var rightSideHeight = $('.sidebar-isi').outerHeight() - 50; 40 var rightSidebarTitle = $('.right-sidebar-title').outerHeight(); 41 var mainrRightSidebarHeight = rightSideHeight - rightSidebarTitle; 42 $('.sidebar-right-content').attr("style", "height:" + mainrRightSidebarHeight + "px"); 43 44 }); 45 $('.mobile-isi-popup-link-close').on('click', function() { 46 47 $(".mobileSidebar .mobile-isi-stick #block-pfe-template-base-isi-block").attr('style', 'height:40% !important'); 48 $(".mobileSidebar .mobile-isi-stick .sidebar-isi").removeClass("mobileBottom"); 49 $('.mobileSidebar .mobile-isi-popup-link').attr('style', 'display: block '); 50 $(".mobileSidebar .mobile-isi-popup-link-close").attr('style', 'display: none'); 51 var rightSideHeight = $('.sidebar-isi').outerHeight() - 50; 52 var rightSidebarTitle = $('.right-sidebar-title').outerHeight(); 53 var mainrRightSidebarHeight = rightSideHeight - rightSidebarTitle; 54 $('.sidebar-right-content').attr("style", "height:" + mainrRightSidebarHeight + "px"); 55 }); 56 57 58 59 60 var rightSideHeight = $('.sidebar-isi').outerHeight() - 50; 61 var rightSidebarTitle = $('.right-sidebar-title').outerHeight(); 62 var mainrRightSidebarHeight = rightSideHeight - rightSidebarTitle; 63 $('.sidebar-right-content').attr("style", "height:" + mainrRightSidebarHeight + "px"); 64 65 66 $xa(".resize-isi-icon").on("click", function() { 67 $("#interstitial-overlay").show(); 68 $('.self-cert-interstitial').show(); 69 $('.isi-interstitial').show(); 70 }); 71 72 $xa(".collapse-resize-isi-icon").on("click", function() { 73 $("#interstitial-overlay").hide(); 74 $('.self-cert-interstitial').hide(); 75 $('.isi-interstitial').hide(); 76 }); 77 78}); 79$(window).resize(function() { 80 var rightSideHeight = $('.sidebar-isi').outerHeight() - 50; 81 var rightSidebarTitle = $('.right-sidebar-title').outerHeight(); 82 var mainrRightSidebarHeight = rightSideHeight - rightSidebarTitle; 83 $('.sidebar-right-content').attr("style", "height:" + mainrRightSidebarHeight + "px"); 84 if ($(window).width() < 1024) { 85 86 $('body').removeClass('desktopSidebar'); 87 $('body').addClass('mobileSidebar'); 88 89 } else { 90 91 $('body').addClass('desktopSidebar'); 92 $('body').removeClass('mobileSidebar'); 93 94 } 95}); 96 97$(document).ready(function() { 98 $(window).scroll(function() { 99 var stickyElementHeight = $(window).scrollTop() + $(window).height(); 100 var test = $('#footer').height(); 101 var stickyElementHeight1 = $(document).height() - test; 102 if (stickyElementHeight > stickyElementHeight1) { 103 $('.mobile-isi-stick').addClass('mobile-bottom-hide'); 104 } else { 105 $('.mobile-isi-stick').removeClass('mobile-bottom-hide'); 106 107 } 108 109 $(window).on('resize', function() { 110 var stickyElementHeight = $(window).scrollTop() + $(window).height(); 111 var test = $('#footer').height(); 112 var stickyElementHeight1 = $(document).height() - test; 113 if (stickyElementHeight > stickyElementHeight1) { 114 $('.mobile-isi-stick').addClass('mobile-bottom-hide'); 115 } else { 116 $('.mobile-isi-stick').removeClass('mobile-bottom-hide'); 117 118 } 119 }); 120 121 }); 122 123});
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.