diff --git a/_templates/index.html b/_templates/index.html index 2453c9f95b..941e38f56a 100755 --- a/_templates/index.html +++ b/_templates/index.html @@ -5,21 +5,8 @@ layout: base id: index --- -

{% translate listintro %}

-
+
Youtube video
diff --git a/index.html b/index.html index 57ef2b2d38..18a7fe3790 100755 --- a/index.html +++ b/index.html @@ -7,21 +7,8 @@ id: index title: Bitcoin --- -

{% translate listintro %}

-
+
Youtube video
diff --git a/js/main.js b/js/main.js index 139e365b4a..3ff90c953f 100644 --- a/js/main.js +++ b/js/main.js @@ -115,6 +115,19 @@ for (var i = 0, n = domPrefixes.length; i < n; i++) { return false; } +function loadYoutubeVideo(e) { +// Load Youtube video on target node on click. +var t = getEventTarget(e), + nd = document.createElement('IFRAME'); +while (t.getAttribute('data-youtubeurl') === null || t.getAttribute('data-youtubeurl') === '') t = t.parentNode; +nd.src = t.getAttribute('data-youtubeurl'); +nd.setAttribute('frameborder', 0); +nd.setAttribute('allowfullscreen', true); +t.innerHTML = ''; +t.appendChild(nd); +t.onclick = ''; +} + function boxShow(e) { // Display the box content when the user click a box on the "Secure your wallet" page. var p = t = getEventTarget(e);