JSFiddle - React, Tailwind, and code Playground

by Stev Peifer

HTML

<div id="setup1">
</div>

JavaScript

(
        function($){
                $.fn.setup=function(option){
                //~ Check to ensure element exists
                    if(!$(this).length)
                        $.error('$.setup() - Container element could not be found');
                //~ Create options from defaultOptions
                    var defaultOption={
                        inventory:{
                            0:'',
                            1:'',
                            2:'',
                            3:'',
                            4:'',
                            5:'',
                            6:'',
                            7:'',
                            8:'',
                            9:'',
                            10:'',
                            11:'',
                            12:'',
                            13:'',
                            14:'',
                            15:'',
                            16:'',
                            17:'',
                            18:'',
                            19:'',
                            20:'',
                            21:'',
                            22:'',
                            23:'',
                            24:'',
                            25:'',
                            26:'',
                            27:'',
                            a:'',
                            b:'',
                        },
                        equipped:{
                            helmet:'',
                            aura:'',
                            cape:'',
                            amulet:'',
                            body:'',
                            gloves:'',
                            shield:'',
                            weapon:'',
                            legs:'',
                            pocket:'',
                            quiver:'',
                            ring:'',
                            boots:''
                        },
...