UNPKG

unserver-unify

Version:

26 lines (24 loc) 1.08 kB
<div class="modal-header"> <button class="close" type="button" ng-click="ctrl.cancel()"> <span aria-hidden="true" > × </span> </button> <h3>{{ctrl.title}}</h3> </div> <div class="modal-body"> <!-- PDF --> <iframe allowfullscreen="" frameborder="0" height="800" ng-if="ctrl.type=='pdf' || ctrl.type=='txt'" ng-src="{{ctrl.fileURL}}" seamless="" webkitallowfullscreen="" width="100%"> </iframe> <!-- msoffice--> <iframe allowfullscreen="" frameborder="0" height="600" ng-if="ctrl.type== 'msoffice'||ctrl.type=='youtube'||ctrl.type=='vimeo' " ng-src="{{ctrl.fileURL}}" seamless="" webkitallowfullscreen="" width="100%"> </iframe> <!-- Img --> <img width="100%" ng-src="{{ctrl.fileURL}}" ng-if="ctrl.type== 'img'"> <!-- video --> <video width="100%" controls ng-if="ctrl.type== 'video'"> <source src="" ng-src="{{ctrl.fileURL}}"> Your browser does not support the video tag. </video> <h1 style="height:50%;color:grey; text-align:center;margin-top:40%;" ng-if="!ctrl.type" > The file type is not supported </h1> </div>