Team:Grenoble/script

From 2012.igem.org

(Difference between revisions)
Line 14: Line 14:
}
}
return d
return d
 +
    }
 +
 +
    function v(c,a){
 +
return(a||o).getElementsByTagName(c)
 +
    }
 +
 +
    function w(){
 +
var c,a,b=r,d=o,e=d.documentElement,f=d.body;
 +
if(b.innerWidth){
 +
    c=b.innerWidth;
 +
    a=b.innerHeight
 +
}else if(e.clientWidth){
 +
    c=e.clientWidth;
 +
    a=e.clientHeight
 +
}else{
 +
    c=f.clientWidth;
 +
    a=f.clientHeight
 +
}return{'w':c,'h':a}
     }
     }
})
})

Revision as of 15:27, 11 July 2012