PageSourceSearch

https://www.ohm-games.com/js/agency.js

js ohm-games.com collected 2026-09-24 13:59:35 UTC 1,770 bytes, 67 lines download raw bytes

1// Smooth scrolling via animate()
2$(document).ready(function(){
3  $("a").on('click', function(event) {
4    if (this.hash && window.location.pathname == "/") {
5      event.preventDefault();
6      var hash = this.hash;
7      $('html, body').animate({
8        scrollTop: $(hash).offset().top
9      }, 800, function(){
10        window.location.hash = hash;
11      });
12    }
13  });
14});
15
16// Navigation change on scroll
17$(document).ready(function(){
18  var maxOffset = 450;
19  $(window).scroll(function() {
20    if ($(window).scrollTop() >= maxOffset) {
21      $('.navbar-default').addClass('navbar-shrink');
22    }
23    else {
24      $('.navbar-default').removeClass('navbar-shrink');
25    }
26  });
27});
28
29$(document).ready(function(){
30  var maxOffset = 450;
31  if ($(window).scrollTop() >= maxOffset) {
32    $('.navbar-default').addClass('navbar-shrink');
33  }
34  else {
35    $('.navbar-default').removeClass('navbar-shrink');
36  }
37});
38
39// Highlight the top nav as scrolling occurs
40$('body').scrollspy({
41    target: '.navbar-fixed-top'
42})
43
44// Closes the Responsive Menu on Menu Item Click
45$('.navbar-collapse ul li a').click(function() {
46    $('.navbar-toggle:visible').click();
47});
48
49// Async contact form
50$('form[id=contactForm]').submit(function(){
51  $.post($(this).attr('action'), $(this).serialize(), function(data, textStatus, jqXHR){
52    $('form[id=contactForm] #success').hide();
53    $('form[id=contactForm] #error').hide();
54    if (jqXHR.status == 200) {
55      $('form[id=contactForm] #success').show();
56    }}, 'json').fail(function(){
57      $('form[id=contactForm] #success').hide();
58      $('form[id=contactForm] #error').hide();
59      $('form[id=contactForm] #error').show();
60  });
61  return false;
62});
63
64// Contact form validation
65$.validate({
66  modules : 'html5, toggleDisabled'
67});

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.