Problem when applying Pop up Jquery on e-commerce platform

3

I'm working with an e-commerce platform, in this case the integrated store. I have access to include html to customize, but the code is enabled for all pages of the site, is there anything I can do to make it just in the home under the current conditions that I am?

$(document).ready(function() {

    var maskHeight = $(document).height();
    var maskWidth = $(window).width();

    $('#mask').css({'width':maskWidth,'height':maskHeight});

    $('#mask').fadeIn(1000);  
    $('#mask').fadeTo("slow",0.8);

    //Get the window height and width
    var winH = $(window).height();
    var winW = $(window).width();

    $('#dialog2').css('top',  winH/2-$('#dialog2').height()/2);
    $('#dialog2').css('left', winW/2-$('#dialog2').width()/2);

    $('#dialog2').fadeIn(2000); 

  $('.window .close').click(function (e) {
    e.preventDefault();

    $('#mask').hide();
    $('.window').hide();
  });   

  $('#mask').click(function () {
    $(this).hide();
    $('.window').hide();
  });     

});
    
asked by anonymous 24.02.2015 / 20:27

1 answer

-1

Well the problem was solved without needing to change something, I managed to put this pop up just in the home through the platform.

Thank you

    
24.02.2015 / 21:41