aboutsummaryrefslogtreecommitdiff
path: root/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-06-07 10:45:01 -0400
committerBrandon Mathis <brandon@imathis.com>2011-06-07 10:45:01 -0400
commitd8b796acb9275e74324c3ea04324314ecbe1b664 (patch)
tree475d78d3b5ee9f5bba1bf8147e8368aa9278e4fa /source/javascripts/libs/ios-viewport-scaling-bug-fix.js
parent8698a276f937cb1cd6f67f7f213e2ea438500d7e (diff)
downloadmy_new_personal_website-d8b796acb9275e74324c3ea04324314ecbe1b664.tar.xz
my_new_personal_website-d8b796acb9275e74324c3ea04324314ecbe1b664.zip
Another massive commit:
1. Major improvements to the responsive styling. 2. Toggleable sidebar 3. Upgraded to modernizr 2.0 which includes Respond.js 4. IE7-9 testing and fixes 5. New theming system which should make forkers happy 6. New rake task for installing Octopress themes 7. Magic
Diffstat (limited to 'source/javascripts/libs/ios-viewport-scaling-bug-fix.js')
-rw-r--r--source/javascripts/libs/ios-viewport-scaling-bug-fix.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/javascripts/libs/ios-viewport-scaling-bug-fix.js b/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
deleted file mode 100644
index 0e8d701d..00000000
--- a/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// https://gist.github.com/901295
-// By @mathias, @cheeaun and @jdalton
-
-(function(doc) {
- var addEvent = 'addEventListener',
- type = 'gesturestart',
- qsa = 'querySelectorAll',
- scales = [1, 1],
- meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
- function fix() {
- meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
- doc.removeEventListener(type, fix, true);
- }
- if ((meta = meta[meta.length - 1]) && addEvent in doc) {
- fix();
- scales = [.25, 1.6];
- doc[addEvent](type, fix, true);
- }
-}(document));
-