This commit is contained in:
silas
2018-07-11 20:51:55 +02:00
parent 50783c6ff2
commit 31691c465b
6 changed files with 28 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<div class='max-height'>
<div class='max-height overflow-hidden'>
<!-- Templates for segments-->
<div id='segment-leaf-template' class='segment segment-leaf'>
<div class='leaf-element'></div>

View File

@@ -25,6 +25,18 @@ export class LevelSite extends AbstractSite {
}
onConstruct(args) {
let a0 = -1;
let a1 = 1;
for(let i = 0; i < 10; i++)
{
let tmp = 3*a1-2*a0;
console.log("reg", i+2, tmp);
console.log("other", i+2, Math.pow(2, i+3)-3);
a0=a1;
a1=tmp;
}
this.levelCounter = Helper.nonNull(localStorage.getItem("levelCounter"), 1);
return super.onConstruct(args);
}