Top 50 Healthcare Service Providers of 2015
by Admiral Potato
HTML
<pre id="words">
Claims
Annoying
Abusive
Idiotic
Idiot
Deductables
Active
Money
Provider
Consumer
Marketplace
Issues
Florida
Yelling
Physician
Metallics
Silver
Gold
Platinum
Bitching
Malpractice
Hospital
Benefits
Drugs
Coverage
Rejected
Terminated
Grandfathered
Plan
Premium
Of
The
With
Referral
Authorization
Specialist
</pre>
<h1>Top 50 Healthcare Service Providers of 2015</h1>
<p><i>Refresh for more lulz. :D</i></p>
<div id="output"></div>
CSS
body{
font-family: sans-serif;
}
#words{
display: none;
}
b{
display: block;
width: 30%;
padding: 8px;
float: left;
}
JavaScript
var data = document.getElementById('words').innerText.split('\n');
var output = [];
data.forEach(function(a){
data.forEach(function(b){
data.forEach(function(c){
var planParts = [a, b, c];
if(
a[0] !== ' ' &&
(
(b[0] !== ' ' && b[b.length - 1] !== ' ')
||
(b[0] === ' ' && b[b.length - 1] === ' ')
||
!(b[0] !== ' ' && b[b.length - 1] === ' ')
||
!(b[0] === ' ' && b[b.length - 1] !== ' ')
)
&& c[c.length - 1] !== ' '
){
output.push('<b>' + planParts.join(' ').replace(' ',' ') + '</b>');
}
});
});
});
var nopeSort = function(a, b){return Math.random() < 0.5};
var i = 0;
while(i++ < 10){
output.sort(nopeSort);
}
output.length = 50;
document.getElementById('output').innerHTML = output.join('\n');