This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createRow(c, tr) { | |
var td = document.createElement('td'); | |
td.align = 'center'; | |
td.innerHTML = c; | |
if (c[0] !== '%') { | |
td.style.backgroundColor = '#ffc'; | |
} | |
tr.appendChild(td); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bookmarklet to create a new Google Doc. | |
// This updates the bookmarklet from http://noscope.com/journal/2009/04/new-google-doc-favelet | |
// with the new URL for creating a doc. | |
javascript:(function(){ window.open('https://docs.google.com/document/create?hl=en_US'); })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* XmlHttpRequest's getAllResponseHeaders() method returns a string of response | |
* headers according to the format described here: | |
* http://www.w3.org/TR/XMLHttpRequest/#the-getallresponseheaders-method | |
* This method parses that string into a user-friendly key/value pair object. | |
*/ | |
function parseResponseHeaders(headerStr) { | |
var headers = {}; | |
if (!headerStr) { | |
return headers; |