Use local variables
This commit is contained in:
parent
256a6ca3b4
commit
0de7b78ca1
|
@ -19,12 +19,12 @@ function addGlobalStyle(css) {
|
|||
head.appendChild(style);
|
||||
}
|
||||
|
||||
addControls = function()
|
||||
var addControls = function()
|
||||
{
|
||||
elements = document.getElementsByClassName("html5-main-video")
|
||||
index = 0
|
||||
var elements = document.getElementsByClassName("html5-main-video")
|
||||
var index = 0
|
||||
for (index = 0; index < elements.length; index++) {
|
||||
element = elements[index]
|
||||
var element = elements[index]
|
||||
if (element.getAttribute("controls") == null) {
|
||||
element.setAttribute("controls","")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue