PageSourceSearch

https://www.gottman.com/wp-content/themes/hello-elementor-child/js/custom-scripts.js?ver=1.0.0

js gottman.com collected 2026-09-24 08:27:53 UTC 1,990 bytes, 63 lines download raw bytes

1jQuery( document ).ready( function($) {
2    $( '.dgwt-wcas-search-form' ).on('submit', function(e) {
3        e.preventDefault();
4        var url = $('.dgwt-wcas-search-input').val();
5        var encodedURL = encodeURIComponent(url);
6        url = window.location.hostname + '/?s=' + encodedURL
7        $(location).attr('href', 'https://' + url);
8    });
9
10    $('.site-navigation-toggle').click(function() {
11        var visibility = $(this).attr('aria-hidden'),
12            value      = visibility == 'true' ? 'false' : 'true';
13        $(this).attr('aria-hidden', value);
14        $('.site-navigation-custom').toggleClass('show');
15    });
16
17    $('.menu__item--has-children').each(function() {
18        $(this).append('<span class="menu--links-arrow"></span>');
19    });
20
21    $(document).on('click', '.menu--links-arrow', function() {
22        // console.log("Clicked menu-links-arrow");
23        $(this).prev().toggleClass('active');
24    });
25/*This is to trigger gifted course */
26	var availableCourses = $('.available-courses');
27	if (availableCourses.length) {
28		var giftedCourses = availableCourses.find('a[data-gifted="true"]');
29
30		giftedCourses.on('click', function (e) {
31			var $this = $(this);
32
33			if ($this.attr('data-gifted') === 'true') {
34				var newTab = window.open($this.attr('href'), '_blank');
35				$.ajax({
36					type: "POST",
37					url: launch_gifted_course_action.ajax_url,
38					data: {
39						action: 'launch_gifted_course',
40						nonce: $this.data('nonce'),
41						oder_id: $this.data('order-id'),
42						course_id: $this.data('course-id'),
43						original_customer_id: $this.data('original-customer-id'),
44					},
45					beforeSend: function () {
46						$this.addClass('ajax-link--loading');
47					},
48					success: function (response) {
49						if (response.success) {
50							$this.removeClass('ajax-link--loading');
51							$this.attr('data-gifted', 'false');
52							newTab.focus();
53						}
54					},
55					error: function (response) {
56					}
57				});
58				e.preventDefault();
59			}
60		});
61	}
62
63});

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.