/Ugly/ + 'JavaScript'

A place for ugly, silly, or just-plain-crap JavaScript.

Oracle Job Site JS - a new frontier in ugliness

One of the many highlights in oafcoreR121.js:

// Used for LOV. Should be removed when we move to new UIX LOV
function lov(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, c, p)
{

And who needs CSS classes?

function makePressed(el) 
{
  with (el.style) 
  {
    borderLeft = "1px solid #555533";
    borderRight = "1px solid #ffffff";
    borderTop = "1px solid #555533";
    borderBottom = "1px solid #ffffff";
    paddingTop = "2px";
    paddingLeft = "2px";
    paddingBottom = "0px";
    paddingRight = "0px";
  }
}
//bug 9551575:Fix to avoid 'UNDEFINED' message warning box.
if(!message)
{
eval(decodeURI(document.getElementById(closeAnchorId).href));
return;
}

Thank goodness there’s a comment. Without it we might not understand what’s going on. Oh wait…

And awesome browser detection:

var ie5=document.all&&document.getElementById;
var ns6=document.getElementById&&!document.all;
Posted by Daniel on 10 Feb 2012 | linky

Subscribe or follow @UglyJS!
.........
Fork then send a pull request to contribute.