Skip to content

Instantly share code, notes, and snippets.

@ahoffmeyer
ahoffmeyer / arrayToDOM.js
Created September 8, 2016 09:37
Render DOM elements by array values and removing specific elements by clicking on them
/*
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";
@ahoffmeyer
ahoffmeyer / Modal.js
Last active March 30, 2016 14:47
TYPO3 Modalbox with single content or full page selection using jQuery
(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