JSFiddle - React, Tailwind, and code Playground

by Hidayat Rifan

JavaScript

/*
(function (J, c) {
    var W = J.location.href,
        B = c.getElementById("astin_query-comments-block"),
        z = c.getElementById("astin_emo-bar"),
        A = c.getElementById("astin_query-comments-total"),
        F = c.getElementById("astin_query-comments-pager"),
        E = c.getElementById("astin_query-comments-css"),
        y = c.getElementById("comment-editor"),
        q = c.getElementById("astin_form-comment-button-cancel"),
        C = B.getElementsByClassName("button-reply"),
        t = y.src.split("#"),
        a = B.innerHTML,
        S = [],
        G = [],
        v = [],
        m = 0,
        H = "",
        b = "",
        D = "",
        R = 0,
        Q = 0,
        P = 0,
        O = 0,
        x = "",
        w = "",
        u = "";
    J.astin_Cm = function (g, f) {
        var e = f,
            d = " <i data-emo='https://obesity-project.googlecode.com/svn/trunk/host/emotion/",
            h = "' class='emo'></i>";
        e = e.replace(/^(<br ?\/?>|&nbsp;)+/i, "").replace(/(<br ?\/?>)+(:|;|\^|=)/ig, "<br> $2").replace(/^(&nbsp;|<br ?\/?>| <br ?\/?>)+/ig, "").replace(/\@<a href="\#c([0-9]+)\"( rel="nofollow")?>.*?<\/a>\:? ?/g, "").replace(/\s:\)/g, d + "smile.gif' title=':)" + h).replace(/\s;\)/g, d + "wink.gif' title=';)" + h).replace(/\s:D/g, d + "haha.gif' title=':D" + h).replace(/\s=D/g, d + "hihi.gif' title='=D" + h).replace(/\s\^:D/g, d + "above-me-haha.gif' title='^:D" + h).replace(/\s\^\_?\^/g, d + "senyum-tulus.gif' title='^_^" + h).replace(/\s:\(/g, d + "sad.gif' title=':(" + h).replace(/\s=\(/g, d + "sad-2.gif' title='=(" + h).replace(/\s@@,/g, d + "roll-eyes.gif' title='@@," + h).replace(/\s:yaya:/ig, d + "yaya.gif' title=':yaya:" + h).replace(/\s:s/ig, d + "sullen.gif' title=':s" + h).replace(/\s:(\\|\/)/ig, d + "memble.gif' title=':&#92;" + h).replace(/\s:('|\&\#39\;)\(/g, d + "cry.gif' title=':&#39;(" + h).replace(/\s:waaa:/ig, d + "wa.gif' title=':waaa:" + h).replace(/\sT\_T/ig, d + "tear.gif' title='T_T" +...