Sha256: 79f6b977d544c53269bbfab36747347f31a06ddf8fff1405346c316d943b927b

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

/*
 * Create a more beautiful checkbox
 */

$(function() {
  /* hide browser default checkbox */
  $("input[type=checkbox]").addClass("unloaded");
  /* create checked checkbox */
  $("input[type=checkbox][checked]").before("<i class=\"fas fa-check-circle checked\"></i>");
  /* create normal checkbox */
  $("input[type=checkbox]:not([checked])").before("<i class=\"far fa-circle\"></i>");
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redeyed-jekyll-theme-0.1.2 _javascript/utils/checkbox.js
redeyed-jekyll-theme-0.1.1 _javascript/utils/checkbox.js