SHOW:
|
|
- or go back to the newest paste.
| 1 | //javascript.js************** | |
| 2 | - | function Section() {
|
| 2 | + | |
| 3 | - | this.currentKey; |
| 3 | + | |
| 4 | - | this.offsets = []; |
| 4 | + | |
| 5 | - | this.sectionID; |
| 5 | + | |
| 6 | - | this.prefixPath; |
| 6 | + | |
| 7 | - | this.topOffset; |
| 7 | + | |
| 8 | - | } |
| 8 | + | |
| 9 | //find the section | |
| 10 | - | //constructor |
| 10 | + | $.when(Section.construct(topOffset)).done(function(){
|
| 11 | - | Section.prototype.construct = function (topOffset) {
|
| 11 | + | $.when(Section.changeIDString()).done(function(){
|
| 12 | Section.setAttributes(); | |
| 13 | - | this.sectionID = ['heim', 'tilbud', 'galleri', 'feedback']; |
| 13 | + | }); |
| 14 | - | this.prefixPath = 'body>section#content>section#'; |
| 14 | + | }); |
| 15 | - | this.topOffset = topOffset; |
| 15 | + |