-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.js
81 lines (67 loc) · 1.7 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
/**
* Copyright 2012 - GAPENSI.ORG
*
* Author(s):
* + x10c-Lab
* - agus sugianto (agus.delonge@gmail.com)
*/
$(document).ready(function() {
$('.image-display').cycle({
fx: 'growX',
pager: '.image-list',
pagerAnchorBuilder: function(idx, slide) {
return '<img src="images/gallery/' + (idx+1) + '.png" width=50 height=50/>';
}
});
$(".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 = MD5(document.login_form.password.value, true);
Ext.Ajax.request({
url : _g_root + 'module/login/submit.php'
, 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 msg = Ext.util.JSON.decode(response.responseText);
if (msg.success == false) {
Ext.MessageBox.alert('Kesalahan', msg.errorInfo);
} else {
window.location = _g_root + 'module/main/index.php';
}
}
});
}
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();
}