Template talk:VideoGallery/sandbox: Difference between revisions

m
mNo edit summary
 
Line 66: Line 66:
   new_div.style = "background-color:#f8f9fa; border:1px solid #c8ccd1; padding:3px;"
   new_div.style = "background-color:#f8f9fa; border:1px solid #c8ccd1; padding:3px;"
   new_div.appendChild(iframe);
   new_div.appendChild(iframe);
   new_div.innerHTML += "<br><span style='text-overflow:ellipsis; white-space:nowrap; overflow:hidden; display:inline-block; vertical-align:top; width:" + iframe.style.width + "; font-size:94%;' title='" + hl.innerHTML + "'>" + hl.outerHTML + "</span>";
   new_div.innerHTML += "<br><span style='text-overflow:ellipsis; white-space:nowrap; overflow:hidden; display:inline-block; vertical-align:top; width:calc(" + iframe.style.width + " - 10px); font-size:94%;' title='" + hl.innerHTML + "'>" + hl.outerHTML + "</span>";
   return new_div;
   return new_div;
}
}
6,576

edits