aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-share.component.html
blob: 36ec38d8869015d862b16de9e7e754e725cf35de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">

      <div class="modal-header">
        <button type="button" class="close" aria-label="Close" (click)="hide()">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="title-page title-page-single">Share</h4>
      </div>

      <div class="modal-body">
        <div class="form-group">
          <label>URL</label>
          <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
        </div>

        <div class="form-group">
          <label>Embed</label>
          <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
        </div>

        <div *ngIf="notSecure()" class="alert alert-warning">
          The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites).
        </div>
      </div>
    </div>
  </div>
</div>