| execute() { | execute() { | ||||
| let array = []; | let array = []; | ||||
| let arrayHeights = []; | let arrayHeights = []; | ||||
| this.before = $('#root'); | |||||
| RootTransformation.before = $('#root'); | |||||
| // this.before = $(':eq(0)');; | // this.before = $(':eq(0)');; | ||||
| // const v = $(':eq(0)'); // za root element | // const v = $(':eq(0)'); // za root element | ||||
| const va = $('div.fade').children().toArray(); // gledamo div-fade kao root | const va = $('div.fade').children().toArray(); // gledamo div-fade kao root | ||||
| // console.log(divRootElement); | // console.log(divRootElement); | ||||
| } | } | ||||
| rolback() { | rolback() { | ||||
| // $('#root').empty(); | |||||
| // $('#root').append(this.before); | |||||
| //$('#root').empty(); | |||||
| // $('#root').replaceWith(RootTransformation.before); | |||||
| //Temporary solution | |||||
| location.reload(true); | |||||
| //console.log(RootTransformation.before); | |||||
| } | } | ||||
| } | } |