$(document).ready(function(){ /* Display 100% Irish & Delivery Links in Top Bar */ if($(window).width() >= 1024){ $('
FREE Shipping included with this product!
').insertAfter('#product_price'); /* Edit Order Text on Checkout Page */ $(function(){ if (window.location.pathname == "/confirm-order/" || window.location.pathname == "/confirm-order" || window.location.pathname == "/confirm-order.html") { /* Edit Basket Summary */ $('#checkout_customer > p:last-of-type').html('If you wish to change your order details then why not continue shopping or edit your basket. To complete your order click on the PayPal button below where you can choose to pay with Visa, Mastercard or through your PayPal account.'); } }); /* Scroll to Top */ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); /* Copyright Date */ var months = ['January','February','March','April','May','June','July', 'August','September','October','November','December']; var tomorrow = new Date(); tomorrow.setTime(tomorrow.getTime() + (1000*3600*24)); document.getElementById("spandate").innerHTML = tomorrow.getFullYear(); });