Compare commits

..

No commits in common. "c58ccea3dda2835bd6e2d4e54131c9dc1d48c49b" and "0f7068f175110c96cd8e9334e59090ab8242d572" have entirely different histories.

2 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@
<section class="container middle" *ngFor="let n of news; let index;">
<div class="content columns">
<div class="col center">
<div class="button big" [ngStyle]="{transform:'translateX('+n.random+'vw)'}">
<div class="button big" [ngStyle]="{transform:'translateX('+n.random+'%)'}">
<h1>Podcast {{n.title}}</h1>
</div>
</div>

View File

@ -21,6 +21,7 @@ export class AppComponent implements OnInit {
playerService.init_app$
.subscribe(
(res:any) => {
console.log('jsjs')
this.start = res;
}
)
@ -35,8 +36,8 @@ export class AppComponent implements OnInit {
randomPosition():number {
let seed = Math.random();
let max=40
let min=-40
let max=200
let min=-200
return Math.floor(Math.random() * (max - min + 1) + min)
}
}