diff options
author | codecalm <codecalm@gmail.com> | 2020-03-10 22:12:47 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-10 22:12:47 +0100 |
commit | fe151338aeedcf04cc2078653193903519f7b4ad (patch) | |
tree | 051e557be0474af0192e1990b3f352885545509b /src/list.html | |
parent | icons sprite (diff) | |
download | tabler-icons-fe151338aeedcf04cc2078653193903519f7b4ad.tar.xz |
icons directory structure
Diffstat (limited to 'src/list.html')
-rw-r--r-- | src/list.html | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/src/list.html b/src/list.html deleted file mode 100644 index bc77ac1..0000000 --- a/src/list.html +++ /dev/null @@ -1,81 +0,0 @@ ---- ---- -<!doctype html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <meta name="viewport" - content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> - <meta http-equiv="X-UA-Compatible" content="ie=edge"> - - <link rel="stylesheet" href="editor.css"> - <title>Tabler Icons</title> - - <style> - body { - display: none; - } - </style> -</head> -<body> -<div class="container"> - <div class="box"> - - <div class="mb"> - <div class="icons-list"> - {% for icon in site.icons %} - {% assign name = icon.slug %} - <div class="icons-list-icon js-icon" title="{{ icon.slug }}" data-icon="{{ name }}"> - {% include icon.html name=name %} - </div> - {% endfor %} - </div> - </div> - - <div class="mb"> - <div class="icons-list"> - {% for icon in site.icons %} - {% assign name = icon.slug %} - <div class="icons-list-icon js-icon" title="{{ icon.slug }}" data-icon="{{ name }}"> - {% include icon.html name=name stroke=1.25 %} - </div> - {% endfor %} - </div> - </div> - </div> -</div> - -<script src="{{ site.baseurl }}/jquery-3.4.1.slim.min.js"></script> -<script> - - $(document).ready(function () { - $('body') - .on('click', '.js-icon', function (e) { - var icon = $(this).attr('data-icon'); - - $('.js-icon-name').html(icon); - localStorage.setItem('icon', icon); - - $('.js-icon-manager svg').replaceWith($(this).find('>svg:eq(0)').clone()); - - e.preventDefault(); - return false; - }) - .on('input', '.js-input-range', function(e){ - $('.js-icon svg').css('stroke-width', $(this).val()); - - e.preventDefault(); - return false; - }); - - - var icon = localStorage.getItem('icon'); - if (icon) { - $('.js-icon[data-icon="' + icon + '"]').eq(0).click(); - } - - document.body.style.display = "block" - }); -</script> -</body> -</html> |