PageSourceSearch

https://coralridgeyachtclub.com/html/js/scroll.js

js coralridgeyachtclub.com collected 2026-10-04 19:13:48 UTC 3,590 bytes, 120 lines download raw bytes

1var scrollNo;
2var originalWidth = jQuery_ns_connect("body").width();
3
4function disableScroll() {
5
6	if (jQuery_ns_connect('.ui-dialog') !== undefined) {
7		jQuery_ns_connect('.ui-dialog').scrollTop(0);
8	}
9
10	if (navigator.userAgent.match(/webOS/i)
11			|| navigator.userAgent.match(/iPhone/i)
12			|| navigator.userAgent.match(/iPod/i)
13			|| navigator.userAgent.match(/BlackBerry/i)
14			|| navigator.userAgent.match(/Windows Phone/i)
15			|| navigator.userAgent.match(/iPad/i)
16			|| navigator.userAgent.match(/Tablet/i)) {
17		scrollNo = jQuery_ns_connect(window).scrollTop();
18		jQuery_ns_connect("body").css("position", "fixed");
19		var changedWidth = jQuery_ns_connect("body").width();
20		if (originalWidth !== changedWidth) {
21			jQuery_ns_connect("body").css("width", originalWidth);
22		}
23		jQuery_ns_connect(".aui .headerBg").css("z-index", "0");
24		if (!(navigator.userAgent.match(/iPad/i))) {
25			jQuery_ns_connect(".phone-logo-img").css("display", "none");
26		}
27	}
28}
29
30function enableScroll() {
31
32	if (navigator.userAgent.match(/Android/i)
33			|| navigator.userAgent.match(/webOS/i)
34			|| navigator.userAgent.match(/iPhone/i)
35			|| navigator.userAgent.match(/iPad/i)
36			|| navigator.userAgent.match(/iPod/i)
37			|| navigator.userAgent.match(/BlackBerry/i)
38			|| navigator.userAgent.match(/Windows Phone/i)
39			|| navigator.userAgent.match(/Tablet/i)) {
40		jQuery_ns_connect("body").css("position", "relative");
41		jQuery_ns_connect(window).scrollTop(scrollNo);
42		jQuery_ns_connect(".aui .headerBg").css("z-index", "2");
43		if (!(navigator.userAgent.match(/iPad/i))) {
44			jQuery_ns_connect(".phone-logo-img").css("display", "block");
45		}
46	}
47}
48
49function scrollToPopupMessage() {
50	var elem = getElement('popupMessage');
51	scrollToElement(elem, 0, 1000);
52}
53
54function scrollToMsg() {
55	var elem = getElement('message');
56	scrollToElementBody(elem, 120, 500);
57}
58
59function scrollToElement(element) {
60
61	scrollToElement(element, 0);
62}
63
64function scrollToElement(element, marginTop) {
65
66	scrollToElement(element, marginTop, 500);
67}
68
69function scrollToElement(element, marginTop, transitionSpeedInMilliseconds) {
70
71	if (typeof marginTop == 'undefined') {
72		marginTop = 0;
73	}
74
75	if (typeof transitionSpeedInMilliseconds == 'undefined') {
76		transitionSpeedInMilliseconds = 500;
77	}
78
79	if (element && jQuery_ns_connect(element).offset() !== undefined) {
80		jQuery_ns_connect('html, body').animate({
81			scrollTop : jQuery_ns_connect(element).offset().top - marginTop
82		}, transitionSpeedInMilliseconds);
83	}
84}
85
86function scrollToElementBody(element, marginTop, transitionSpeedInMilliseconds) {
87
88	if (element && jQuery_ns_connect(element).offset() !== undefined) {
89		jQuery_ns_connect('html, body').animate({
90			scrollTop : jQuery_ns_connect(element).offset().top - marginTop
91		}, transitionSpeedInMilliseconds);
92	}
93}
94
95function scrollToElementWithId(id) {
96	jQuery_ns_connect('html, body').animate({
97		scrollTop : jQuery_ns_connect('[id$=' + id + ']').offset().top - 100
98	}, 2000);
99}
100
101function hideElementInDevices(element) {
102
103	if (/Android|webOS|iPhone|iPad|iPod|Tablet|BlackBerry/i
104			.test(navigator.userAgent)
105			|| (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i
106					.test(navigator.platform))) {
107		jQuery_ns_connect(element).css("display", "none");
108	}
109}
110
111function hideScroller() {
112	jQuery_ns_connect('html').css("overflow", "hidden");
113	jQuery_ns_connect('html').on("mousewheel", function(event) {
114		event.stopPropagation();
115	});
116}
117
118function showScroller() {
119	jQuery_ns_connect('html').css("overflow", "scroll");
120}

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.