-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
32 lines (25 loc) · 908 Bytes
/
scripts.js
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
(function($){
$(function(){
$(".aparat-video-frame")
.each(function(){
var $this = $( this );
var $iFrame = $("<iframe>", {
allowFullScreen: "true",
webkitallowfullscreen: "true",
mozallowfullscreen: "true",
src: $this.data("src")
})
.css({ border: "none" });
var $span = $("<span>")
.css({
display: "block",
paddingTop: "57%"
});
$this
.html("")
.append($span)
.append($iFrame)
.addClass("h_iframe-aparat_embed_frame");
});
});
}(jQuery));