PageSourceSearch

https://lawyersniagara.com/scripts/pageSelector.js

js lawyersniagara.com collected 2026-10-06 13:14:28 UTC 3,015 bytes, 84 lines download raw bytes

1$(window).load(function(){
2	$(".nav-bar li a").click(function(){
3		var thisPage = $(this).attr("href").replace("#!", "");
4			$(".parent div ul").slideUp(800);
5
6			if(thisPage == "#"){
7				//Submenu show-hide
8					if($(this).parent().hasClass("parent")){
9								$(this).parent().children(".flyout").slideDown(300);
10					}
11				return false;
12			}
13			else{
14				$("li").removeClass("selected");
15				$("li").removeClass("active");
16				if($(this).parent().parent().parent().hasClass("parent")){
17					$(this).parent().parent().parent().addClass("selected");
18					$(this).parent().addClass("active");
19					$(this).parent().parent().slideUp(400);
20					$(".navigationWrapper").slideUp(400);
21				}
22				else{
23					$(this).parent().addClass("selected");
24				}
25			}
26			var thisDialerID = $(this).attr("dialerID");
27			$('.pageContent').slideUp(500, function(){
28				$(this).load(thisPage+".php?id="+thisDialerID, function(data) {
29					$(this).slideDown(0, function(){
30						var h1Height = parseInt($("h1.mainHeader").height());
31						var h1FontSize = parseInt($("h1.mainHeader").css("font-size"));
32						var lineCount = h1Height/h1FontSize; 
33						while(h1Height/h1FontSize >= 2 && h1FontSize > 25){
34							h1Height = parseInt($("h1.mainHeader").height());
35								$("h1.mainHeader").css("font-size", parseInt($("h1.mainHeader").css("font-size"))-1);
36							h1FontSize = parseInt($("h1.mainHeader").css("font-size"));
37							h1Height = parseInt($("h1.mainHeader").height());
38						}
39						if(window.Touch){
40											$("span[itemprop='telephone']").each(function(){
41												var oldContent = $(this).html();
42												var tel = oldContent.replaceAll(".", "");
43												if (tel.charAt(0) !== '1') {tel = '+1'+tel};
44												$(this).html("<a href='tel:"+tel+"'>"+oldContent+"</a>");
45											});
46						}
47						$('.pageContent').css("padding-top", 0);
48						$('.pageContent a').click(function(){
49							$('.nav-bar a[href="'+$(this).attr("href")+'"]').click();
50						});
51
52					}).slideUp(0, function(){getHeightLate();}).delay(1000).slideDown(500, function(){if(thisPage=="contact-us"){initialize()}});		
53				});
54			});
55			
56		if($("ul.nav-bar").hasClass("vertical")){
57			$(".logo a").click();
58		}
59	});
60	if(window.location.hash.replace("#!", "") == "" || (window.location.hash.length == 0)){
61		$(".nav-bar li a[href$='#!home']").click();
62	}
63	else{
64		$(".nav-bar li a[href$='"+window.location.hash+"']'").click();
65	}
66	$(".has-flyout").mouseleave(function(){
67		$(this).children(".nav-bar > li .flyout").slideUp(300, function(){
68		$(".navigationWrapper").slideUp(200);
69		});
70		$(".navigationWrapper").slideUp(500);
71	});
72});
73function getHeightLate(){
74	$('.pageContent').css("padding-top", theHeight());
75}
76function theHeight(){
77	$(document).height($(window).height());
78	if($(".navigation").height() + $('.pageContent').height() > $(window).height()){
79		return $(".navigation").height()+20;
80	}
81	else{
82		return ((($(document).height() - $(".navigation").height() - $('.pageContent').height())/2)+$(".navigation").height());
83	}
84}

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.