Skip to content

Instantly share code, notes, and snippets.

ahoffmeyer / arrayToDOM.js
Created Sep 8, 2016
Render DOM elements by array values and removing specific elements by clicking on them
View arrayToDOM.js
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.
"use strict";
ahoffmeyer / Modal.js
Last active Mar 30, 2016
TYPO3 Modalbox with single content or full page selection using jQuery
View Modal.js
(function(window, document, $) {
"use strict"
// Just for testing purposes this function triggers on all links
$('a').on('click', function(event) {
// remove all existing modalboxes in DOM