Skip to content

Instantly share code, notes, and snippets.

View davidcalhoun's full-sized avatar
🥾
away on a long hike

David Calhoun davidcalhoun

🥾
away on a long hike
View GitHub Profile
@davidcalhoun
davidcalhoun / microdata-highlighter.js
Created June 4, 2011 01:45
Simple Microdata Highlighter Bookmarklet
// Dead simple - works on anything with attribute CSS selectors (IE7+)
// http://en.wikipedia.org/wiki/Microdata_(HTML5)
(function(){
var a = document.createElement('style');
a.innerHTML = '[itemprop] {border: 2px solid red;}';
document.body.appendChild(a);
})();
// Paste this into your address bar
<!doctype html> <!-- don't forget your doctype! -->
<html>
<head>
<style>
input { display: block; } /* use this instead of <br/> tags in your HTML */
</style>
</head>
<body>
<form name="test" id="test"> <!-- add id so you can select it with DOM2 selector getElementById -->
<select name="somename">
@davidcalhoun
davidcalhoun / transitionend.html
Created November 17, 2010 01:01
Example usage of a cross-browser ontransitionend event (CSS transition)
We couldn’t find that file to show.