JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

var mobileDetect = (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) ? true : false ;



if (!mobileDetect) {
    ! function() {
        var s, i, c, a, o = {
                frameRate: 150,
                animationTime: 400,
                stepSize: 100,
                pulseAlgorithm: !0,
                pulseScale: 4,
                pulseNormalize: 1,
                accelerationDelta: 50,
                accelerationMax: 3,
                keyboardSupport: !0,
                arrowScroll: 50,
                fixedBackground: !0,
                excluded: ""
            },
            p = o,
            u = !1,
            d = !1,
            l = {
                x: 0,
                y: 0
            },
            f = !1,
            m = document.documentElement,
            h = [],
            w = /^Mac/.test(navigator.platform),
            v = {
                left: 37,
                up: 38,
                right: 39,
                down: 40,
                spacebar: 32,
                pageup: 33,
                pagedown: 34,
                end: 35,
                home: 36
            },
            y = {
                37: 1,
                38: 1,
                39: 1,
                40: 1
            };

        function b() {
            if (!f && document.body) {
                f = !0;
                var e = document.body,
                    t = document.documentElement,
                    o = window.innerHeight,
                    n = e.scrollHeight;
                if (m = 0 <= document.compatMode.indexOf("CSS") ? t : e, s = e, p.keyboardSupport && Y("keydown", D), top != self) d = !0;
                else if (Q && o < n && (e.offsetHeight <= o || t.offsetHeight <= o)) {
                    var r, a = document.createElement("div");
                    a.style.cssText = "position:absolute; z-index:-10000; top:0; left:0; right:0; height:" + m.scrollHeight + "px", document.body.appendChild(a),...