Skip to content

Commit

Permalink
Moved JavaScript references to footer.php, removed IE compatibility m…
Browse files Browse the repository at this point in the history
…ode 'forcer', removed comments in the scripts.js file and removed version in CSS file.
  • Loading branch information
PaulAdamDavis committed Mar 13, 2011
1 parent 91a172d commit 1637af6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
9 changes: 7 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
6 changes: 0 additions & 6 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
File renamed without changes.
11 changes: 3 additions & 8 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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


});
1 change: 0 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

0 comments on commit 1637af6

Please sign in to comment.