Commit 37d2d8b156b0a4ec6845e4e31fc065db3f459711
1 parent
337364a2
Exists in
master
and in
5 other branches
Fix: try to force param on videos/iframes (issue #324)
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
js/main.js
... | ... | @@ -1175,6 +1175,19 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
1175 | 1175 | e.preventDefault(); |
1176 | 1176 | }); |
1177 | 1177 | |
1178 | + // hack-fix IE iframe video over 9999 z-index div. | |
1179 | + $('iframe').each(function(){ | |
1180 | + var $iframe = $(this); | |
1181 | + var url = $iframe.attr('src'); | |
1182 | + var c = '?'; | |
1183 | + | |
1184 | + if(url.indexOf("?") != -1){ | |
1185 | + c = "&"; | |
1186 | + } | |
1187 | + | |
1188 | + $iframe.attr("src",url+c+"wmode=transparent"); | |
1189 | + }); | |
1190 | + | |
1178 | 1191 | }); |
1179 | 1192 | |
1180 | 1193 | window.addEventListener("message", function(ev) { | ... | ... |