Signin  Pricing  Examples  Support

Libraries > script.js

script.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE https://utahhumane.org/sites/all/themes/puppies/js/script.js

Function Explorer




Libraries on utahhumane.org


jquery.once.js

jquery.colorbox-min.js

owl.carousel.min.js

colorbox_inline.js

colorbox.js

colorbox_style.js

googleanalytics.js

pets_saved.js

jquery.min.js

owlcarousel.settings.js

picturefill.min.js

picture.min.js

piwik.js

contextual.js

html5.js

respond.min.js

accordion.js

home-donation.js

pet-listing.js

script.js



Explore More


jsn_template.js

jsn_utils.js

flowplayer-3.0.6.min.js

jquery-1.2.6.min.js

script.js
				

(function ($) {

  $(function(){
    function init(){
      eventHandlers();
    }

    function eventHandlers(){
      var contactFlipper = $(".block-hsu-contact-hsu-contact");
      var mainMenu = $("header .navigation");

      var submenuClass = ".block-menu-block-1";
      var submenu = $(submenuClass);

      $("#hamburger").click(function(){
        $(this).toggleClass("open");
        $("#contact-icon").removeClass("open");
        mainMenu.toggleClass("open");
        contactFlipper.removeClass("open");
      });

      $("header .navigation .menu li .menu").parents("li").addClass("toggle");

      $("header .navigation .menu > li").click(function(){
        $(this).siblings(".toggle").removeClass("expand");
        $(this).toggleClass("expand");
      });

      $("header .navigation .menu > li a").click(function(e){
        e.stopPropagation();
      });

      $("#contact-icon").click(function(){
        $(this).toggleClass("open");
        $("#hamburger").removeClass("open");
        mainMenu.removeClass("open");
        contactFlipper.toggleClass("open");
      });

      //class on any link with an img in it
      $("a img").parents("a").addClass("img-link");


      $(".form-submit").wrap('<div class="submit-button"></div>');

      /*hijack the h2 links for submenus*/

      submenu.find("h2 a")
      .removeAttr("href")
      .click(function(){
        $(this).parents(submenuClass).toggleClass("active");
      });

    }
    init();

    // $( ".form-item-account-login-mail" ).after( "<a class=\"button\">Next</a>" );


    $('.webform-component--donation .form-radio').click(function() {
      if($('.form-radio').is(':checked')) {
        $('.webform-component--donation .form-type-radio').removeClass('selected');
        $('.webform-component--other-amount').removeClass('selected');
        $(this).parents('.form-type-radio').addClass('selected');
      }
    });
    $('#edit-submitted-donation-0-5').click(function() {
      if($('#edit-submitted-donation-0-5').is(':checked')) {
        $('.webform-component--other-amount').addClass('selected');
      }
    });


  });

  // New Sidebar nav thing.

  $(window).load(function() {
    /* prepend search icon */
    // $('.sidebar-second').prepend('');
    /* toggle nav */
    $("#pullTab").click(function(){
      $(".sidebar-second").toggleClass("open");
      $("body").toggleClass("pullTabOpen");
      $(this).toggleClass("active");
    });

    $(".donate-onetime").click(function(){
      $(".donate-tab-onetime").addClass("open");
      $(".donate-tab-recurring").removeClass("open");
      $(".donate-block-onetime").addClass("open");
      $(".donate-block-recurring").removeClass("open");
      $(".donate-tab-custom").removeClass("open");
      $(".donate-block-custom").removeClass("open");
    });
    $(".donate-recurring").click(function(){
      $(".donate-tab-onetime").removeClass("open");
      $(".donate-tab-recurring").addClass("open");
      $(".donate-block-onetime").removeClass("open");
      $(".donate-block-recurring").addClass("open");
      $(".donate-tab-custom").removeClass("open");
      $(".donate-block-custom").removeClass("open");
    });
    $(".donate-custom").click(function(){
      $(".donate-tab-onetime").removeClass("open");
      $(".donate-tab-recurring").removeClass("open");
      $(".donate-block-onetime").removeClass("open");
      $(".donate-block-recurring").removeClass("open");
      $(".donate-tab-custom").addClass("open");
      $(".donate-block-custom").addClass("open");
    });
    $(".donate-more").click(function(){
      $(".donate-block-recurring .attachment-after").addClass("open");
      $(".donate-less").removeClass('hide');
      $(".donate-more").addClass('hide');
    });
    $(".donate-less").click(function(){
      $(".donate-block-recurring .attachment-after").removeClass("open");
      $(".donate-more").removeClass('hide');
      $(".donate-less").addClass('hide');
    });


  });

// Facet API - add some classes when someone makes a change to select list.
  $(document).on('change','.facetapi-select',function(){
    $("body").toggleClass("facetactive");
    $(".page").append('<div class="facetmask"></div>');
    $(this).toggleClass("active");
  });

})(jQuery);


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z