Skip to content

Instantly share code, notes, and snippets.

Art Lawry artlawry

Block or report user

Report or block artlawry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View radio-control ie7 ie8 shim minified.js
(function(){var c,label,inputs,input,type,i,ilen;if(!document.addEventListener){c=document.getElementsByTagName('label');inputs=document.getElementsByTagName('input');function inputClick(){clicked=window.event.srcElement;inputChange(clicked)};function inputChange(a){var b,input,i,ilen,removeChecked,type,redrawElement;a=a||window.event.srcElement;b=document.getElementsByName(a.getAttribute('name'));classRegex=/(^|\s+)checked(\s+|$)/g;type=a.getAttribute('type');if(type==='radio'){for(i=0,ilen=b.length;i<ilen;i++){input=b[i];input.className=input.className.replace(classRegex,' ');if(input===a){input.className+=' checked'}}}else{if(classRegex.test(a.className)){a.className=a.className.replace(classRegex,' ')}else{a.className+=' checked'}}redrawElement=a.parentNode||document.body;redrawElement.className+=' redraw';redrawElement.className=redrawElement.className.replace(/ redraw$/,'')};for(i=0,ilen=c.length;i<ilen;i++){label=c[i];inputId=label.getAttribute('for')||label.getAttribute('htmlFor');if(inputId){input=do
@artlawry
artlawry / radio-control ie7 ie8 shim.js
Last active Aug 29, 2015
Adds a checked class to all checked radio buttons for
View radio-control ie7 ie8 shim.js
(function () {
var labels, label, inputs, input, type, i, ilen;
if (!document.addEventListener) {
labels = document.getElementsByTagName('label');
inputs = document.getElementsByTagName('input');
function inputClick() {
clicked = window.event.srcElement;
@artlawry
artlawry / minmal_twitter.css
Last active Dec 20, 2015 — forked from cmod/minmal_twitter.css
Browser styles to be applied via your favorite in-browser CSS mod plugin akin to Stylish for Chrome.
View minmal_twitter.css
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
View minmal_twitter.css
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
You can’t perform that action at this time.