JSFiddle - React, Tailwind, and code Playground
HTML
<div id="column-content">
<div id="content"><div style="visibility: hidden; display: none; width: 602px; height: 402px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-color: white; position: absolute; right: 2em; top: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: gray; border-right-color: gray; border-bottom-color: gray; border-left-color: gray; z-index: 13; "><iframe scrolling="no" frameborder="0" style="z-index: 14; position: absolute; right: 1px; top: 1px; width: 600px; height: 400px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "></iframe><img title="close" src="http://upload.wikimedia.org/wikipedia/commons/d/d4/Button_hide.png" style="z-index: 15; position: absolute; right: 11px; top: 9px; width: 18px; cursor: pointer; "></div>
<a id="top"></a>
<div id="siteNotice"><script type="text/javascript">if (wgNotice != '') document.writeln(wgNotice);</script><div id="centralNotice" class="expanded anonnotice"><style type="text/css">
/*
Styles for Notices
*/
.notice-wrapper-wikimania-scholar, .notice-collapsed-wrapper-wikimania-scholar {
margin: 2px auto 0;
width: 100%;
padding: 0;
font-family: 'Arial','Helvetica','Tahoma',sans-serif;
color: #333;
background-color: #ddd;
font-size: .9em;
font-weight: 200;
}
.notice-wrapper-wikimania-scholar
{
border: 1px solid #bbb;
background-color: #fcfcfc;
text-align: left;
font-size: .9em;
}
.notice-wrapper-wikimania-scholar a
{
color: #006699;
}
.trans-box
{
text-align: right;
font-size: 0.8em;
padding: 0;
white-space:...
JavaScript
(function($) {
$.fn.allAttributes = function(attrName) {
var selector = "[{attr}]".replace("{attr}", attrName);
var attributes = $(selector, this).map(function() {
return $(this).attr(attrName).split(' ');
});
attributes = $.unique(attributes);
return attributes;
};
})(jQuery);
var allIDs = $("body").allAttributes("id");
console.log(allIDs);
var allClasses = $("body").allAttributes("class");
console.log(allClasses);