Sha256: ca5ef3d095ca92b01c190279dd0eda621c097bb2a19d7d7c25ec6c9f1c6ad323

Contents?: true

Size: 812 Bytes

Versions: 11

Compression:

Stored size: 812 Bytes

Contents

<section class="course-id">
  <a href="/">
    <img src="/assets/{{ include.image | default: site.acc.logo.image }}"
      width="{{ include.size | default: site.acc.logo.size }}"
      height="{{ include.height | default: site.acc.logo.height | default: site.acc.logo.size }}"
      title="{{ site.title }}" />
  </a>
  <a href="/segment/{{ session_data.segment }}">{{ site.acc.short_name }}</a>
</section>

<script defer>
  const e = document.querySelector('section.course-id');
  window.onscroll = () => {
    const top = window.pageYOffset;
    if (window.innerHeight + top >= document.body.offsetHeight - 2) {
      e.classList.add('bottom');
    } else if (top > 100) {
      e.classList.remove('bottom');
      e.classList.add('fixed');
    } else {
      e.classList.remove('fixed');
    }
  }
</script>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
askclass-course-theme-0.14.0 _includes/logo_static.html
askclass-course-theme-0.13.5 _includes/logo_static.html
askclass-course-theme-0.13.4 _includes/logo_static.html
askclass-course-theme-0.13.3 _includes/logo_static.html
askclass-course-theme-0.13.2 _includes/logo_static.html
askclass-course-theme-0.13.1 _includes/logo_static.html
askclass-course-theme-0.13.0 _includes/logo_static.html
askclass-course-theme-0.12.0 _includes/logo_static.html
askclass-course-theme-0.11.1 _includes/logo_static.html
askclass-course-theme-0.11.0 _includes/logo_static.html
askclass-course-theme-0.10.0 _includes/logo_static.html