Skip to content

Commit

Permalink
Get rid of Prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
nullin committed Mar 3, 2011
1 parent 7910f87 commit 40736b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
12 changes: 0 additions & 12 deletions admin/js/slide.js

This file was deleted.

1 change: 0 additions & 1 deletion admin/js/textsize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function setFontSize(fontSize){
document.body.style.fontSize = fontSize + '%';
};


function createCookie(name,value,days) {
if (days) {
var date = new Date();
Expand Down
17 changes: 12 additions & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_enqueue_script('prototype'); ?>
<?php wp_enqueue_script('effects', get_option('siteurl') . '/wp-includes/js/scriptaculous/' . 'effects.js'); ?>
<?php wp_enqueue_script('slider', get_bloginfo('template_directory') . '/admin/js/slide.js'); ?>
<?php wp_enqueue_script('textsize', get_bloginfo('template_directory') . '/admin/js/textsize.js'); ?>
<?php wp_enqueue_script('superfish', get_bloginfo('template_directory') . '/admin/js/superfish.js', array('jquery')); ?>

Expand All @@ -30,6 +27,16 @@
$j = jQuery.noConflict();
$j(document).ready(function() {
$j('ul.sf-menu').superfish();
$j("#closeSlidebar").click(function() {
$j("#slidebar").slideToggle("slow");
$j("#closeSlidebar").fadeOut("slow");
$j("#openSlidebar").fadeIn("slow");
});
$j("#openSlidebar").click(function() {
$j("#slidebar").slideToggle("slow");
$j("#closeSlidebar").fadeIn("slow");
$j("#openSlidebar").fadeOut("slow");
});
});
</script>

Expand Down Expand Up @@ -64,8 +71,8 @@
<?php hemingwayEx_nav() ?>
<?php if ($hemingwayEx_options['slidebar_enabled'] == 1){ ?>
<div id="silderButtonNav">
<a id="openSlidebar" href="#" onclick="openNav();return false;" title="<?php _e('Open Navigation','hemingwayex') ?>"><?php _e('Open Navigation','hemingwayex') ?></a>
<a id="closeSlidebar" href="#" onclick="closeNav();return false;" title="<?php _e('Close Navigation','hemingwayex') ?>" style="display:none;"><?php _e('Close Navigation','hemingwayex') ?></a>
<a id="openSlidebar" href="#" title="<?php _e('Open Navigation','hemingwayex') ?>"><?php _e('Open Navigation','hemingwayex') ?></a>
<a id="closeSlidebar" href="#" title="<?php _e('Close Navigation','hemingwayex') ?>" style="display:none;"><?php _e('Close Navigation','hemingwayex') ?></a>
</div>
<?php } ?>
</div>
Expand Down

0 comments on commit 40736b0

Please sign in to comment.