Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from mathiasbynens/patch-1

Add @min and @max to number inputs
  • Loading branch information...
commit ba6858f7c90cfa38df4c088a5da4f0bdb7b0d9cb 2 parents 8d586d7 + 53fe03b
@remy authored
Showing with 10 additions and 11 deletions.
  1. +10 −11 index.html
View
21 index.html
@@ -50,7 +50,7 @@
</select>
<!-- <input type=range id=width step=1 min=10 max=3000 value=640> -->
- <input size=4 type=number step=1 class=width>
+ <input size=4 type=number min=10 step=1 class=width>
Height:
<select id=height step=1 type=range>
<option>10</option>
@@ -65,7 +65,7 @@
<option>3000</option>
</select>
<!-- <input type=range step=1 id='height' step=10 min=100 max=3000 value=640> -->
- <input size=4 type=number step=1 class=height>
+ <input size=4 type=number min=10 step=1 class=height>
</form>
<div id="info">
<h1>About responsivepx</h1>
@@ -244,15 +244,14 @@
$(this).focus();
});
-var _gaq = _gaq || [];
-_gaq.push(['_setAccount', 'UA-1656750-27']);
-_gaq.push(['_trackPageview']);
+var _gaq = [['_setAccount', 'UA-1656750-27'], ['_trackPageview']];
+(function(d, t) {
+ var g = d.createElement(t),
+ s = d.getElementsByTagName(t)[0];
+ g.async = g.src = '//www.google-analytics.com/ga.js';
+ s.parentNode.insertBefore(g, s);
+}(document, 'script'));
-(function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-})();
</script>
</body>
-</html>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.