JSFiddle - React, Tailwind, and code Playground

by Neal

JavaScript

/*
 Galleria v 1.2.3 2011-04-14
 http://galleria.aino.se

 Copyright (c) 2011, Aino
 Licensed under the MIT license.
*/
(function(e) {
    var j = this,
        m = j.document,
        A = e(m),
        w = !1,
        o = navigator.userAgent.toLowerCase(),
        B = j.location.hash.replace(/#\//, ""),
        p = function() {
            return g.TOUCH ? "touchstart" : "click"
        },
        n = function() {
            var a = 3,
                b = m.createElement("div"),
                c = b.getElementsByTagName("i");
            do b.innerHTML = "<\!--[if gt IE " + ++a + "]><i></i><![endif]--\>";
            while (c[0]);
            return a > 4 ? a : void 0
        }(),
        q = function() {
            return {
                html: m.documentElement,
                body: m.body,
                head: m.getElementsByTagName("head")[0],
                title: m.title
            }
        },
        C = function() {
            var a = [];
            e.each("data ready thumbnail loadstart loadfinish image play pause progress fullscreen_enter fullscreen_exit idle_enter idle_exit rescale lightbox_open lightbox_close lightbox_image".split(" "), function(b, c) {
                a.push(c);
                /_/.test(c) && a.push(c.replace(/_/g, ""))
            });
            return a
        }(),
        D = function(a) {
            var b;
            if (typeof a !== "object") return a;
            e.each(a, function(c, d) {
                /^[a-z]+_/.test(c) && (b = "", e.each(c.split("_"), function(a, c) {
                    b += a > 0 ? c.substr(0, 1).toUpperCase() + c.substr(1) : c
                }), a[b] = d, delete a[c])
            });
            return a
        },
        x = function(a) {
            if (e.inArray(a, C) > -1) return g[a.toUpperCase()];
            return a
        },
        r = {
            trunk: {},
            add: function(a, b, c, d) {
                d = d || !1;
                this.clear(a);
               ...