Remove silly javascript scaling thing.
This commit is contained in:
@@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="stylesheets/styles.css">
|
<link rel="stylesheet" href="stylesheets/styles.css">
|
||||||
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
|
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
|
||||||
<script src="javascripts/scale.fix.js"></script>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
fixScale = 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" href="stylesheets/styles.css">
|
<link rel="stylesheet" href="stylesheets/styles.css">
|
||||||
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
|
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
|
||||||
<script src="javascripts/scale.fix.js"></script>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
Reference in New Issue
Block a user