From e10aaebc9c5e49812338b6937daf9a0ca4de95da Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Apr 2012 20:46:50 +0200 Subject: [PATCH] js_min --- htdocs/application/views/defaults/footer.php | 1 + htdocs/application/views/defaults/header.php | 7 +--- .../application/views/defaults/paste_form.php | 9 ----- htdocs/application/views/view/view.php | 13 ------- htdocs/static/js/stikked.js | 34 +++++++++++++++++++ 5 files changed, 36 insertions(+), 28 deletions(-) create mode 100644 htdocs/static/js/stikked.js diff --git a/htdocs/application/views/defaults/footer.php b/htdocs/application/views/defaults/footer.php index 90282c1..4ec6bfa 100755 --- a/htdocs/application/views/defaults/footer.php +++ b/htdocs/application/views/defaults/footer.php @@ -10,6 +10,7 @@ $this->load->view("defaults/stats"); $this->carabiner->js('jquery.js'); $this->carabiner->js('jquery.timers.js'); $this->carabiner->js('jquery.clipboard.js'); +$this->carabiner->js('stikked.js'); $this->carabiner->display('js'); diff --git a/htdocs/application/views/defaults/header.php b/htdocs/application/views/defaults/header.php index 96a6d92..4f6d701 100755 --- a/htdocs/application/views/defaults/header.php +++ b/htdocs/application/views/defaults/header.php @@ -41,12 +41,7 @@ $this->carabiner->display('css');
- +
diff --git a/htdocs/application/views/defaults/paste_form.php b/htdocs/application/views/defaults/paste_form.php index 30c6d7a..0e0d1ee 100644 --- a/htdocs/application/views/defaults/paste_form.php +++ b/htdocs/application/views/defaults/paste_form.php @@ -1,12 +1,3 @@ - diff --git a/htdocs/application/views/view/view.php b/htdocs/application/views/view/view.php index 97ece28..4b79619 100755 --- a/htdocs/application/views/view/view.php +++ b/htdocs/application/views/view/view.php @@ -1,18 +1,5 @@ load->view('defaults/header'); ?> - - diff --git a/htdocs/static/js/stikked.js b/htdocs/static/js/stikked.js new file mode 100644 index 0000000..9197eca --- /dev/null +++ b/htdocs/static/js/stikked.js @@ -0,0 +1,34 @@ +var ST = window.ST || {} + +ST.init = function() { + ST.change(); + ST.show(); + ST.expand(); +}; + +ST.change = function() { + $('.change').oneTime(3000, + function() { + $(this).fadeOut(2000); + }); +}; + +ST.show = function() { + $('.show').click(function() { + $('.advanced').hide(); + $('.advanced_options').show(); + return false; + }); +}; + +ST.expand = function() { + $('.expand').click(function() { + $('.paste').css('width', '90%'); + $('.text_formatted').hide().css('width', '100%').css('margin-left', '0').fadeIn(500); + return false; + }); +}; + +$(document).ready(function() { + ST.init(); +});