X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/709f6968bdd9cc4ed73f64efb50d2b0e97e2dfc5..b93544446c1afb2324e12cef0e670705893797cd:/wolnelektury/static/js/slides.js?ds=inline diff --git a/wolnelektury/static/js/slides.js b/wolnelektury/static/js/slides.js index 38fe8531c..c602054ab 100644 --- a/wolnelektury/static/js/slides.js +++ b/wolnelektury/static/js/slides.js @@ -95,10 +95,11 @@ function slideLabel() { for (var o = 0; o < menunodes.length; o++) { otext += nodeValue(menunodes[o]); } + otext = otext.substr(0,15) + '...'; list.options[list.length] = new Option(n + ' : ' + otext, n); } } - +/* function currentSlide() { var cs; if (document.getElementById) { @@ -114,7 +115,7 @@ function currentSlide() { } else { cs.style.visibility = 'visible'; } -} +}*/ function go(step) { if (document.getElementById('slideProj').disabled || step == 0) return; @@ -154,7 +155,7 @@ function go(step) { ce.style.visibility = 'hidden'; ne.style.visibility = 'visible'; jl.selectedIndex = snum; - currentSlide(); + //currentSlide(); number = 0; } @@ -181,6 +182,7 @@ function toggle() { var slideColl = GetElementsWithClassName('*','slide'); var slides = document.getElementById('slideProj'); var outline = document.getElementById('outlineStyle'); + var controls = document.getElementById('controls'); if (!slides.disabled) { slides.disabled = true; outline.disabled = false; @@ -190,6 +192,9 @@ function toggle() { var slide = slideColl[n]; slide.style.visibility = 'visible'; } + document.getElementById("toggle").value = "Lista slajdów"; + addClass(controls, 'hideme'); + showHide('h'); } else { slides.disabled = false; outline.disabled = true; @@ -200,6 +205,8 @@ function toggle() { slide.style.visibility = 'hidden'; } slideColl[snum].style.visibility = 'visible'; + document.getElementById("toggle").value = "CiÄ gÅy tekst"; + showHide('s'); } } @@ -374,26 +381,25 @@ function externalLinks() { function createControls() { var controlsDiv = document.getElementById("controls"); if (!controlsDiv) return; - var hider = ' onmouseover="showHide(\'s\');" onmouseout="showHide(\'h\');"'; + /*var hider = ' onmouseover="showHide(\'s\');" onmouseout="showHide(\'h\');"'; var hideDiv, hideList = ''; if (controlVis == 'hidden') { hideDiv = hider; } else { hideList = hider; - } - controlsDiv.innerHTML = '