Commit 24e48ec13216d91951717126f0d60596b66039d0

Authored by Lars Jørgen Fredheim
1 parent e7044a76

Refactored resources

Showing 205 changed files with 164 additions and 2832 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 205 files are displayed.

.htaccess
1 1 RewriteEngine On
2 2 RewriteCond %{REQUEST_FILENAME} !-f
3 3 RewriteCond %{REQUEST_FILENAME} !-d
4   -RewriteRule ^(.*)\.html$ /$1 [L,R=301]
5 4 \ No newline at end of file
  5 +RewriteRule ^([^.]+)$ $1.html [NC,L] # Remove .html from url
6 6 \ No newline at end of file
... ...
archived/layoutMeasurements.js deleted
1   -class LayoutMeasurements {
2   -
3   - constructor() {
4   - this.UI = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
5   - this.layoutContainer = new BABYLON.GUI.Rectangle();
6   - this.image = undefined;
7   - this.sides = undefined;
8   - this.inputs = [];
9   - }
10   -
11   - init(object) {
12   - this.layoutContainer.height = 1;
13   - this.layoutContainer.width = 1;
14   - this.layoutContainer.alpha = 1;
15   -
16   - this.image = object.image;
17   - this.image.width = "20%";
18   - this.image.height = "35%";
19   - this.image.left = "-25%";
20   - this.layoutContainer.addControl(this.image);
21   -
22   - this.sides = object.sides;
23   -
24   - this.createInputs();
25   - this.createBackButton();
26   - this.createContinueButton();
27   -
28   - this.UI.addControl(this.layoutContainer);
29   - }
30   -
31   - createInputs() {
32   - for (let i = 0; i < this.sides; i++) {
33   - let input = new BABYLON.GUI.InputText();
34   - input.width = 0.15;
35   - input.height = "40px";
36   - input.left = "10%";
37   - let top = -5 * this.sides + i * 10;
38   - input.top = top + "%";
39   - input.color = "black";
40   - input.background = "white";
41   - input.focusedBackground = "white";
42   -
43   - this.inputs.push(input);
44   - this.layoutContainer.addControl(input);
45   - }
46   - }
47   -
48   - createBackButton() {
49   - let btBack = new BABYLON.GUI.Button.CreateSimpleButton("btPrevious", "Tilbake");
50   - btBack.width = 0.075;
51   - btBack.height = 0.075;
52   - btBack.left = "-43%";
53   - btBack.top = "43%";
54   - btBack.color = "black";
55   - btBack.background = "white";
56   - btBack.onPointerDownObservable.add( ()=> { this.goBack() } );
57   -
58   - this.layoutContainer.addControl(btBack);
59   - }
60   -
61   - createContinueButton() {
62   - let btContinue = new BABYLON.GUI.Button.CreateSimpleButton("btContinue", "Fortsett");
63   - btContinue.width = 0.075;
64   - btContinue.height = 0.075;
65   - btContinue.left = "43%";
66   - btContinue.top = "43%";
67   - btContinue.color = "black";
68   - btContinue.background = "white";
69   - btContinue.onPointerDownObservable.add( ()=> { this.create() } );
70   -
71   - this.layoutContainer.addControl(btContinue);
72   - }
73   -
74   - verifyInput() {
75   - for (let i = 0; i < this.inputs.length; i++) {
76   - if (!Number.isInteger(this.inputs[i]))
77   - return false;
78   - }
79   -
80   - return true;
81   - }
82   -
83   - goBack() {
84   - this.layoutContainer.isVisible = false;
85   - layoutSelection = new LayoutSelection();
86   - layoutSelection.initLayoutSelection();
87   - }
88   -
89   - create() {
90   - //if(this.verifyInput()) {
91   - let width = parseInt(this.inputs[0].text);
92   - let depth = parseInt(this.inputs[1].text);
93   - this.layoutContainer.isVisible = false;
94   - //createMenu(width, depth);
95   - //}
96   - }
97   -
98   -}
99 0 \ No newline at end of file
archived/layoutSelection.js deleted
1   -class LayoutSelection {
2   -
3   - constructor() {
4   - this.UI = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
5   - this.layoutContainer = new BABYLON.GUI.Rectangle();
6   - }
7   -
8   - initLayoutSelection() {
9   - this.layoutContainer.height = 1;
10   - this.layoutContainer.width = 1;
11   - this.layoutContainer.alpha = 1;
12   -
13   - let layout1 = this.createLayoutPreview("-25%", "-15%", "square", "images/terrace_square.png", 2);
14   -
15   - let layout2 = this.createLayoutPreview("-10%", "-15%", "l_shape", "images/terrace_l_shape.png", 6);
16   -
17   - let layout3 = this.createLayoutPreview("5%", "-15%", "corner_cut", "images/terrace_diamond.png", 5);
18   -
19   - let layout4 = this.createLayoutPreview("20%", "-15%", "triangle", "images/terrace_triangle.png", 3);
20   -
21   - let emptyContainer1 = this.getRectContainer("-25%", "15%");
22   - this.layoutContainer.addControl(emptyContainer1);
23   -
24   - let emptyContainer2 = this.getRectContainer("-10%", "15%");
25   - this.layoutContainer.addControl(emptyContainer2);
26   -
27   - let emptyContainer3 = this.getRectContainer("5%", "15%");
28   - this.layoutContainer.addControl(emptyContainer3);
29   -
30   - let emptyContainer4 = this.getRectContainer("20%", "15%");
31   - this.layoutContainer.addControl(emptyContainer4);
32   -
33   - this.UI.addControl(this.layoutContainer);
34   - }
35   -
36   - createLayoutPreview(left, top, name, url, sides) {
37   - let object = {
38   - container : this.getRectContainer(left, top),
39   - image : new BABYLON.GUI.Image(name, url),
40   - button : this.getImageButton(name, url),
41   - sides : sides
42   - };
43   -
44   - object.container.addControl(object.button);
45   - object.button.onPointerDownObservable.add( ()=> { this.selected(object) } );
46   - this.layoutContainer.addControl(object.container);
47   -
48   - return object;
49   - }
50   -
51   - getRectContainer(left, top) {
52   - let rect = new BABYLON.GUI.Rectangle();
53   - rect.width = "10%";
54   - rect.height = "20%";
55   - rect.cornerRadius = 10;
56   - rect.color = "black";
57   - rect.thickness = 1;
58   - rect.background = "white";
59   - rect.left = left;
60   - rect.top = top;
61   -
62   - return rect;
63   - }
64   -
65   - getImageButton(name, imageUrl) {
66   - let button = BABYLON.GUI.Button.CreateImageOnlyButton(name, imageUrl);
67   - button.width = 1;
68   - button.height = 1;
69   - button.color = "white";
70   - button.background = "white";
71   - button.getChildByName(name + "_icon").stretch = BABYLON.GUI.Image.STRETCH_UNIFORM;
72   -
73   - return button;
74   - }
75   -
76   - selected(object) {
77   - this.layoutContainer.isVisible = false;
78   - layoutMeasurements = new LayoutMeasurements();
79   - layoutMeasurements.init(object);
80   - }
81   -
82   -}
83 0 \ No newline at end of file
css/style.css
... ... @@ -2,7 +2,7 @@
2 2 /* ------------------------ Tags ----------------------------- */
3 3  
4 4 html, body {
5   - overflow: hidden; /*Remove this to enable scrolling */
  5 + overflow: hidden;
6 6 width : 100%;
7 7 height : 100%;
8 8 margin : 0;
... ... @@ -25,18 +25,27 @@ ul li {
25 25 }
26 26  
27 27 /* ----------------------------------------------------------- */
28   -/* -------------------- Main Wrappers ------------------------ */
  28 +/* ---------------------- Wrappers -------------------------- */
29 29  
30   -#renderCanvas {
  30 +#setup {
  31 + overflow: auto;
31 32 position: fixed;
32   - width : 100%;
33   - height : 100%;
34   - touch-action: none;
35   - z-index : 5;
  33 + width: 100%;
  34 + height: 100%;
36 35 }
37 36  
38   -#renderCanvas:focus {
39   - outline:0;
  37 +.custom-terrace-wrapper {
  38 + overflow-y: auto;
  39 + overflow-x: hidden;
  40 + border-top-left-radius: 10px;
  41 + border-bottom-left-radius: 10px;
  42 + position: fixed;
  43 + right: 0;
  44 + height: 100%;
  45 + width: 275px;
  46 + z-index: 20;
  47 + background: url("../img/wallpapers/funky-lines.png");
  48 + border: 1px solid black;
40 49 }
41 50  
42 51 #main {
... ... @@ -44,19 +53,16 @@ ul li {
44 53 text-align: center;
45 54 }
46 55  
47   -#initTerrace {
48   - position: absolute;
49   - left: 50%;
50   - top: 50%;
51   - width: 750px;
52   - height: 600px;
  56 +#renderCanvas {
  57 + position: fixed;
  58 + width : 100%;
  59 + height : 100%;
  60 + touch-action: none;
  61 + z-index : 5;
53 62 }
54 63  
55   -#setup {
56   - overflow: auto;
57   - position: fixed;
58   - width: 100%;
59   - height: 100%;
  64 +#renderCanvas:focus {
  65 + outline:0;
60 66 }
61 67  
62 68 /* ----------------------------------------------------------- */
... ... @@ -64,7 +70,7 @@ ul li {
64 70  
65 71 .setup {
66 72 overflow: auto;
67   - background: lightgrey url("../images/background.jpg") no-repeat center;
  73 + background: lightgrey url("../img/wallpapers/background.jpg") no-repeat center;
68 74 height: 100%;
69 75 background-size: cover;
70 76 }
... ... @@ -144,7 +150,7 @@ ul li {
144 150 /* ----------------------------------------------------------- */
145 151 /* -------------------- Custom terrace ----------------------- */
146 152  
147   -#customTerraceGUI {
  153 +#custom-terrace-gui {
148 154 width: 300px;
149 155 text-align: center;
150 156 height: 100%;
... ... @@ -153,11 +159,8 @@ ul li {
153 159 #customTerraceSidePanel {
154 160 width: 100%;
155 161 height: 100%;
156   - /*background-color: red;*/
157 162 border-radius: 10px;
158 163 margin-top: 20px;
159   - /*padding: 20px;
160   - /*border: 3px solid black;*/
161 164 }
162 165  
163 166 #addLength, #deleteLength {
... ... @@ -224,20 +227,6 @@ ul li {
224 227 height: 100%;
225 228 }
226 229  
227   -.custom-terrace-wrapper {
228   - overflow-y: auto;
229   - overflow-x: hidden;
230   - border-top-left-radius: 10px;
231   - border-bottom-left-radius: 10px;
232   - position: fixed;
233   - right: 0;
234   - height: 100%;
235   - width: 275px;
236   - z-index: 20;
237   - background: url("../images/wallpapers/funky-lines.png");
238   - border: 1px solid black;
239   -}
240   -
241 230 /* ----------------------------------------------------------- */
242 231 /* --------------------- Nav Buttons ------------------------- */
243 232  
... ... @@ -339,7 +328,6 @@ ul li {
339 328 background-color: rgba(249, 249, 249, 0.5);
340 329 border-radius: 15px;
341 330 border: 1px solid black;
342   - /*margin: 5px;*/
343 331 padding: 5px;
344 332 }
345 333  
... ... @@ -377,7 +365,7 @@ ul li {
377 365 z-index: 20;
378 366 width: 800px;
379 367 height: 600px;
380   - background: url("../images/wallpapers/funky-lines.png");
  368 + background: url("../img/wallpapers/funky-lines.png");
381 369 left: calc(50% - 400px);
382 370 top: calc(50% - 300px);
383 371 border: 1px solid black;
... ... @@ -585,7 +573,7 @@ ul li {
585 573 }
586 574  
587 575 /* ----------------------------------------------------------- */
588   -/* ------------------- Module Menu --------------------------- */
  576 +/* ---------------------- Module Menu ------------------------ */
589 577  
590 578 #moduleMenuToggleButton {
591 579 z-index: 20;
... ... @@ -614,7 +602,7 @@ ul li {
614 602 top: 0;
615 603 z-index: 10;
616 604 border: 1px solid black;
617   - background: url("../images/wallpapers/funky-lines.png");
  605 + background: url("../img/wallpapers/funky-lines.png");
618 606 border-top-left-radius: 10px;
619 607 border-bottom-left-radius: 10px;
620 608 transition: right 0.5s;
... ... @@ -791,8 +779,8 @@ ul li {
791 779 height: 40px;
792 780 }
793 781  
794   -/************************************************/
795   -/***************** Autogen **********************/
  782 +/* ----------------------------------------------------------- */
  783 +/* ------------------------- Autogen ------------------------- */
796 784  
797 785 .autoGenPoleButton {
798 786 height: 80px;
... ... @@ -804,7 +792,7 @@ ul li {
804 792 position: fixed;
805 793 width: 50%;
806 794 height: 70%;
807   - background: lightgrey url("../images/background.jpg") no-repeat center;
  795 + background: lightgrey url("../img/background.jpg") no-repeat center;
808 796 left: 25%;
809 797 top: 15%;
810 798 border: 1px solid black;
... ... @@ -868,8 +856,8 @@ ul li {
868 856 margin: 0;
869 857 }
870 858  
871   -/************************************************/
872   -/***************** Overlay **********************/
  859 +/* ----------------------------------------------------------- */
  860 +/* ---------------------- Help overlay ----------------------- */
873 861  
874 862 .init-info {
875 863 position: fixed;
... ... @@ -1039,4 +1027,6 @@ ul li {
1039 1027  
1040 1028 .offset20 {
1041 1029 margin-top: 20px;
1042   -}
1043 1030 \ No newline at end of file
  1031 +}
  1032 +
  1033 +/* ----------------------------------------------------------- */
1044 1034 \ No newline at end of file
... ...
images/180.png deleted

4.6 KB

images/45.png deleted

3.91 KB

images/90.png deleted

4.5 KB

images/btn_rotate_pole.png deleted

2.62 KB

images/download.png deleted

1.11 KB

images/end.png deleted

3.59 KB

images/icons/auto.psd deleted
No preview for this file type
images/icons/cancel.png deleted

5.25 KB

images/icons/close.png deleted

3.95 KB

images/icons/finished.png deleted

5.3 KB

images/icons/home.png deleted

759 Bytes

images/icons/left_arrow_black.png deleted

1.14 KB

images/icons/next.png deleted

2.58 KB

images/icons/pdf_2.png deleted

5.02 KB

images/icons/ruler_3.png deleted

10.6 KB

images/icons/ruler_outlined.png deleted

3.38 KB

images/icons/view_.png deleted

2.01 KB

images/icons/view_outlined.png deleted

7 KB

images/menu_arrow.png deleted

1.84 KB

images/menu_pole_180.png deleted

17.1 KB

images/menu_pole_45.png deleted

20.2 KB

images/menu_pole_90.png deleted

17.3 KB

images/menu_pole_delete_old.png deleted

564 Bytes

images/menu_pole_end.png deleted

12.9 KB

images/menu_pole_lock.png deleted

1.86 KB

images/menu_pole_lock_old.png deleted

586 Bytes

images/menu_pole_rotate_left_old.png deleted

1.46 KB

images/menu_pole_rotate_right_old.png deleted

1.45 KB

images/menu_pole_unlock.png deleted

1.94 KB

images/menu_pole_unlock_old.png deleted

841 Bytes

images/menu_pole_wall.png deleted

22.2 KB

images/menu_tab_arrows_old.png deleted

3.1 KB

images/menu_terrace_texture_1.png deleted

21.2 KB

images/menu_terrace_texture_2.png deleted

20.7 KB

images/menu_terrace_texture_3.png deleted

27 KB

images/menu_terrace_texture_4.png deleted

27.3 KB

images/menu_toggle_arrows.png deleted

2.54 KB

images/poles/45_alt.png deleted

18.9 KB

images/poles/90_labeled deleted
No preview for this file type
images/poles/psd/180.psd deleted
No preview for this file type
images/poles/psd/45.psd deleted
No preview for this file type
images/poles/psd/90.psd deleted
No preview for this file type
images/poles/psd/end.psd deleted
No preview for this file type
images/poles/psd/wall.psd deleted
No preview for this file type
images/poles/raw/180.png deleted

27.6 KB

images/poles/raw/45.png deleted

29.9 KB

images/poles/raw/90.png deleted