Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<html><head>
<title>tables</title>
<link rel="stylesheet" href="../StyleSheets/tables.css">
<style type='text/css'>
table{height:500;background-Color:#55d3dd}
td{height:41px;background-Color:#eed324}
div{height:26;background-Color:#f9ad24}
</style>
<script>
H=[];B=[];Q=[];
var z,st='',sh,sb,ah,ab,zz=0,N,X=0,q=document.styleSheets;
var da=document.all;
function A(a){return document.getElementsByTagName(a);};
function TD(td){return TD.arguments.length==0?document.getElementsByTagName('td'):document.getElementsByTagName('td')[td];};
function M(m){return Math.round(Math.random()*m)};
function LOAD()
{if(!da)document.captureEvents(Event.MOUSEDOWN);document.onmousedown=DOWN;
for(i=0;i<TD().length;i++)TD(i).innerHTML=' '
C();
};
function DOWN()
{for(i=0;i<TD().length;i++)
with(TD(i).style)
{height=20+M(150);
backgroundColor=document.all?M(14197016):M(16*0x111111).toString(16);
};
C();
};
function C()
{for(m=0;m<q.length;m++)
{if(!da)
{for(j=0;j<q[m].cssRules.length;j++)
if(q[m].cssRules[j].cssText.match(/td/i))Q[m]=q[m].cssRules[j].cssText;
if(A('style')[0]&&A('style')[0].innerHTML.match(/td/i))Q[m]=A('style')[0].innerHTML;
};
X=da?q[m].cssText:Q.join();
};
for(i=0;i<TD().length;i++)
{sh=TD(i).style.height;ah=TD(i).getAttribute('height');
if(!da){if(!ah.match(/\D/))ah+='px';};
sb=TD(i).style.backgroundColor;ab=TD(i).getAttribute('bgColor');
for(n=0;n<q.length;n++)
if(!da)
{N=q[n].ownerNode.nodeName;
if(N=='link')
{for(o=0;o<q[n].cssRules.length;o++)
q[n].cssRules[o].cssText.match(/td[^;|\}]*height:([\d]*[^;|\}]*)/i);
ah=RegExp.$1;
};
if(zz==0&&A('html')[0].innerHTML.match(/style/i))
{if(A('style')[0])st=A('style')[0].innerHTML;
if(st.match(/(td.*height:([\d]*[^;|\}]*))/i))sh=RegExp.$2;
if(st.match(/(td.*background-Color:([^;|\}]*))/i))sb=RegExp.$2;
};
if(zz==0&&X!=0)
{st=X;
if(st.match(/(td.*height:([\d]*[^;|\}]*))/i))sh=RegExp.$2;
if(st.match(/(td.*background-Color:([^;|\}]*))/i))sb=RegExp.$2;
};
};
H[i]=da?TD(i).currentStyle.height:sh?sh:ah;
B[i]=da?TD(i).currentStyle.backgroundColor:sb?sb:ab;
if(!da)
{if(TD(i).style.height)H[i]=TD(i).style.height;
if(TD(i).style.backgroundColor)B[i]=TD(i).style.backgroundColor;
};
with(TD(i)){innerHTML='h='+H[i]+' bg='+B[i];style.fontFamily='verdana';};
};
zz=1;
};
</script>
</head>
<body onload='LOAD()'>
<table width=330 height=300 border=6>
<tr><td style='height:12em' bgColor=#0000ff></td></tr>
<tr><td style='height:28%' bgColor='red'></td></tr>
<tr><td height=70% style='background-Color:df33df'></td></tr>
<tr><td height=90 bgColor='green'></td></tr>
<tr><td style='height:332pt' bgColor='purple'></td></tr>
<tr><td height=19% bgColor='lightgreen'></td></tr>
<tr><td height=10 bgColor='gray'></td></tr>
</table>
</body>
</html>