mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
js_min
This commit is contained in:
parent
db1a96ae1b
commit
e10aaebc9c
@ -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');
|
||||
|
||||
|
@ -41,12 +41,7 @@ $this->carabiner->display('css');
|
||||
|
||||
<div class="content">
|
||||
<div class="container">
|
||||
<?php if(isset($status_message)){?><script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function(){
|
||||
$(".change").oneTime(3000, function() {
|
||||
$(this).fadeOut(2000);
|
||||
});
|
||||
});</script>
|
||||
<?php if(isset($status_message)){?>
|
||||
<div class="message success change">
|
||||
<div class="container">
|
||||
<?php echo $status_message; ?>
|
||||
|
@ -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(); ?>
|
||||
|
||||
|
@ -1,18 +1,5 @@
|
||||
<?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)){
|
||||
echo $insert;
|
||||
}?>
|
||||
|
34
htdocs/static/js/stikked.js
Normal file
34
htdocs/static/js/stikked.js
Normal 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();
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user