PageSourceSearch

https://www.infocusoptical.com.au/wp-content/plugins/easy-sticky-sidebar/assets/js/sticky-sidebar.js?ver=1.5.4

js infocusoptical.com.au collected 2026-10-08 01:18:44 UTC 1,131 bytes, 45 lines download raw bytes

1jQuery(document).ready(function ($) {
2	var CTA_Click = [];
3
4	$('.easy-sticky-sidebar .btn-ess-close').on('click', function (e) {
5        e.stopPropagation();
6        $(this).closest('.easy-sticky-sidebar').fadeOut(200, function(){
7            $(this).remove();
8        })
9	})
10
11	var width = $(window).width();
12
13	if (width >= 767) {
14		$(window).scroll(function () {
15			var scroll = $(window).scrollTop();
16			if (scroll <= 120) {
17				return
18			}
19
20			jQuery('.easy-sticky-sidebar.sticky-cta:not(.scrolled)').each(function(){
21				if ( $(this).hasClass('shrink-disabled') ) {
22					return;
23				}
24
25				cta_id = parseInt($(this).data('id'));
26				if ( !CTA_Click.includes(cta_id) ) {
27					$(this).addClass('shrink scrolled');
28				}
29			})
30		});
31	}
32
33	$('body').on('click', '.easy-sticky-sidebar .sticky-sidebar-button:not(a)', function (e) {
34		e.preventDefault();
35
36		current_cta = $(this).closest('.easy-sticky-sidebar');
37
38		cta_id = parseInt(current_cta.data('id'));
39		if ( cta_id > 0 && !CTA_Click.includes(cta_id) ) {
40			CTA_Click.push(cta_id);
41		}
42
43		current_cta.toggleClass('shrink');
44	})
45});

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.