Permalink
Browse files

Remove formalize, update boilerplate components

  • Loading branch information...
1 parent 4b23d11 commit adcc140190ce3d77a8e2a98d657476e8d65d0bee M.Satrya committed Oct 18, 2012
Binary file not shown.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
View
Deleted file not rendered
View
Deleted file not rendered
View
Deleted file not rendered
View
@@ -16,7 +16,7 @@
<link rel="stylesheet" href="style.css">
- <script src="js/vendor/modernizr-2.5.3.min.js"></script>
+ <script src="js/vendor/modernizr-2.6.2.min.js"></script>
</head>
<body>
@@ -50,15 +50,14 @@
</div><!-- end #page .hfeed -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.7.2.min.js"><\/script>')</script>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
+ <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
<!-- compressed and minified scripts -->
<script src="js/plugins.js"></script>
<script src="js/methods.js"></script>
<!-- required scripts -->
- <script src="js/vendor/nwmatcher-1.2.5-min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script src="js/vendor/selectivizr-min.js"></script>
<![endif]-->
View
@@ -1,21 +1,19 @@
-// Avoid `console` errors in browsers that lack a console
-if (!(window.console && console.log)) {
- (function() {
- var noop = function() {};
- var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'];
- var length = methods.length;
- var console = window.console = {};
- while (length--) {
- console[methods[length]] = noop;
- }
- }());
-}
+// Avoid `console` errors in browsers that lack a console.
+(function() {
+ var noop = function noop() {};
+ var methods = [
+ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
+ 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
+ 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
+ 'timeStamp', 'trace', 'warn'
+ ];
+ var length = methods.length;
+ var console = window.console || {};
-// place any jQuery/helper plugins in here, instead of separate, slower script files.
+ while (length--) {
+ // Only stub undefined methods.
+ console[methods[length]] = console[methods[length]] || noop;
+ }
+}());
-/*
- Formalize - version 1.2
- Note: This file depends on the jQuery library.
-*/
-
-var FORMALIZE=function(a,b,c){function d(a){var b=c.createElement("b");return b.innerHTML="<!--[if IE "+a+"]><br><![endif]-->",!!b.getElementsByTagName("br").length}var e="placeholder"in c.createElement("input"),f="autofocus"in c.createElement("input"),g=d(6),h=d(7);return{go:function(){var a,b=this.init;for(a in b)b.hasOwnProperty(a)&&b[a]()},init:{full_input_size:function(){h&&a("textarea, input.input_full").length&&a("textarea, input.input_full").wrap('<span class="input_full_wrap"></span>')},ie6_skin_inputs:function(){if(g&&a("input, select, textarea").length){var b=/button|submit|reset/,c=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;a("input").each(function(){var d=a(this);this.getAttribute("type").match(b)?(d.addClass("ie6_button"),this.disabled&&d.addClass("ie6_button_disabled")):this.getAttribute("type").match(c)&&(d.addClass("ie6_input"),this.disabled&&d.addClass("ie6_input_disabled"))}),a("textarea, select").each(function(){this.disabled&&a(this).addClass("ie6_input_disabled")})}},autofocus:function(){f||!a(":input[autofocus]").length||a(":input[autofocus]:visible:first").focus()},placeholder:function(){!e&&!!a(":input[placeholder]").length&&(FORMALIZE.misc.add_placeholder(),a(":input[placeholder]").each(function(){if(this.type!=="password"){var b=a(this),c=b.attr("placeholder");b.focus(function(){b.val()===c&&b.val("").removeClass("placeholder_text")}).blur(function(){FORMALIZE.misc.add_placeholder()}),b.closest("form").submit(function(){b.val()===c&&b.val("").removeClass("placeholder_text")}).bind("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50)})}}))}},misc:{add_placeholder:function(){e||!a(":input[placeholder]").length||a(":input[placeholder]").each(function(){if(this.type!=="password"){var b=a(this),c=b.attr("placeholder");(!b.val()||b.val()===c)&&b.val(c).addClass("placeholder_text")}})}}}}(jQuery,this,this.document);jQuery(document).ready(function(){FORMALIZE.go()});
+// Place any jQuery/helper plugins in here.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit adcc140

Please sign in to comment.