56 lines
1.1 KiB
HTML
Executable File
56 lines
1.1 KiB
HTML
Executable File
<html>
|
|
<head>
|
|
<link href="css/nodescore-tablet.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="thesquare">
|
|
|
|
<script type="text/javascript">
|
|
for (var i=0; i<36;i++) {
|
|
var sqrowdiv = document.createElement('div');
|
|
sqrowdiv.className="sqrow"
|
|
var msdiv = document.createElement('div');
|
|
msdiv.className="magicsquare"
|
|
|
|
this.sqrowdiv.appendChild(this.msdiv);
|
|
|
|
var sqa = document.createElement('p');
|
|
var sqb = document.createElement('p');
|
|
var sqc = document.createElement('p');
|
|
var sqd = document.createElement('p');
|
|
|
|
sqa.innerHTML = sqa.innerHTML + '';
|
|
sqb.innerHTML = sqb.innerHTML + '';
|
|
sqc.innerHTML = sqc.innerHTML + '';
|
|
sqd.innerHTML = sqd.innerHTML + '';
|
|
|
|
sqa.className="sqa"
|
|
sqb.className="sqb"
|
|
sqc.className="sqc"
|
|
sqd.className="sqd"
|
|
|
|
sqa.id="sqr"+i
|
|
sqb.id="sqr"+i
|
|
sqc.id="sqr"+i
|
|
sqd.id="sqr"+i
|
|
|
|
this.msdiv.appendChild(this.sqa);
|
|
this.msdiv.appendChild(this.sqb);
|
|
this.msdiv.appendChild(this.sqc);
|
|
this.msdiv.appendChild(this.sqd);
|
|
|
|
document.body.appendChild(sqrowdiv);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|