Sha256: 7d91c54f59e45cee5c90550e6e29cb2679e39ad2a01651cace3ff20ca8ffa969

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

/*
 * Listener for theme mode toggle
 */
$(function() {
  $(".mode-toggle").click((e) => {
    const $target = $(e.target);
    let $btn = ($target.prop("tagName") === "button".toUpperCase() ?
      $target : $target.parent());

    $btn.blur(); // remove the clicking outline
    flipMode();
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redeyed-jekyll-theme-0.1.2 _javascript/common/mode-toggle.js
redeyed-jekyll-theme-0.1.1 _javascript/common/mode-toggle.js