/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to CodeViewer/codeviewer.js

  • Committer: Adam Ringhede
  • Date: 2013-04-05 10:58:15 UTC
  • mto: (19.1.3 lenasys)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: adamringhede@live.com-20130405105815-p2ms4tyvjpn64ujn
Fixes rounded corners, drop shadows and gradients for IE on the Code Viewer Alt index page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
var mb = 0;
2
 
var panelwidth = 450;
 
1
var mb=0;
 
2
var panelwidth=450;
3
3
var mx, my;
4
4
 
5
5
function resize() {
6
 
        document.getElementById( "bottom" ).style.height = ( document.body.clientHeight - 44 ) + "px";
7
 
        document.getElementById( "panel" ).style.height = ( document.body.clientHeight - 44 ) + "px";
 
6
        document.getElementById("bottom").style.height = (document.body.clientHeight - 44) + "px";
 
7
        document.getElementById("panel").style.height = (document.body.clientHeight - 44) + "px";
8
8
}                       
9
9
 
10
 
function resizePanel(ev) {
11
 
        var panel =     document.getElementById('panel');
 
10
function resizepanel(ev) {
 
11
        var panel=document.getElementById('panel');
 
12
 
12
13
        // Firefox
13
 
        if(ev.layerX || ev.layerX == 0) {
14
 
                mx = ev.layerX - panel.offsetLeft;
15
 
                my = ev.layerY - panel.offsetTop;
16
 
        //Opera
17
 
        } else if(ev.offsetX || ev.offsetX == 0) {
18
 
                mx = ev.offsetX - panel.offsetLeft;
19
 
                my = ev.offsetY - panel.offsetTop;
 
14
        if (ev.layerX || ev.layerX == 0) {
 
15
                mx=ev.layerX-panel.offsetLeft;
 
16
                my=ev.layerY-panel.offsetTop;
 
17
        } 
 
18
 
 
19
        // Opera
 
20
        else if (ev.offsetX || ev.offsetX == 0) {
 
21
                mx=ev.offsetX-panel.offsetLeft;
 
22
                my=ev.offsetY-panel.offsetTop;
20
23
        }                       
21
 
        if(( mx > (panelwidth - 4)) && ( mx < ( panelwidth + 4) )) {
22
 
                panel.style.cursor = "col-resize";                                      
 
24
 
 
25
        if( (mx > (panelwidth-4) ) && ( mx < ( panelwidth + 4) ) ){
 
26
                panel.style.cursor="col-resize";                                        
23
27
        } else {
24
 
                panel.style.cursor = "default";
 
28
                panel.style.cursor="default";
25
29
        }
26
 
        if( mb ) {
27
 
                panel.style.width = mx + 4;
28
 
                panelwidth = mx + 4;
29
 
                panel.style.cursor = "col-resize";
 
30
 
 
31
        if(mb) {
 
32
                panel.style.width=mx+4;
 
33
                panelwidth=mx+4;
 
34
                panel.style.cursor="col-resize";
30
35
                return false;
31
36
        } else {
32
37
                return true;
33
38
        }
 
39
 
34
40
}
35
41
 
36
 
function mdPanel(ev) {
37
 
        if(( mx > ( panelwidth-4 )) && ( mx < ( panelwidth + 4 ))) {
38
 
                mb = 1;
 
42
function mdpanel(ev) {
 
43
        if((mx > (panelwidth-4)) && (mx < (panelwidth + 4))) {
 
44
                mb=1;
39
45
        }
40
46
}
41
47
 
42
 
function muPanel(ev) {
43
 
        mb = 0;
44
 
}
 
 
b'\\ No newline at end of file'
 
48
function mupanel(ev) {
 
49
        mb=0;
 
50
}