bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
11.4.3
by mattman-03
Codestandard fixed |
1 |
var mb = 0; |
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
2 |
var panelWidth = 450; |
3 |
var mx; |
|
4 |
var my; |
|
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
5 |
|
6 |
function resize() { |
|
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
7 |
document.getElementById("bottom").style.height = (document.body.clientHeight - 44) + "px"; |
8 |
document.getElementById("panel").style.height = (document.body.clientHeight - 44) + "px"; |
|
9 |
}
|
|
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
10 |
|
11.4.3
by mattman-03
Codestandard fixed |
11 |
function resizePanel(ev) { |
12 |
var panel = document.getElementById('panel'); |
|
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
13 |
// Firefox |
11.4.3
by mattman-03
Codestandard fixed |
14 |
if(ev.layerX || ev.layerX == 0) { |
15 |
mx = ev.layerX - panel.offsetLeft; |
|
16 |
my = ev.layerY - panel.offsetTop; |
|
17 |
//Opera |
|
18 |
} else if(ev.offsetX || ev.offsetX == 0) { |
|
19 |
mx = ev.offsetX - panel.offsetLeft; |
|
20 |
my = ev.offsetY - panel.offsetTop; |
|
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
21 |
} |
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
22 |
if((mx > (panelWidth - 4)) && ( mx < (panelWidth + 4) )) { |
11.4.3
by mattman-03
Codestandard fixed |
23 |
panel.style.cursor = "col-resize"; |
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
24 |
} else { |
11.4.3
by mattman-03
Codestandard fixed |
25 |
panel.style.cursor = "default"; |
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
26 |
} |
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
27 |
if(mb) { |
11.4.3
by mattman-03
Codestandard fixed |
28 |
panel.style.width = mx + 4; |
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
29 |
panelWidth = mx + 4; |
11.4.3
by mattman-03
Codestandard fixed |
30 |
panel.style.cursor = "col-resize"; |
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
31 |
return false; |
32 |
} else { |
|
33 |
return true; |
|
34 |
} |
|
35 |
}
|
|
36 |
||
11.4.3
by mattman-03
Codestandard fixed |
37 |
function mdPanel(ev) { |
11.5.1
by a11vikob
Fixed hopefully everything in Bug #1164597 |
38 |
if((mx > (panelWidth-4 )) && (mx < (panelWidth + 4 ))) { |
11.4.3
by mattman-03
Codestandard fixed |
39 |
mb = 1; |
4.9.7
by elof.bigestans at gmail
Cleaned up showcode.js -- Fixed indentation, spacing |
40 |
} |
41 |
}
|
|
42 |
||
11.4.3
by mattman-03
Codestandard fixed |
43 |
function muPanel(ev) { |
44 |
mb = 0; |
|
45 |
}
|