-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlayout.js
87 lines (75 loc) · 1.5 KB
/
layout.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* Copyright 2011 - Kementerian Pendidikan Nasional - Dit.PSMP
*
* Author(s):
* + x10c-Lab
* - agus sugianto ([email protected])
*/
$(document).ready(function() {
$(".right p a").hover(
function() {
$(this).stop().animate({
paddingLeft :'10'
, paddingRight :'10'
},{
duration :'700'
, easing :'easeInSine'
});
return true;
}
, function () {
$(this).stop().animate(
{
paddingLeft :'0'
, paddingRight :'0'
},{
duration :'700'
, easing :'easeOutSine'
});
}
);
$('.horizontal_scroller').SetScroller({
velocity :60
, direction :'horizontal'
, startfrom :'right'
, loop :'infinite'
, movetype :'linear'
, onstartup :'play'
, cursor :'pointer'
});
});
function call_do_login(){
var pass = Sha256.hash(document.login_form.password.value, true);
Ext.Ajax.request({
url : _g_root +'/module/login/submit.jsp'
, params : {
user : document.login_form.user.value
, pass : pass
}
, waitMsg : 'Pemuatan ...'
, failure : function(form, action) {
Ext.MessageBox.alert('Kesalahan', action.result.errorInfo);
}
, success : function(response) {
var res = Ext.util.JSON.decode(response.responseText);
if (res.success == false) {
Ext.MessageBox.alert('Kesalahan', res.info);
} else {
showTahunAjaran();
}
}
});
}
function form_pass_on_keydown(e)
{
var keycode;
if (window.event) {
keycode = e.keyCode;
} else if (e.which) {
keycode = e.which;
}
if (keycode != 13) {
return;
}
call_do_login();
}