skip to Main Content

Simple Javascript Execution – Shopify

this should be fairly simple for those of you who understand jQuery. I am trying to get this script to run ONLY if <span class="site-header__cart-indicator "></span> is present on the loaded page. Here is the untouched jQuery code: window.setTimeout(redirectCheckout, 2000);…

VIEW QUESTION

Javascript replace function error – SEO

I have a problem with the javascript replace function and I don't succeed to resolve it. This is my code : https://jsfiddle.net/r36k20sa/1/ var tags = ['zazie', 'johnny']; tags.forEach(function(element) { content = content.replace( new RegExp("(?!<a.*?>.*?)(\b" + element + "\b)(?!.*?<\/a>)", "igm"), '<a…

VIEW QUESTION
Back To Top
Search