mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
animation
This commit is contained in:
parent
e10aaebc9c
commit
18d14e9b23
@ -4,7 +4,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$this->load->view("defaults/stats");
|
$this->load->view('defaults/stats');
|
||||||
|
|
||||||
//Javascript
|
//Javascript
|
||||||
$this->carabiner->js('jquery.js');
|
$this->carabiner->js('jquery.js');
|
||||||
|
@ -1,4 +1,15 @@
|
|||||||
<?php $this->load->view('defaults/footer_message.php'); ?>
|
<?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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -23,8 +23,17 @@ ST.show = function() {
|
|||||||
|
|
||||||
ST.expand = function() {
|
ST.expand = function() {
|
||||||
$('.expand').click(function() {
|
$('.expand').click(function() {
|
||||||
$('.paste').css('width', '90%');
|
var window_width = $(window).width();
|
||||||
$('.text_formatted').hide().css('width', '100%').css('margin-left', '0').fadeIn(500);
|
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;
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -378,6 +378,7 @@ h4 {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
background: #ebf4fb;
|
background: #ebf4fb;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paste .text_formatted.full {
|
.paste .text_formatted.full {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user