PageSourceSearch

https://www.littlebigtown.com/wp-content/themes/umg-grand-royal-th…/multipage/assets/js/footer.js?ver=3.5.9

js littlebigtown.com collected 2026-09-24 18:47:35 UTC 2,972 bytes, 66 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    $(document).ready(function ()
5    {
6
7      if ($('.ae-cform-modal-display-cta').length > 0 && footer_vars.show_newsletter_icon === '1'){
8          $('.ae-cform-modal-display-cta').html('<span class="fa fa-envelope" aria-hidden="true"></span>'+$('.ae-cform-modal-display-cta').html())
9      }
10      // show rollover newsletter signup button effect, but only if not already logged in.
11      var loggedInState = localStorage.getItem('aeswp_cform_mailing_lists_completed')
12      if (footer_vars.ae_alt_cta !== null && footer_vars.ae_alt_cta != "" && loggedInState !== '[1]') {
13        var loggedInState = localStorage.getItem('aeswp_cform_mailing_lists_completed')
14        var hiddenSpan = document.createElement("span")
15        hiddenSpan.setAttribute('class', 'ae-hidden-span')
16        if (footer_vars.showIcon === "true") {
17            var hiddenIconSpan = document.createElement("span")
18            hiddenIconSpan.setAttribute('class', 'fa fa-envelope')
19            hiddenSpan.appendChild(hiddenIconSpan)
20        }
21        var hiddenNode = document.createTextNode(footer_vars.ae_cta)
22        hiddenSpan.appendChild(hiddenNode)
23
24        var anchor = document.createElement("a");
25        anchor.setAttribute("class", "ae-cform-modal-display-cta");
26        anchor.setAttribute("id", "ae-cform-alt-cta");
27        var visibleSpan = document.createElement("span")
28        visibleSpan.setAttribute('class', 'ae-visible-span')
29        var node = document.createTextNode(footer_vars.ae_alt_cta);
30        visibleSpan.appendChild(node);
31        anchor.appendChild(visibleSpan);
32        anchor.appendChild(hiddenSpan);
33
34        var element = document.getElementsByClassName("ae-cform-container");
35
36        Array.from(element).forEach(function (el, index) {
37          if (index === element.length - 1) {
38            $(el).prepend(anchor);
39          }
40        });
41        $('.ae-cform-container').mouseover(function () {
42            TweenMax.to($(this).parent().find('#ae-cform-modal-display-cta-1'), 0.1, {x:'0%', opacity:0.7});
43            TweenMax.to($(this).parent().find('#ae-cform-alt-cta'), 0.2, {x:'-100%'});
44        });
45        $('.ae-cform-container').mouseout(function () {
46            TweenMax.to($(this).parent().find('#ae-cform-modal-display-cta-1'), 0.2, {x:'100%', opacity:1});
47            TweenMax.to($(this).parent().find('#ae-cform-alt-cta'), 0.2, {x:'0%'});
48        });
49
50      } else {
51        $('#ae-cform-modal-display-cta-1').css({
52           'position' : 'relative',
53           'top' : '0',
54           'left' : '0',
55           'transform' : 'none'
56        });
57      }
58
59  });
60  // Since it is not possible to accurately calculated element widths at document.ready, we use window load instead.
61  // We'll also fade in the Neswletter button after the calculation to prevent pop-in
62  window.addEventListener('load', function () {
63      $('.ae-cform-container').addClass('-is-visible');
64  });
65})(jQuery);// JavaScript Document
66

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.