JSFiddle - React, Tailwind, and code Playground
by olegatilla
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore.js"></script>
CSS
.green {color: red;}
JavaScript
var obj = [];
obj["reg"] = [{
title:"S regular",
neck: "37/38",
chest: "111",
waist: "101",
type: "regular",
option: "4"
},
{
title:"M regular",
neck: "39/40",
chest: "117",
waist: "107",
type: "regular",
option: "5"
},
{
title:"L regular",
neck: "41/42",
chest: "123",
waist: "113",
type: "regular",
option: "6"
},
{
title:"XL regular",
neck: "43/44",
chest: "131",
waist: "121",
type: "regular",
option: "7"
},
{
title:"2XL regular",
neck: "45/46",
chest: "137",
waist: "127",
type: "regular",
option: "8"
}
];
obj["slim"] = [{
title:"S slim",
neck: "37/38",
chest: "102",
waist: "91",
type: "slim",
option: "4"
},
{
title:"M slim",
neck: "39/40",
chest: "108",
waist: "97",
type: "slim",
option: "5"
},
{
title:"L slim",
neck: "41/42",
chest: "114",
waist: "103",
type: "slim",
option: "6"
},
{
title:"XL slim",
neck: "43/44",
chest: "120",
waist: "109",
type: "slim",
option: "7"
},
{
title:"2XL slim",
neck: "45/46",
chest: "126",
waist: "115",
type: "slim",
...