animation

This commit is contained in:
Claude 2012-04-13 21:41:14 +02:00
parent e10aaebc9c
commit 18d14e9b23
4 changed files with 25 additions and 4 deletions

View File

@ -4,7 +4,7 @@
</div>
</div>
<?php
$this->load->view("defaults/stats");
$this->load->view('defaults/stats');
//Javascript
$this->carabiner->js('jquery.js');

View File

@ -1,4 +1,15 @@
<?php $this->load->view('defaults/footer_message.php'); ?>
<?php $this->load->view("defaults/stats")?>
<?php
$this->load->view('defaults/stats');
//Javascript
$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');
?>
</body>
</html>

View File

@ -23,8 +23,17 @@ ST.show = function() {
ST.expand = function() {
$('.expand').click(function() {
$('.paste').css('width', '90%');
$('.text_formatted').hide().css('width', '100%').css('margin-left', '0').fadeIn(500);
var window_width = $(window).width();
if(window_width > 900){
var spacer = 20; //Math.round(window_width / 10);
var new_width = (window_width - (spacer * 3));
$('.text_formatted').animate({
'width': new_width+'px',
'left': '-'+(((window_width - 900) / 2 - spacer))+'px'
}, 200);
}
return false;
});
};

View File

@ -378,6 +378,7 @@ h4 {
margin-top: 10px;
margin-left: 10px;
background: #ebf4fb;
position: relative;
}
.paste .text_formatted.full {