Skip to content

Instantly share code, notes, and snippets.

@max-kk
Created April 30, 2021 17:58
Show Gist options
  • Save max-kk/635c819322623327026d9ff70330a99f to your computer and use it in GitHub Desktop.
Save max-kk/635c819322623327026d9ff70330a99f to your computer and use it in GitHub Desktop.
Change link depends on a Contest ID
if ( fv.contest_id === "2" ) {
jQuery(".fv_lightbox").each(function(K, el) {
el.href = "https://boxtelontspant.nl/single-photo/" + fv_lightbox.dataset.id + "/";
el.classList.remove("fv_lightbox");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment