|
5 | 5 | <h1> |
6 | 6 | <b>A Three.js - CSS3d showcase for an image gallery...</b> |
7 | 7 | </h1> |
| 8 | + <b>Note: This page is not responsive for mobile screens yet.</b><br> |
8 | 9 | Here you see an image gallery based on css3d. The photos you see are from the default <em>assets/galleries</em> |
9 | 10 | folder.<br> |
10 | | - On the top left within the canvas you can choose a folder with images to load from. (Note: In some browsers the |
11 | | - <em>webkitDirectory</em> picker may not work :/ .)<br> |
12 | | - On the top right you can choose the presentation layout of the image gallery. |
| 11 | + Above the canvas you can download the full gallery, if you want. On the top left within the canvas you have |
| 12 | + options for each arrangement.<br> |
| 13 | + Hovering (in front of camera) on image show few Exif information.<br> |
| 14 | + <!--You can choose a folder with images to load from. (Note: In some browsers the |
| 15 | + <em>webkitDirectory</em> picker may not work :/ .)<br>--> |
| 16 | + On the left in the menu you can choose an arrangement of the images. Below that you find some gloabl options.<br> |
13 | 17 | <br> |
| 18 | + <em>... implementation not finished yet.</em> |
14 | 19 | <br> |
15 | 20 | </div> |
16 | 21 | </header> |
17 | 22 | <div class="w3-container"> |
18 | 23 | <!-- Folder Picker (support by chrome, edge, firefox) --> |
19 | | - <!--<input id="imgFolderInput" #imgFolderInputNG type="file" (change)="filesPicked(imgFolderInputNG.files)" |
20 | | - webkitDirectory>--> |
| 24 | + <!-- <p> Choose your own gallery folder: |
| 25 | + <input #imgFolderInputNG type="file" (change)="filesPicked(imgFolderInputNG.files)" webkitDirectory> |
| 26 | + </p> --> |
| 27 | + |
| 28 | + <p> Download Full Gallery (~25 MB): |
| 29 | + <input #id_tglFullDefGal (change)="toggleLoadFullDefGal(id_tglFullDefGal.checked)" type="checkbox"> |
| 30 | + </p> |
21 | 31 |
|
22 | | - Load Full Gallery (~25 MB) <input #id_tglFullDefGal (change)="toggleLoadFullDefGal(id_tglFullDefGal.checked)" type="checkbox"> |
23 | 32 |
|
24 | 33 | <!-- fixed main layout menu--> |
25 | 34 | <div class="imgMainMenu"> |
26 | | - <button (click)="addOtherStuff($event)">Random</button> |
27 | | - <!-- <button id="sphere">SPHERE</button> --> |
28 | | - <!-- <button id="helix">HELIX</button> --> |
29 | | - <!-- <button id="grid">GRID</button> --> |
| 35 | + <p id="menuTitle">Choose arrangement:</p> |
| 36 | + <button class="menuMainElement" #btnGrid (click)="arrangeGallery(eArrgmt.GRID)">Grid</button><br> |
| 37 | + <!-- <button class="menuMainElement" (click)="arrangeGallery(eArrgmt.TUBE)">Tube</button><br> --> |
| 38 | + <!-- <button class="menuMainElement" (click)="arrangeGallery(eArrgmt.CUBE)">Cube</button><br> --> |
| 39 | + <button class="menuMainElement" (click)="arrangeGallery(eArrgmt.RANDOM)">Random</button><br> |
| 40 | + <p id="menuTitle">Global settings:</p> |
| 41 | + <span class="menuMainElement menuChkBx"><input #id_tglCamYawCtrl (change)="toggleCamYawCtrl(id_tglCamYawCtrl.checked)" |
| 42 | + type="checkbox" checked> Cam yaw control</span><br> |
| 43 | + <span class="menuMainElement menuChkBx"><input #id_tglCamPitchCtrl (change)="toggleCamPitchCtrl(id_tglCamPitchCtrl.checked)" |
| 44 | + type="checkbox" unchecked> Cam pitch control</span><br> |
| 45 | + <!-- <button class="menuMainElement" (click)="resetPerspective()">Reset perspective</button> --> |
| 46 | + </div> |
| 47 | + |
| 48 | + <!-- fixed main layout menu--> |
| 49 | + <div class="imgSubMenu"> |
| 50 | + <p id="menuTitle">Arrangement options:</p> |
| 51 | + <!--Use [ngStyle]= / [style.X]= --> |
| 52 | + <!--<span [style.display]="gggggetHideState()" class="menuSubElement">Show Line Grid <input #id_tglShowGrid (change)="toggleShowGrid(id_tglShowGrid.checked)" type="checkbox" unchecked></span><br>--> |
| 53 | + <!-- use the id / view child reference--> |
| 54 | + <p #id_spnShowGrid class="menuSubElement"> |
| 55 | + <input #id_tglShowGrid (change)="toggleShowGrid(id_tglShowGrid.checked)" type="checkbox" unchecked> |
| 56 | + Show Line Grid |
| 57 | + </p> |
| 58 | + <p #id_spnRangeGridCols class="menuSubElement" style="color: rgba(146, 255, 127, 0.75);">No. of columns: {{id_sldRangeGridCols.value}}<br> |
| 59 | + <input #id_sldRangeGridCols (change)="changeSldNumOfCols(id_sldRangeGridCols.value)" type="range" min="1" max="10" value="4" class="slider"> |
| 60 | + </p> |
30 | 61 | </div> |
31 | 62 |
|
32 | 63 | <!-- the canvas--> |
33 | | - <div id="canvasImgGal" #canvasImgGal (window:resize)="onResize()"></div> |
| 64 | + <div id="canvasImgGal" #canvasImgGal (window:resize)="onResize()" (keyup)="onKey($event)"></div> |
34 | 65 | </div> |
35 | 66 |
|
36 | 67 |
|
|
0 commit comments