This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Function creates a list of DOM elements according to the given array. | |
Clicking on an item will remove it from DOM as well as from array as it uses splice. | |
*/ | |
(function(){ | |
"use strict"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document, $) { | |
"use strict" | |
// Just for testing purposes this function triggers on all links | |
$('a').on('click', function(event) { | |
event.preventDefault(); | |
// remove all existing modalboxes in DOM |