Sha256: 137b7bf8264f3ae4e902ae886dbe6d7c7ab0140e1ae0e7406d3d2d509d9d3124
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
--- layout: default --- {% assign strap = page.title %} <div class="hero hero-65"> <div class="hero__overlay h-100"> {% picture {{ page.hero.file | prepend: 'content/' }} --img class="hero__image hero__image--fixed hero-65" --alt {{ page.hero.alt }} %}</div> <header class="hero__strap hero__strap--center image__filter--blur hero-65" aria-label="{{ strap }}"> <h1 aria-hidden="true" > {% assign n = strap.size | minus: 1 %} {%- for char in (0..n ) -%} <span style="animation-delay: {{ char | times: 40 | plus: 200 }}ms;">{{ strap | slice: char }}</span> {%- endfor -%}</h1> </header> </div> <div class="faq__wrapper"> {% for faq in site.data.faq %} <div class="faq__panel"> <div class="faq__question"> <h4 class="faq__question--title">{{ faq.question }}</h4><i class="fas fa-chevron-down"></i> </div> <div class="faq__answer faq__answer--reveal"> <p>{{ faq.answer }}</p> </div> </div> {% endfor %} </div> <script> /* On load we hide all the answers. */ const title = document.querySelectorAll(".faq__answer--reveal"); for(var i = 0; i < title.length; i++) title[i].classList.remove('faq__answer--reveal'); </script> <script> /* Watch for clicks and reveal text */ document.querySelectorAll('.faq__question').forEach(function(el){ el.addEventListener('click', function() { this.classList.toggle('faq__question--reveal'); const n = this.nextElementSibling; n.classList.toggle('faq__answer--reveal'); }); }); </script> <div class="faq__contact"> <h2 class="faq__contact--strap">Not found the answer?</h2> {% include contact-form.html %} </div>
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
slow-steps-0.3.2 | _layouts/faq.html |
slow-steps-0.3.1 | _layouts/faq.html |
slow-steps-0.3.0 | _layouts/faq.html |
slow-steps-0.2.1 | _layouts/faq.html |
slow-steps-0.2.0 | _layouts/faq.html |