This commit is contained in:
Claude 2012-04-13 20:46:50 +02:00
parent db1a96ae1b
commit e10aaebc9c
5 changed files with 36 additions and 28 deletions

View File

@ -10,6 +10,7 @@ $this->load->view("defaults/stats");
$this->carabiner->js('jquery.js'); $this->carabiner->js('jquery.js');
$this->carabiner->js('jquery.timers.js'); $this->carabiner->js('jquery.timers.js');
$this->carabiner->js('jquery.clipboard.js'); $this->carabiner->js('jquery.clipboard.js');
$this->carabiner->js('stikked.js');
$this->carabiner->display('js'); $this->carabiner->display('js');

View File

@ -41,12 +41,7 @@ $this->carabiner->display('css');
<div class="content"> <div class="content">
<div class="container"> <div class="container">
<?php if(isset($status_message)){?><script type="text/javascript" charset="utf-8"> <?php if(isset($status_message)){?>
$(document).ready(function(){
$(".change").oneTime(3000, function() {
$(this).fadeOut(2000);
});
});</script>
<div class="message success change"> <div class="message success change">
<div class="container"> <div class="container">
<?php echo $status_message; ?> <?php echo $status_message; ?>

View File

@ -1,12 +1,3 @@
<script type="text/javascript">
$(document).ready(function(){
$(".show").click(function(){
$(".advanced").hide();
$(".advanced_options").show();
return false;
});
});
</script>
<?php echo validation_errors(); ?> <?php echo validation_errors(); ?>

View File

@ -1,18 +1,5 @@
<?php $this->load->view('defaults/header'); ?> <?php $this->load->view('defaults/header'); ?>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$(".expand").click(function(){
$(".paste").css("width", "90%");
$(".text_formatted").hide();
$(".text_formatted").css("width", "100%");
$(".text_formatted").css("margin-left", "0");
$(".text_formatted").fadeIn(500);
return false;
});
});
</script>
<?php if(isset($insert)){ <?php if(isset($insert)){
echo $insert; echo $insert;
}?> }?>

View File

@ -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();
});