PageSourceSearch

https://www.newforgehouse.com/files/js/settings-shared.js

js newforgehouse.com collected 2026-10-05 19:04:30 UTC 3,569 bytes, 149 lines download raw bytes

1function setScroll(){
2  var scroll = $(window).scrollTop();
3  if(scroll > 100){
4    $('body').addClass('scrolled');
5  } else {
6    $('body').removeClass('scrolled');
7  }
8}
9
10$(document).ready(function(){
11
12  $('#slides').superslides({
13    animation: 'fade',
14    play: 5000,
15    inherit_height_from:".wr-banner",
16    inherit_width_from:".wr-banner",
17    pagination:true,
18  });
19
20
21$(".block-text .description").mCustomScrollbar({
22    theme:"minimal-dark"
23});
24
25
26  //MOBILE MENU
27  $('#toggle').click(function() {
28    $('#overlay').addClass('open');
29  });
30  $('#toggle-scroll').click(function() {
31    $('#overlay').addClass('open');
32  });
33  $('.button_container-closer').click(function() {
34    $('#overlay').removeClass('open');
35  });
36  //MOBILE MENU
37  $('#toggle2').click(function() {
38    $('#overlay').addClass('open');
39  });
40  $('#toggle-scroll').click(function() {
41    $('#overlay').addClass('open');
42  });
43  $('#overlay .button_container-closer').click(function() {
44    $('#overlay').removeClass('open');
45  });
46
47  //SUBNAV
48  $('#toggle-subnav, #overlay-inside .button_container-closer').click(function(e) {
49    e.preventDefault();
50    $('#overlay-inside').toggleClass('open');
51  });
52
53  //HIDES SUBNAV
54  if($(".overlay-inside ul li").length == 0) {
55    $(".subnav").hide();
56  };
57
58  //SEARCHBOX
59  $( ".bk-now-btn" ).click(function(e) {
60    e.preventDefault();
61    $( ".overlaytextfull" ).addClass( "open" );
62  });
63  $( ".closeover" ).click(function() {
64    $( ".overlaytextfull" ).removeClass( "open");
65  });
66
67  $(".fancybox").fancybox({
68    helpers: {
69      overlay: {
70        locked: false
71      }
72    },
73  });
74
75  var owlLogos = $('.carousel-logos').owlCarousel({
76    mouseDrag: true,
77    touchDrag: true,
78    autoplay:true,
79    autoHeight:true,
80    loop:true,
81    margin:20,
82    stagePadding:0,
83    autoplaySpeed:500,
84    dots:true,
85    responsiveClass:true,
86    navText:['<i class="zmdi zmdi-arrow-left"></i>','<i class="zmdi zmdi-arrow-right"></i>'],
87    onResized: function(event){
88      owlLogos.trigger('next.owl.carousel');
89    },
90    responsive:{
91      0:{
92        items:2,
93        nav:true
94      },
95      480:{
96        items:2,
97        nav:true
98      },
99      767:{
100        items:3,
101        nav:true,
102        margin:0
103      },
104      1200:{
105        items:5,
106        nav:true
107      }
108    }
109  });
110
111  //SUBNAV
112  $( ".subnav .foot-button" ).click(function() {
113    $( ".subnav  .footnav ul" ).slideToggle( "slow", function() {
114    // Animation complete.
115    });
116    $('.rd-more-button').find('i').toggleClass('zmdi-chevron-up zmdi-chevron-up', 400);
117    $(".subnav .foot-btn-inner").toggleClass('open');
118  });
119
120  new WOW().init();
121
122  $('.image-fill, .image-holder').imagefill();
123
124});
125
126$(window).scroll(function(){
127  setScroll();
128});
129
130//SMOOTHSCROLL
131$(function() {
132  $('a[href*=#]:not([href=#])').click(function() {
133    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
134      var target = $(this.hash);
135      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
136      if (target.length) {
137        $('html,body').animate({
138          scrollTop: target.offset().top
139        }, 1000);
140        return false;
141      }
142    }
143  });
144});
145
146
147// $(document).ready(function(){
148// $('.na-searchbox__header').append('<p style="text-transform: none;color: #333;margin-top:8px;font-size:14px;margin-bottom: -17px;">Due to Covid-19 restrictions, we are only offering two night stays breaks on:<br><span style="text-transform: none;font-size: 14px;">TUESDAY & WEDNESDAY or FRIDAY & SATURDAY.</p>');
149// });

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.