title: My automatic paragraph slideshow not working
body: <p>I am facing a problem where my paragraphs inside my slideshow container are not showing. I have tried putting the JS in front of the body closing tag and also adding body onload = showSlides(). I feel like the display: none in CSS is blocking it, but I do not know. Really thankful for any help</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>// SLIDESHOW
  var slideIndex = 0;
  
  showSlides();
  function showSlides() {
      var i;
      var slides = document.getElementByClassName("mySlides");
      for (i = 0; i &lt; slides.length; i++) {
          slides[i].style.display = "none";
      }
      slideIndex++;
      if (slideIndex &gt; slides.length) {slideIndex = 1};
      
      slides[slideIndex-1].style.display = "block";
      setInterval(showSlides, 2000);
      };</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>/* SLIDESHOW */
  
  
  .facts {background-color: lightblue;
          position: relative;
          float: right;
          display: block;
          clear: both;
          margin-top: -34%;
          border-radius: 10%;
          text-align: center;
          overflow: visible;
          margin-left: 0;
          margin-right: 0;
          margin-bottom: 0
      }
  
  .mySlides {
      display: none;
      padding: 5%;
      text-align: center;
      overflow: visible;
      margin: 0
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;aside&gt;
      &lt;div class="facts"&gt;
      &lt;h2&gt;Facts about German language&lt;/h2&gt;
  
      &lt;div class="mySlides"&gt;
          &lt;p style="width:100%"&gt;German is the 11th most widely spoken language in the world&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="mySlides"&gt;
          &lt;p&gt;English and German share 60% of their vocabulary&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;div class="mySlides"&gt;
          &lt;p&gt;Besides Germany, German is the official language of both Austria and Liechtenstein and one of the official languages in Switzerland and Luxembourg&lt;/p&gt;
      &lt;/div&gt;
      
    &lt;/div&gt;
    &lt;/aside&gt;</code></pre>
  </div>
  </div>
  </p>