2024-04-11 08:19:07 +01:00
|
|
|
<!-- <ion-header>
|
2023-12-06 12:07:22 +01:00
|
|
|
<ion-toolbar>
|
|
|
|
|
<ion-title>swiper</ion-title>
|
|
|
|
|
</ion-toolbar>
|
2024-04-11 08:19:07 +01:00
|
|
|
</ion-header> -->
|
2023-12-06 12:07:22 +01:00
|
|
|
|
|
|
|
|
<ion-content>
|
2024-04-17 09:51:25 +01:00
|
|
|
<swiper-container #swipers [slidechange]="onSlideChange()" >
|
2024-04-11 08:19:07 +01:00
|
|
|
<swiper-slide *ngFor="let files of publicationList.Files let k = index">
|
|
|
|
|
<div >
|
|
|
|
|
<img *ngIf="checkFileType.checkFileType(files.FileExtension ) == 'image'" class="post-img"
|
2024-04-17 09:51:25 +01:00
|
|
|
[src]="'data:image/jpg;base64,' + files.FileBase64" loading="lazy">
|
2024-04-17 11:35:04 +01:00
|
|
|
|
2024-04-17 09:51:25 +01:00
|
|
|
<video #videoElement [appVisibility]="onVisibilityChange" *ngIf="checkFileType.checkFileType(files.FileExtension ) == 'video'" class="post-video" controls="controls" preload="none"
|
2024-04-17 11:35:04 +01:00
|
|
|
playsinline webkit-playsinline="webkit-playsinline" (play)="stopvideoService.registerVideoWithEvent($event)"q>
|
2024-04-17 09:51:25 +01:00
|
|
|
<source [src]="files.FileBase64" type="video/mp4">
|
2024-04-11 08:19:07 +01:00
|
|
|
</video>
|
2024-04-17 09:51:25 +01:00
|
|
|
|
|
|
|
|
<!-- <button class="play-button" *ngIf="!videoPlaying && checkFileType.checkFileType(files.FileExtension ) == 'video'">
|
|
|
|
|
▶
|
|
|
|
|
</button> -->
|
2024-04-17 11:35:04 +01:00
|
|
|
|
2024-04-11 08:19:07 +01:00
|
|
|
</div>
|
|
|
|
|
</swiper-slide>
|
2024-04-17 11:35:04 +01:00
|
|
|
|
2024-04-11 08:19:07 +01:00
|
|
|
</swiper-container>
|
2023-12-06 12:07:22 +01:00
|
|
|
|
2024-04-17 11:35:04 +01:00
|
|
|
|
2023-12-06 12:07:22 +01:00
|
|
|
</ion-content>
|
2024-04-11 08:19:07 +01:00
|
|
|
|
|
|
|
|
<ion-footer>
|
2024-04-19 11:27:28 +01:00
|
|
|
<div *ngIf="publicationList?.Files?.length > 1" class="dots-container">
|
2024-04-17 11:35:04 +01:00
|
|
|
<span *ngFor="let files of publicationList.Files; let k = index"
|
|
|
|
|
[class.dotsSwiper]="true"
|
2024-04-11 08:19:07 +01:00
|
|
|
[class.active-dot]="swiperIndex === k"
|
|
|
|
|
(click)="goToSlide(k)"
|
|
|
|
|
>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</ion-footer>
|
2024-04-17 11:49:07 +01:00
|
|
|
|
2024-04-18 16:33:32 +01:00
|
|
|
|
2024-04-17 11:49:07 +01:00
|
|
|
<!-- <ion-footer>
|
|
|
|
|
<div *ngIf="publicationList.Files.length > 1" class="dots-container">
|
|
|
|
|
<span *ngFor="let files of publicationList.Files; let k = index"
|
|
|
|
|
[class.dotsSwiper]="true"
|
|
|
|
|
[class.active-dot]="swiperIndex === k"
|
2024-04-18 16:33:32 +01:00
|
|
|
[class.small-dot-after]="k === swiperIndex + 5"
|
|
|
|
|
[class.small-dot-before]="k === swiperIndex - 5"
|
|
|
|
|
[class.smaller-dot-after]="k === swiperIndex + 6"
|
|
|
|
|
[class.smaller-dot-before]="k === swiperIndex - 6"
|
|
|
|
|
[class.visibility-hiden-dot-after]="k === swiperIndex + 7"
|
|
|
|
|
[class.visibility-hiden-dot-before]="k === swiperIndex - 7"
|
|
|
|
|
(click)="goToSlide(k)">
|
2024-04-17 11:49:07 +01:00
|
|
|
</span>
|
|
|
|
|
</div>
|
2024-04-18 16:33:32 +01:00
|
|
|
</ion-footer> -->
|