71 lines
1.0 KiB
JavaScript
71 lines
1.0 KiB
JavaScript
var Landing;
|
|
|
|
Landing = class Landing {
|
|
constructor(init_data) {
|
|
this.init_data = init_data;
|
|
}
|
|
|
|
addBlock() {}
|
|
|
|
addBlockBefore(index) {}
|
|
|
|
addBlockAfter(index) {}
|
|
|
|
deleteBlock(index) {}
|
|
|
|
moveBlockUp(index) {}
|
|
|
|
moveBlockDown(index) {}
|
|
|
|
};
|
|
|
|
Landing.Block = class Block {
|
|
constructor(init_data) {
|
|
this.init_data = init_data;
|
|
this.elements = this.init_data != null ? this.init_data : this.init_data = [];
|
|
}
|
|
|
|
};
|
|
|
|
Landing.Zero = class Zero extends Landing.Block {
|
|
constructor() {}
|
|
|
|
};
|
|
|
|
Landing.Template = class Template {};
|
|
|
|
Landing.Block.Element = class Element {};
|
|
|
|
// Размеры экранов
|
|
Block.Sizes = (function() {
|
|
class Sizes {};
|
|
|
|
Sizes.MOBILE_VERTICAL = 0; //320-480
|
|
|
|
Sizes.MOBILE_HORIZONTAL = 1; //480-640
|
|
|
|
Sizes.PAD_VERTICAL = 2; //640-960
|
|
|
|
Sizes.PAD_HORIZONTAL = 3; //960-1200
|
|
|
|
Sizes.LAPTOP = 4; //1200-MAX
|
|
|
|
return Sizes;
|
|
|
|
}).call(this);
|
|
|
|
Element.Options = (function() {
|
|
class Options {};
|
|
|
|
Options.X = 1;
|
|
|
|
Options.Y = 2;
|
|
|
|
Options.WIDTH = 3;
|
|
|
|
Options.HEIGHT = 4;
|
|
|
|
return Options;
|
|
|
|
}).call(this);
|