Tablight

Tablight is a tiny, responsive, accessible, progressively-enhanced top tabs widget for displaying content panels. I made it because I needed a replacement for YUI's Tabview. (I used YUI in an old version of our website at my job, but I'm going without third-party frameworks this time around.) On larger screens (e.g., desktop and tablets), top tab buttons are arranged in horizontal order. On small screens and browsers without JavaScript, top tabs default to a bulleted list with in-page anchor links.

This is the first content section.

“That sometimes human beings have to just sit in one place and, like, hurt. That you will become way less concerned with what other people think of you when you realize how seldom they do. That there is such a thing as raw, unalloyed, agendaless kindness. That it is possible to fall asleep during an anxiety attack. That concentrating on anything is very hard work.”
― David Foster Wallace, Infinite Jest

This is the second content section.

“We all have our little solipsistic delusions, ghastly intuitions of utter singularity: that we are the only one in the house who ever fills the ice-cube tray, who unloads the clean dishwasher, who occasionally pees in the shower, whose eyelid twitches on first dates; that only we take casualness terribly seriously; that only we fashion supplication into courtesy; that only we hear the whiny pathos in a dog’s yawn, the timeless sigh in the opening of the hermetically-sealed jar, the splattered laugh in the frying egg, the minor-D lament in the vacuum’s scream; that only we feel the panic at sunset the rookie kindergartner feels at his mother’s retreat. That only we love the only-we. That only we need the only-we. Solipsism binds us together, J.D. knows. That we feel lonely in a crowd; stop not to dwell on what’s brought the crowd into being. That we are, always, faces in a crowd.”
― David Foster Wallace, Infinite Jest

This is the third content section.

“--and then you're in serious trouble, very serious trouble, and you know it, finally, deadly serious trouble, because this Substance you thought was your one true friend, that you gave up all for, gladly, that for so long gave you relief from the pain of the Losses your love of that relief caused, your mother and lover and god and compadre, has finally removed its smily-face mask to reveal centerless eyes and a ravening maw, and canines down to here, it's the Face In The Floor, the grinning root-white face of your worst nightmares, and the face is your own face in the mirror, now, it's you, the Substance has devoured or replaced and become you, and the puke-, drool- and Substance-crusted T-shirt you've both worn for weeks now gets torn off and you stand there looking and in the root-white chest where your heart (given away to It) should be beating, in its exposed chest's center and centerless eyes is just a lightless hole, more teeth, and a beckoning taloned hand dangling something irresistible, and now you see you've been had, screwed royal, stripped and fucked and tossed to the side like some stuffed toy to lie for all time in the posture you land in. You see now that It's your enemy and your worst personal nightmare and the trouble It's gotten you into is undeniable and you still can't stop. Doing the Substance now is like attending Black Mass but you still can't stop, even though the Substance no longer gets you high. You are, as they say, Finished. You cannot get drunk and you cannot get sober; you cannot get high and you cannot get straight. You are behind bars; you are in a cage and can see only bars in every direction. You are in the kind of a hell of a mess that either ends lives or turns them around.”
― David Foster Wallace, Infinite Jest