PageSourceSearch

https://katbiggiepress.com/wp-content/plugins/mybooktable-dev3/includes/professional3/frontend.js?ver=3.3.7

js katbiggiepress.com collected 2026-10-06 20:19:03 UTC 3,536 bytes, 98 lines download raw bytes

1jQuery(document).ready(function() {
2
3	/*---------------------------------------------------------*/
4	/* Email Updates                                           */
5	/*---------------------------------------------------------*/
6
7	window.mbt_email_updates_submit = function(element) {
8		var element = jQuery(element);
9		element.find('input[type="submit"]').attr('disabled', 'disabled');
10		element.find('.mbt-email').attr('disabled', 'disabled');
11		jQuery.post(ajaxurl,
12			{
13				action: 'mbt_email_updates_submit',
14				email: element.find('.mbt-email').val(),
15				post_id: element.find('.mbt-postid').val(),
16			},
17			function(response) {
18				element.html('<div class="mbt-book-email-updates-message">'+response+'</div>');
19			}
20		);
21		return false;
22	}
23
24	/*---------------------------------------------------------*/
25	/* Email Updates MailerLite                                */
26	/*---------------------------------------------------------*/
27
28	window.mbt_email_updates_mailerlite_submit = function(element) {
29		var element = jQuery(element);
30		element.find('input[type="submit"]').attr('disabled', 'disabled');
31		element.find('.mbt-email').attr('disabled', 'disabled');
32		jQuery.post(ajaxurl,
33			{
34				action: 'mbt_email_updates_mailerlite_submit',
35				email: element.find('.mbt-email').val(),
36				post_id: element.find('.mbt-postid').val(),
37			},    
38			function(response) {
39				element.html('<div class="mbt-book-email-updates-message">'+response+'</div>');
40			}
41		);
42		return false;
43	}
44
45	
46
47	/*---------------------------------------------------------*/
48	/* Landing Page Mode                                       */
49	/*---------------------------------------------------------*/
50
51	if(jQuery('.mbt-display-mode-landingpage .mbt-book-menu').length) {
52		jQuery(window).scroll(function (event) {
53			var scroll = jQuery(window).scrollTop();
54			if(scroll == 0) {
55				jQuery('.mbt-book-menu').removeClass('mbt-book-menu-overlap');
56			} else {
57				jQuery('.mbt-book-menu').addClass('mbt-book-menu-overlap');
58			}
59		});
60
61		jQuery('.mbt-book-menu-button').click(function() {
62			jQuery('.mbt-book-menu-sections').toggleClass('mbt-book-menu-expanded');
63		});
64		jQuery(document).click(function(e) {
65			if(e.target != jQuery('.mbt-book-menu-button')[0]) {
66				jQuery('.mbt-book-menu-sections').removeClass('mbt-book-menu-expanded');
67			}
68		});
69
70		jQuery('.mbt-book-menu-sections a, .mbt-book-purchase-button').click(function() {
71			var target = jQuery(this.hash);
72			target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
73			if(target.length) {
74				jQuery('html, body').stop().animate({
75					scrollTop: target.offset().top-jQuery('.mbt-book-menu-container').height()-jQuery('#wpadminbar').height()
76				}, 1000);
77				return false;
78			}
79		});
80	}
81	/*---------------------------------------------------------*/
82	/* Beautiful Page Mode                                       */
83	/*---------------------------------------------------------*/
84	if(jQuery('.mbt-display-mode-singlecolumn').length) {
85		jQuery('.mbt-book-menu-sections a, .mbt-book-purchase-button').click(function() {
86			var target = jQuery(this.hash);
87			//console.log(target);
88			target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
89			if(target.length) {
90				jQuery('html, body').stop().animate({
91					scrollTop: jQuery(".mbt-book-purchase-section").offset().top-jQuery('#wpadminbar').height()-100
92				}, 1000);
93				return false;
94			}
95		});
96	}
97
98});

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.