Skip to content

Instantly share code, notes, and snippets.

View gscottolson's full-sized avatar

G. Scott Olson gscottolson

  • Microsoft
  • California
View GitHub Profile
/**
* Add ipad IOS7 Classes
* Allows us to temporariliy try to fix the slight scroll 100% hack.
* http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerheight-outerheight-layout-issue
*/
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) {
$('html').addClass('ipad ios7');
}
/**
# If browser doesn't support placeholders, take the placeholder text and set it as the field's value
unless Modernizr.input.placeholder
$("input[placeholder]").each (index, element)->
unless $(element).val()
$(element).val($(element).attr("placeholder"))