Beskrivning
<!–
(function() {
// STEPS
// generator step function
function popUpAction(el, contextData) {
let popUpcontextData = JSON.parse(el.getAttribute("datapopup"));
el.removeAttribute("href");
el.removeAttribute("target");
el.addEventListener('click', function(event) {
event.preventDefault;
window.open(contextData.href, "", "scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=0,height=0,left=-1000,top=-1000")
})
console.log(el)
}
// MAIN
//fetch all anchors with specific marker "datapopup"
var allAnchors = document.body.getElementsByTagName("a");
var popupAnchors = []
for (let i = 0; i < allAnchors.length; i++) {
let currentAnchor = allAnchors[i];
if (currentAnchor.hasAttribute("datapopup")) {
popupAnchors.push(currentAnchor)
}
}
//Aadd functionality to expected elements
for (let i = 0; i






















Recensioner
Det finns inga recensioner än.