PageSourceSearch

https://www.jlrac.com/js/functions.js

js jlrac.com collected 2026-10-06 15:28:32 UTC 3,377 bytes, 116 lines download raw bytes

1$(document).ready(function () {
2	'use strict';
3	$("[data-toggle='tooltip']").tooltip();
4	$("[data-toggle='popover']").popover();
5	$("[data-toggle='datepicker']").datepicker({
6		format: 'mm/dd/yyyy',
7	}).on('changeDate', function(ev){
8		$(this).datepicker('hide');
9		
10		if ($('#appointmentDate').val().length>0) {
11			setTimeout(function(){ 
12				$('#form-group-appointmentDate').removeClass("has-error");
13			}, 500);
14		}
15	});
16	$('.clockpicker').clockpicker({
17		donetext: 'Done',
18		afterDone: function() {
19			if ($('#appointmentTime').val().length>0) {
20				setTimeout(function(){ 
21					$('#form-group-appointmentTime').removeClass("has-error");
22				}, 500);
23			}
24		}
25	});
26	$("#toTop").scrollToTop();
27	$("#print-01").find("button").on("click", function () {
28		$("#print-01").print({
29			addGlobalStyles: !0,
30			stylesheet: "",
31			rejectWindow: !0,
32			noPrintSelector: ".no-print",
33			iframe: !0,
34			append: null,
35			prepend: null
36		});
37	});
38	$("#print-02").find("button").on("click", function () {
39		$("#print-02").print({
40			addGlobalStyles: !0,
41			stylesheet: "",
42			rejectWindow: !0,
43			noPrintSelector: ".no-print",
44			iframe: !0,
45			append: null,
46			prepend: null
47		});
48	});
49	$("#print-03").find("button").on("click", function () {
50		$("#print-03").print({
51			addGlobalStyles: !0,
52			stylesheet: "",
53			rejectWindow: !0,
54			noPrintSelector: ".no-print",
55			iframe: !0,
56			append: null,
57			prepend: null
58		});
59	});
60	$("#print-04").find("button").on("click", function () {
61		$("#print-04").print({
62			addGlobalStyles: !0,
63			stylesheet: "",
64			rejectWindow: !0,
65			noPrintSelector: ".no-print",
66			iframe: !0,
67			append: null,
68			prepend: null
69		});
70	});
71	$(document).on('click', '.yamm .dropdown-menu', function (e) {
72		e.stopPropagation();
73	});
74	$(".navbar").find("a").each(function () {
75		//this.href == window.location && $(this).addClass("active")
76		var locationString = window.location.toString();
77		if (this.href === locationString) {
78			$(this).addClass("active");
79		}
80	});
81	$(".active").parents(".navbar li").addClass("active-top");
82	$(".navbar>li").addClass("menu-top");
83	$("#side-menu").find("a").each(function () {
84		//this.href == window.location && $(this).addClass("sub-active")
85		var locationString = window.location.toString();
86		if (this.href === locationString) {
87			$(this).addClass("active");
88		}
89	});
90	$('.dropdown').on('show.bs.dropdown', function () {
91		$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
92	});
93	$('.dropdown').on('hide.bs.dropdown', function () {
94		$(this).find('.dropdown-menu').first().stop(true, true).slideUp();
95	});
96	var slideshows = $('.cycle-slideshow').on('cycle-next cycle-prev', function (e, opts) {
97		/* advance the other slideshow */
98		slideshows.not(this).cycle('goto', opts.currSlide);
99	});
100	$('#cycle-gallery-2 .cycle-slide').click(function () {
101		var index = $('#cycle-gallery-2').data('cycle.API').getSlideIndex(this);
102		slideshows.cycle('goto', index);
103	});
104	/* Announcement Close */
105	$( "#announcement-bar-close" ).click(function() {
106		$( ".announcement-bar-wrapper" ).slideUp( "slow", function() {
107		});
108	});
109	/* fix for admin menu */
110	$("#mp-admin-menu").parents("body").addClass("admin");
111
112	/* Prevent modal video from playing after close */
113	$( ".modal-video" ).on( 'hidden.bs.modal', function ( e ) {
114		$( ".modal-video iframe" ).attr( "src", $( ".modal-video iframe" ).attr( "src" ) );
115	} );
116});

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.