Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved JavaScript references to footer.php, removed IE compatibility m…

…ode 'forcer', removed comments in the scripts.js file and removed version in CSS file.
  • Loading branch information...
commit 1637af667085e4fa6ee36749b6c3816fc94b76fc 1 parent 91a172d
@PaulAdamDavis authored
View
9 footer.php
@@ -4,9 +4,14 @@
</div><!-- end .wrapper -->
- <?php wp_footer(); ?>
+ <!-- JavaScript -->
+ <!-- <script src="http://code.jquery.com/jquery-1.5.1.min.js"></script> -->
+ <script src="<?php bloginfo('template_url'); ?>/js/jquery-1.5.1.min.js"></script>
+ <script src="<?php bloginfo('template_url'); ?>/js/scripts.js"></script>
+
+ <?php wp_footer(); ?>
- <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
+ <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
</body>
</html>
View
6 header.php
@@ -4,7 +4,6 @@
<!-- Meta Tags & Browser Stuff -->
<meta charset="<?php bloginfo('charset'); ?>" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
@@ -22,11 +21,6 @@
<link rel="stylesheet/less" href="<?php bloginfo('template_url'); ?>/less.less" type="text/css" />
<script src="<?php bloginfo('template_url'); ?>/js/less-1.0.41.min.js"></script>
- <!-- JavaScript -->
- <!-- <script src="http://code.jquery.com/jquery-1.5.1.min.js"></script> -->
- <script src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/scripts.js"></script>
-
<!-- Firebug Lite for IE -->
<!--[if IE]>
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
View
0  js/jquery.js → js/jquery-1.5.1.min.js
File renamed without changes
View
11 js/scripts.js
@@ -6,17 +6,12 @@
(function(f,z){var e=z in document.createElement('input'),a=z in document.createElement('textarea');if(e&&a){f.fn.placeholder=function(){return this}}else{f.fn.placeholder=function(){return this.filter((e?'textarea':':input')+'['+z+']').bind('focus.'+z,b).bind('blur.'+z,d).trigger('blur.'+z).end()}}function c(h){var g={},i=/^jQuery\d+$/;f.each(h.attributes,function(k,j){if(j.specified&&!i.test(j.name)){g[j.name]=j.value}});return g}function b(){var g=f(this);if(g.val()===g.attr(z)&&g.hasClass(z)){if(g.data(z+'-password')){g.hide().next().show().focus()}else{g.val('').removeClass(z)}}}function d(g){var j,i=f(this);if(i.val()===''||i.val()===i.attr(z)){if(i.is(':password')){if(!i.data(z+'-textinput')){try{j=i.clone().attr({type:'text'})}catch(h){j=f('<input>').attr(f.extend(c(i[0]),{type:'text'}))}j.removeAttr('name').data(z+'-password',true).bind('focus.'+z,b);i.data(z+'-textinput',j).before(j)}i=i.hide().prev().show()}i.addClass(z).val(i.attr(z))}else{i.removeClass(z)}}f(function(){f('form').bind('submit.'+z,function(){var g=f('.'+z,this).each(b);setTimeout(function(){g.each(d)},10)})});f(window).bind('unload.'+z,function(){f('.'+z).val('')})})(jQuery,'placeholder');
$(function(){
-
- // Essential functions that should run as the *page* is loaded
- // Make the HTML5 Placeholder option work in older browsers
- $('input, textarea').placeholder();
+ // Make the HTML5 Placeholder option work in older browsers
+ $('input, textarea').placeholder();
});
$(window).bind("load",function(){
-
- // Non-essential functions that should run when all the images etc are loaded.
- // This is ideal for form validation & other non-visual stuff
-
+
});
View
1  style.css
@@ -3,5 +3,4 @@ Theme Name: Slim Starkers
Theme URI: http://website.com/
Description: Blank WP theme by Code by Monkey, based on <a href="http://starkerstheme.com/">Starkers Theme</a>
Author: Paul Adam Davis
-Version: 1.0
*/
Please sign in to comment.
Something went wrong with that request. Please try again.