From: Anthony Talarico Date: Mon, 18 Apr 2016 11:55:01 +0000 (-0400) Subject: removing references to localhost and localhost code for the slider X-Git-Tag: v1.0.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=dfa74cad7f60bdfe05e7b3549bb262c48b3a71c1;p=WP-Themes%2Fgaslightmedia.git removing references to localhost and localhost code for the slider --- diff --git a/footer.php b/footer.php index e69cfed..e8570c1 100644 --- a/footer.php +++ b/footer.php @@ -40,25 +40,21 @@ $(document).foundation(); $(document).ready(function () { 'use strict'; - var meta_id = "#metaslider_14"; - if (document.domain === 'localhost') { - meta_id = "#metaslider_11"; - } - meta_id.nivoSlider({ + + $("#metaslider_14").nivoSlider({ pauseOnHover:true, effect: 'slideInLeft', pauseTime: 7000, afterLoad: function (){ - // $("#metaslider_11 .nivo-caption").fadeIn(); - meta_id_caption.addClass("open"); + $("#metaslider_14 .nivo-caption").addClass("open"); }, beforeChange: function () { - meta_id_caption.removeClass("open"); - meta_id_caption.addClass("close"); + $("#metaslider_14 .nivo-caption").removeClass("open"); + $("#metaslider_14 .nivo-caption").addClass("close"); }, afterChange: function () { - meta_id_caption.removeClass("close"); - meta_id_caption.addClass("open"); + $("#metaslider_14 .nivo-caption").removeClass("close"); + $("#metaslider_14 .nivo-caption").addClass("open"); } });