1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/squelettes-dist/win_width.htc

24 lines
493 B
Text
Raw Normal View History

2015-04-28 17:10:23 +02:00
<public:component>
<public:property name="retrait">
<script language="JScript">
function fixWidth(){
if (element.className == "spip_cadre") retrait = 24;
else retrait = 16;
if (element.offsetWidth) {
style.width = element.offsetWidth - retrait;
} else {
style.width = "90%";
//alert (element.parentElement.tagName);
}
}
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
if (supported) fixWidth();
</script>
</public:component>