Sha256: 998d86724f3e8e988f551a164fd0b28531fe4c6192683dda023fb5ae43821601
Contents?: true
Size: 934 Bytes
Versions: 2
Compression:
Stored size: 934 Bytes
Contents
(function(document) { var metas = document.getElementsByTagName('meta'), changeViewportContent = function(content) { for (var i = 0; i < metas.length; i++) { if (metas[i].name == "viewport") { metas[i].content = content; } } }, initialize = function() { changeViewportContent("width=device-width, minimum-scale=1.0, maximum-scale=1.0"); }, gestureStart = function() { changeViewportContent("width=device-width, minimum-scale=0.25, maximum-scale=1.6"); }, gestureEnd = function() { initialize(); }; if (navigator.userAgent.match(/iPhone/i)) { initialize(); document.addEventListener("touchstart", gestureStart, false); document.addEventListener("touchend", gestureEnd, false); } })(document);
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jekyll-theme-penumbra-0.1.0 | assets/js/scale.fix.js |
jekyll-theme-minimalistic-0.2.0 | assets/js/scale.fix.js |