jumpserver/templates/script.html

81 lines
2.2 KiB
HTML
Raw Normal View History

2015-01-03 14:24:34 +00:00
<!-- Mainly scripts -->
2015-01-03 15:10:09 +00:00
<script src="/static/js/jquery-2.1.1.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/static/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
2015-01-25 14:20:07 +00:00
<script src="/static/js/bootstrap-dialog.js"></script>
<script src="/static/js/mindmup-editabletable.js"></script>
<script src="/static/js/base.js"></script>
2015-01-03 14:24:34 +00:00
2015-01-03 15:10:09 +00:00
<!-- Custom and plugin javascript -->
<script src="/static/js/inspinia.js"></script>
<script src="/static/js/plugins/pace/pace.min.js"></script>
2015-01-03 14:24:34 +00:00
2015-01-26 16:14:50 +00:00
<!-- iCheck box -->
2015-01-09 15:15:28 +00:00
<script src="/static/js/plugins/iCheck/icheck.min.js"></script>
2015-01-09 14:51:46 +00:00
2015-01-03 15:10:09 +00:00
<!-- Peity -->
2015-01-26 16:14:50 +00:00
<script src="/static/js/plugins/peity/jquery.peity.min.js"></script>
2015-01-09 15:15:28 +00:00
2015-01-03 15:10:09 +00:00
<!-- Peity -->
<script src="/static/js/demo/peity-demo.js"></script>
2015-01-09 15:15:28 +00:00
2015-01-26 16:14:50 +00:00
<script>
$(document).ready(function(){
$('.i-checks').iCheck({
checkboxClass: 'icheckbox_square-green',
2015-01-28 07:08:16 +00:00
radioClass: 'iradio_square-green'
2015-01-26 16:14:50 +00:00
});
});
function selectAll(){
var checklist = document.getElementsByName ("selected");
if(document.getElementById("select_all").checked)
{
for(var i=0;i<checklist.length;i++)
{
checklist[i].checked = 1;
}
}else{
for(var j=0;j<checklist.length;j++)
{
checklist[j].checked = 0;
}
}
}
2015-01-28 07:08:16 +00:00
function move(from, to) {
$("#"+from+" option").each(function(){
if ( $(this).prop("selected") == true ) {
$("#"+to).append(this);
}
});
}
function move_all(from, to){
$("#"+from).children().each(function(){
$("#"+to).append(this);
});
}
2015-01-26 16:14:50 +00:00
</script>
2015-01-14 08:39:57 +00:00
2015-01-25 13:46:19 +00:00
2015-01-09 15:15:28 +00:00
2015-01-14 08:39:57 +00:00
<!-- pop windows -->
<script src="/static/js/jquery.colorbox.js"></script>
2015-01-14 11:19:56 +00:00
<!-- validator js -->
<script src="/static/js/validator/jquery.validator.js"></script>
<script src="/static/js/validator/zh_CN.js"></script>
2015-01-24 04:13:49 +00:00
<!-- active menu -->
<script>
var str = document.location.pathname.split("/")[1];
2015-01-24 05:54:08 +00:00
var str1 = document.location.pathname.split("/")[2];
2015-01-24 04:13:49 +00:00
$("#"+str).addClass('active');
2015-01-24 05:54:08 +00:00
$("#"+str1).addClass('active');
2015-01-24 04:13:49 +00:00
</script>