Hello,
After adding the JA Popup plugin to my Home page, I found that previously working jQuery was not working correctly. To debug, I created an Menu Item Alias of my Home page. Both links are given below.
https://vaithilegal.com/
https://vaithilegal.com/test
I found that the Menu button on the left of the page is working in the Alias, but not in the Home page.
On examination of the source code, the major difference was that the Home page had the following additional code. This code is not present in the alias. Please let me know what could be causing the issue and help me resolve it.
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
if(0==0)
{
var check_cookie = jQuery.cookie('the_cookie608');
if (jQuery.cookie('the_cookie608')) {
// it hasn't been twenty days yet
}
else
{
jQuery('.fancybox-effects-a').fancybox({
modal: true,
maxWidth : 750,
maxHeight : 400,
autoSize : true,
fitToView: true,
helpers: {overlay: {opacity: 0.5}}
}).trigger('click');
}
}
else
{
jQuery('.fancybox-effects-a').fancybox({
modal: true,
maxWidth : 750,
maxHeight : 400,
autoSize : true,
fitToView: true,
helpers: {overlay: {opacity: 0.5}}
}).trigger('click');
}
});
function checkButton(my_obj)
{
if(my_obj.value=='0'|| my_obj.value=='ACCEPT')
{
if(0==0)
{
jQuery.cookie('the_cookie608', 'true' );
}
window.open('https://vaithilegal.com:443/','_self');
}
else
{
window.open('http://www.google.com','_self');
}
}
</script>
Regards,
Alladi