-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinteraksi.js
executable file
·48 lines (38 loc) · 1.24 KB
/
interaksi.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
_reArrangeDivs = function()
{
var docHeight = $(window).height();
var docWidth = $(window).width();
var dvMainTop = docHeight / 2 - $("#dvMain").height() / 2;
dvMainTop = dvMainTop - 5;
var dvMainLeft = docWidth / 2 - $("#dvMain").width() / 2;
$("#dvMain").css({"top" : dvMainTop, "left" : dvMainLeft});
var dvCopyTop = docHeight - 60;
var dvCopyLeft = docWidth - 315;
$("#dvCopy").css({"top" : dvCopyTop, "left" : dvCopyLeft});
var dvPartnerTop = docHeight - 60;
var dvPartnerLeft = 10;
$("#dvPartner").css({"top" : dvPartnerTop, "left" : dvPartnerLeft});
var luMessageTop = docHeight - 40;
var luMessageLeft = docWidth / 2 - ($('#lumessage').width() / 2)
$("#lumessage").css({"top" : luMessageTop, "left" : luMessageLeft});
}
// ON WINDOW RESIZED
$(window).resize(function() {
_reArrangeDivs();
});
$(document).ready(function () {
_reArrangeDivs();
$(document).bgStretcher({
images: ['images/background07.jpg'], imageWidth: 1680, imageHeight: 1050
});
/*
$("#imInfoJibas").elevateZoom({
zoomType: "inner",
cursor: "crosshair",
zoomWindowFadeIn: 600,
zoomWindowFadeOut: 500,
lensFadeIn: 600,
lensFadeOut: 500
});
*/
});