aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/modal/video-share.component.html
blob: 85cf10a6cfdddf5e8df0cafde6279323b7ca5bb1 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div bsModal #modal="bs-modal" class="modal" tabindex="-1">
  <div class="modal-dialog">
    <div class="modal-content">

      <div class="modal-header">
        <span class="close" aria-hidden="true" (click)="hide()"></span>
        <h4 class="modal-title">Share</h4>
      </div>

      <div class="modal-body">
        <div class="form-group">
          <label>URL</label>
          <div class="input-group input-group-sm">
            <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
            <div class="input-group-btn" placement="bottom right">
              <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
                <span class="glyphicon glyphicon-copy"></span>
              </button>
            </div>
          </div>
        </div>

        <div class="form-group">
          <label>Embed</label>
          <div class="input-group input-group-sm">
            <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
            <div class="input-group-btn" placement="bottom right">
              <button [ngxClipboard]="shareInput" (click)="activateCopiedMessage()" type="button" class="btn btn-default btn-search">
                <span class="glyphicon glyphicon-copy"></span>
              </button>
            </div>
          </div>
        </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 class="form-group inputs">
          <span class="action-button action-button-cancel" (click)="hide()">
            Cancel
          </span>
        </div>
      </div>
    </div>
  </div>
</div>