Created
July 19, 2014 10:54
-
-
Save richerimage/0e117fbd9136fb94c1f9 to your computer and use it in GitHub Desktop.
iFrame <head> inject viewport metatag
This file contains 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
$(document).ready(function($) { | |
var viewTag = '<meta content="initial-scale=1, user-scalable=yes, maximum-scale=1, width=device-width" name="viewport">'; | |
var head = $('#iFrame_ID').contents().find('head'); | |
head.append(viewTag); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment