The Tubbies Collection
950ml
500ml
document.addEventListener("DOMContentLoaded", () => {
function someFunction(event){
var ul = window.location.href;
if (ul.includes("#")){
var arrul = ul.split("#");
ul = arrul[0];
}
ul = ul + "#" + event.path[2].id;
window.history.pushState('', 'New Page Title', ul);
}
document.getElementById("tubbies_950g").addEventListener("click", someFunction);
document.getElementById("tubbies_500g").addEventListener("click", someFunction);
});