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
| <!doctype> | |
| <html> | |
| <head> | |
| <link href="input-label.css" rel='stylesheet' type='text/css' /> | |
| <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script> | |
| <script src="input-label.js"></script> | |
| </head> | |
| <body> |
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
| var ctaLink = contentDiv.find("a"), // only 1 'saved' | |
| ctaLinkText = ctaLink.text(); | |
| // can't do this: | |
| ctaLink.text(''); | |
| ctaLink.addClass("arrow-box"); | |
| ctaLink.append("<div class='text'>"+ctaLinkText+"</div><div class='arrow'></div>"); | |
| ctaLink.clone().appendTo(ctaDiv); | |
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
| Modernizr.dataUri = function() { | |
| var data = new Image(); | |
| data.onload = data.onerror = function(){ | |
| return this.width === 1 || this.height === 1; | |
| }; | |
| data.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; | |
| }; |
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 makeGrayScale( image ) { | |
| var canvas = document.createElement("canvas"), | |
| context = canvas.getContext("2d"), | |
| imgWidth = image.width, | |
| imgHeight = image.height; | |
| canvas.width = imgWidth; | |
| canvas.height = imgHeight; | |
| context.drawImage( image, 0, 0 ); | |
| var imageData = context.getImageData( 0, 0, imgWidth, imgHeight ), | |
| picture = imageData.data, |
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
| #!/Users/jgraves/environments/python/bin/python | |
| import time | |
| import sys | |
| import Growl | |
| try: | |
| minutes = float(sys.argv[1]) | |
| except IndexError: | |
| print "How many minutes?" |
NewerOlder