PageSourceSearch

https://rabbithole.technology/wp-content/themes/techieblog/js/custom.js?ver=1.0

js rabbithole.technology collected 2026-10-10 02:14:30 UTC 2,330 bytes, 83 lines download raw bytes

1jQuery(window).on('load', function () {
2    
3	/* ------------------------------------------------------------------
4
5	 BLOG ISOTOPE MASONRY
6
7	 ------------------------------------------------------------------ */
8	jQuery('#blog-isotope-masonry').isotope({
9		itemSelector: 'article'
10	});
11
12});
13
14jQuery(document).ready(function () {
15
16	/* ------------------------------------------------------------------
17
18	 CONTACT FORM
19
20	 ------------------------------------------------------------------ */
21	jQuery("#ajax-contact-form").on("submit", function () {
22		var str = jQuery(this).serialize();
23                
24		jQuery.ajax({
25			type: "post",
26			url: techieblog.ajax_url,
27			data: str,
28			success: function (msg) {
29				// Message Sent
30				if (msg == 'OK') {
31					result = '<div class="alert alert-success">' + techieblog.contact_success_message + '</div>';
32					//option to hide the form fields after sending
33					jQuery("#ajax-contact-form").hide();
34				} else {
35					result = msg;
36				}
37                                
38				jQuery('#note').html(result);
39			}
40		});
41                
42		return false;
43	});
44
45	/* ------------------------------------------------------------------
46
47	 MAIN NAV
48
49	 ------------------------------------------------------------------ */
50	jQuery("#nav-toggle").on("click", function (e) {
51                // add active class
52                jQuery(this).toggleClass("active");
53                
54                // pull down the menu
55                jQuery('.pull').slideToggle();
56                
57                
58		e.preventDefault();
59		return false;
60	});
61        
62	/* ------------------------------------------------------------------
63
64	 SMOOTH SCROLL
65
66	 ------------------------------------------------------------------ */
67	jQuery('a[href*=#]:not([href=#])').on("click", function () {
68		if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname && this.hash !== '#respond') {
69			var target = jQuery(this.hash);
70
71			target = target.length ? target : jQuery('[name=' + this.hash.slice(1) + ']');
72
73			if (target.length) {
74				jQuery('html,body').animate({
75					scrollTop: target.offset().top
76				}, 1000);
77                                
78				return false;
79			}
80		}
81	});
82
83});

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.