made commercial cleaner
This commit is contained in:
parent
2d9a4dbe35
commit
c7c12ca72a
@ -20,7 +20,8 @@
|
|||||||
"tsConfig": "src/tsconfig.app.json",
|
"tsConfig": "src/tsconfig.app.json",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/favicon.ico",
|
"src/favicon.ico",
|
||||||
"src/assets"
|
"src/assets",
|
||||||
|
"src/assets/sounds"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
#appcontainer {
|
#appcontainer {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-color: #0000ff40;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"topmenu"
|
"topmenu"
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<div id="reclamespinner">
|
<div id="reclamespinner">
|
||||||
<button id="goleftbutton" (click)="goRight()">LEFT</button>
|
<button id="goleftbutton" (click)="goRight()"><</button>
|
||||||
<div id="reclamecontainer">
|
<div id="reclamecontainer">
|
||||||
<img class="reclameitem" src="/assets/{{image}}" *ngFor="let image of images"/>
|
<img (click)="react(image)" class="reclameitem" src="/assets/{{image}}" *ngFor="let image of images"/>
|
||||||
</div>
|
</div>
|
||||||
<button id="gorightbutton" (click)="goLeft()">RIGHT</button>
|
<button id="gorightbutton" (click)="goLeft()">></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#reclamespinner {
|
#reclamespinner {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: 1fr;
|
grid-template-rows: 1fr;
|
||||||
|
grid-template-columns: 35px 1fr 35px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
@ -16,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#goleftbutton, #gorightbutton {
|
#goleftbutton, #gorightbutton {
|
||||||
position: absolute;
|
//position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
#goleftbutton {
|
#goleftbutton {
|
||||||
|
|||||||
@ -31,4 +31,15 @@ export class ReclamespinnerComponent implements OnInit {
|
|||||||
this.images.splice(0, 1);
|
this.images.splice(0, 1);
|
||||||
this.images.push(string);
|
this.images.push(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playAudio() {
|
||||||
|
const audio = new Audio();
|
||||||
|
audio.src = 'assets/sounds/nature2.wav';
|
||||||
|
audio.load();
|
||||||
|
audio.play();
|
||||||
|
}
|
||||||
|
|
||||||
|
react(image: string) {
|
||||||
|
this.playAudio();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user