j1-template 2021.1.18 → 2021.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_post.html +2 -1
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +3 -0
- data/_includes/themes/j1/procedures/global/attributes_loader.proc +4 -0
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +12 -7
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +21 -11
- data/_layouts/default.html +3 -120
- data/assets/data/banner.html +19 -18
- data/assets/data/cookieconsent.html +7 -4
- data/assets/data/gallery_customizer.html +106 -19
- data/assets/data/panel.html +30 -19
- data/assets/data/quicklinks.html +0 -2
- data/assets/data/rtext_resizer.html +130 -0
- data/assets/error_pages/HTTP204.html +3 -1
- data/assets/error_pages/HTTP400.html +3 -1
- data/assets/error_pages/HTTP401.html +3 -1
- data/assets/error_pages/HTTP403.html +3 -1
- data/assets/error_pages/HTTP404.html +3 -1
- data/assets/error_pages/HTTP444.html +3 -1
- data/assets/error_pages/HTTP500.html +3 -1
- data/assets/error_pages/HTTP501.html +3 -1
- data/assets/error_pages/HTTP502.html +3 -1
- data/assets/error_pages/HTTP503.html +6 -2
- data/assets/themes/j1/adapter/js/clipboard.js +26 -4
- data/assets/themes/j1/adapter/js/cookieConsent.js +19 -2
- data/assets/themes/j1/adapter/js/j1.js +38 -2
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +17 -27
- data/assets/themes/j1/adapter/js/rtextResizer.js +293 -0
- data/assets/themes/j1/adapter/js/themer.js +10 -6
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +49 -3
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +187 -0
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +2 -2
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +2 -2
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +7 -0
- data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +56 -44
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +12 -2
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
- data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.css +1 -1
- data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.min.css +1 -1
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +35 -6
- data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/_defaults/resources.yml +29 -11
- data/lib/starter_web/_data/apps/justifiedGallery.yml +40 -0
- data/lib/starter_web/_data/blocks/banner.yml +8 -8
- data/lib/starter_web/_data/blocks/footer.yml +5 -7
- data/lib/starter_web/_data/blocks/panel.yml +27 -17
- data/lib/starter_web/_data/resources.yml +24 -3
- data/lib/starter_web/_includes/attributes.asciidoc +13 -2
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/franck-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/videos/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/videos/tiktok/einhorn.jpg +0 -0
- data/lib/starter_web/assets/videos/tiktok/waluschka.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +1 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -1
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +7 -1
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +1 -3
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +1 -3
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +1 -3
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -3
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +2 -1
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +2 -2
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/_includes/attributes.asciidoc +7 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +7 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/attributes.asciidoc +7 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +3 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +3 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +3 -2
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +4 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +11 -0
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +2 -2
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +272 -126
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +27 -50
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +243 -198
- data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +6 -0
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +338 -275
- data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +9 -5
- data/assets/themes/j1/modules/kofax.7z +0 -0
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.new.js +0 -111
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.old.js +0 -103
@@ -84,7 +84,7 @@ Make a selection of theme below to preview.
|
|
84
84
|
<!-- NOTE: control the behaviour of popper.js for positioning -->
|
85
85
|
<!-- NOTE: set attribute data-flip="false" to open the SELECT list at the BOTTOM of the BUTTON -->
|
86
86
|
<button class="btn btn-primary btn-raised btn-flex btn-lg dropdown-toggle" data-flip="false" type="button" data-toggle="dropdown" data-target="#navbarDropdown" aria-haspopup="true" aria-expanded="false">
|
87
|
-
Select
|
87
|
+
Select a theme<span class="caret"></span>
|
88
88
|
</button>
|
89
89
|
<ul class="dropdown-menu scrollable-menu" role="menu">
|
90
90
|
<li><a class="dropdown-item" onclick="j1.adapter.rouge.reaplyStyles('base16')"> <i class="mdi mdi-view-quilt mdi-18px mr-2" style="color: #9E9E9E"></i>base16</a></li>
|
@@ -89,12 +89,12 @@ and *no* `modifier` is used for an Emoji.
|
|
89
89
|
|
90
90
|
.Click on `view result` to see the nice turtle ...
|
91
91
|
----
|
92
|
-
You're faster than a emoji:turtle[2x] - for sure emoji:heart[pulsed]
|
92
|
+
You're faster than a emoji:turtle[2x] - for sure emoji:heart[pulsed]!
|
93
93
|
----
|
94
94
|
|
95
95
|
[.result]
|
96
96
|
====
|
97
|
-
You're faster than a emoji:turtle[2x] - for sure emoji:heart[pulsed]
|
97
|
+
You're faster than a emoji:turtle[2x] - for sure emoji:heart[pulsed]!
|
98
98
|
====
|
99
99
|
|
100
100
|
Writing complex Asciidoc Macros for documents are not fun. For the `emoji:`
|
@@ -176,7 +176,7 @@ Simple like that!
|
|
176
176
|
<script>
|
177
177
|
$('#twemoji-picker').twemojiPicker({
|
178
178
|
init: '',
|
179
|
-
|
179
|
+
language: "{{site.language}}",
|
180
180
|
size: '3.5rem',
|
181
181
|
iconSize: '2rem',
|
182
182
|
height: '100px',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: j1-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2021.1.
|
4
|
+
version: 2021.1.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juergen_jekyll_one
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -351,6 +351,7 @@ files:
|
|
351
351
|
- assets/data/mmenu_toc.html
|
352
352
|
- assets/data/panel.html
|
353
353
|
- assets/data/quicklinks.html
|
354
|
+
- assets/data/rtext_resizer.html
|
354
355
|
- assets/data/themes.json
|
355
356
|
- assets/data/twa_v1.json
|
356
357
|
- assets/error_pages/HTTP204.html
|
@@ -382,6 +383,7 @@ files:
|
|
382
383
|
- assets/themes/j1/adapter/js/quicksearch.js
|
383
384
|
- assets/themes/j1/adapter/js/rouge.js
|
384
385
|
- assets/themes/j1/adapter/js/rtable.js
|
386
|
+
- assets/themes/j1/adapter/js/rtextResizer.js
|
385
387
|
- assets/themes/j1/adapter/js/themer.js
|
386
388
|
- assets/themes/j1/adapter/js/toccer.js
|
387
389
|
- assets/themes/j1/core/css/animate.css
|
@@ -560,7 +562,6 @@ files:
|
|
560
562
|
- assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css
|
561
563
|
- assets/themes/j1/modules/justifiedGallery/js/justifiedGallery.js
|
562
564
|
- assets/themes/j1/modules/justifiedGallery/js/justifiedGallery.min.js
|
563
|
-
- assets/themes/j1/modules/kofax.7z
|
564
565
|
- assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.css
|
565
566
|
- assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.min.css
|
566
567
|
- assets/themes/j1/modules/lightGallery/css/core/lg-transitions.css
|
@@ -770,8 +771,6 @@ files:
|
|
770
771
|
- assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css
|
771
772
|
- assets/themes/j1/modules/mdiPreviewer/js/previewer.js
|
772
773
|
- assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js
|
773
|
-
- assets/themes/j1/modules/mdiPreviewer/js/previewer.new.js
|
774
|
-
- assets/themes/j1/modules/mdiPreviewer/js/previewer.old.js
|
775
774
|
- assets/themes/j1/modules/mmenuLight/css/mmenu-light.css
|
776
775
|
- assets/themes/j1/modules/mmenuLight/css/mmenu-light.min.css
|
777
776
|
- assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css
|
@@ -1068,6 +1067,7 @@ files:
|
|
1068
1067
|
- lib/starter_web/assets/images/modules/attics/building-blocks-1920x1280-bw.jpg
|
1069
1068
|
- lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg
|
1070
1069
|
- lib/starter_web/assets/images/modules/attics/cookies-1920x1200.jpg
|
1070
|
+
- lib/starter_web/assets/images/modules/attics/franck-1920x1280.jpg
|
1071
1071
|
- lib/starter_web/assets/images/modules/attics/giammarco-boscaro-1920x1280.jpg
|
1072
1072
|
- lib/starter_web/assets/images/modules/attics/ideas-start-here-1920x1280-bw.jpg
|
1073
1073
|
- lib/starter_web/assets/images/modules/attics/jessica-ruscello-1920x1280.jpg
|
@@ -1213,6 +1213,7 @@ files:
|
|
1213
1213
|
- lib/starter_web/assets/images/pages/roundtrip/100_present_images/lightbox-thumb-3.jpg
|
1214
1214
|
- lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/avatar.jpg
|
1215
1215
|
- lib/starter_web/assets/images/pages/roundtrip/410_bs_modals_extentions/marc.jpg
|
1216
|
+
- lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg
|
1216
1217
|
- lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon-800x200.jpg
|
1217
1218
|
- lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_icon.jpg
|
1218
1219
|
- lib/starter_web/assets/images/pages/roundtrip/600_quicksearch/quicksearch_input-800x200.jpg
|
@@ -1234,6 +1235,7 @@ files:
|
|
1234
1235
|
- lib/starter_web/assets/images/pages/skeleton/library-1920x1280.jpg
|
1235
1236
|
- lib/starter_web/assets/images/pages/skeleton/romain-vignes-1920x1280.jpg
|
1236
1237
|
- lib/starter_web/assets/images/pages/skeleton/sigmund-1920x1280.jpg
|
1238
|
+
- lib/starter_web/assets/images/pages/videos/szabo-viktor-1920x1280.jpg
|
1237
1239
|
- lib/starter_web/assets/images/quotes/colored-1.jpg
|
1238
1240
|
- lib/starter_web/assets/images/quotes/colored-2.jpg
|
1239
1241
|
- lib/starter_web/assets/images/quotes/default.jpg
|
@@ -1251,6 +1253,8 @@ files:
|
|
1251
1253
|
- lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg
|
1252
1254
|
- lib/starter_web/assets/videos/headers/still/underground-broadway.jpg
|
1253
1255
|
- lib/starter_web/assets/videos/headers/still/victoria-oskolovich-on-vimeo.jpg
|
1256
|
+
- lib/starter_web/assets/videos/tiktok/einhorn.jpg
|
1257
|
+
- lib/starter_web/assets/videos/tiktok/waluschka.jpg
|
1254
1258
|
- lib/starter_web/collections/posts/private/_posts/readme
|
1255
1259
|
- lib/starter_web/collections/posts/protected/_posts/readme
|
1256
1260
|
- lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb
|
Binary file
|
@@ -1,111 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/themes/j1/modules/mdiPreviewer/css/previewer.js
|
4
|
-
# Provides JS functions for the MDI Icon Previewer
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
#
|
9
|
-
# Copyright (C) 2021 Juergen Adams
|
10
|
-
#
|
11
|
-
# J1 Template is licensed under the MIT License.
|
12
|
-
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
13
|
-
# -----------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
|
16
|
-
(function () {
|
17
|
-
|
18
|
-
var icons = {};
|
19
|
-
var icon_database = '/assets/data/mdi_icons.json';
|
20
|
-
|
21
|
-
function load_data_database() {
|
22
|
-
// Returns the icon database object
|
23
|
-
return $.ajax({
|
24
|
-
url: icon_database,
|
25
|
-
success: function (data) {
|
26
|
-
if (typeof data == 'string') {
|
27
|
-
icons = JSON.parse(data);
|
28
|
-
}
|
29
|
-
if (typeof data == 'object') {
|
30
|
-
icons = data;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
})
|
34
|
-
};
|
35
|
-
|
36
|
-
$.when( load_data_database() ).done (
|
37
|
-
function( load_database_response ) {
|
38
|
-
|
39
|
-
icons.push({ "name": "blank", "codepoint": "F068C" });
|
40
|
-
|
41
|
-
var copyText = function (text) {
|
42
|
-
// const mdi_icon = document.querySelector('#mdi-con');
|
43
|
-
// const tooltip = document.querySelector('#tooltip');
|
44
|
-
|
45
|
-
var copyFrom = document.createElement('textarea');
|
46
|
-
copyFrom.setAttribute("style", "position:fixed;opacity:0;top:100px;left:100px;");
|
47
|
-
copyFrom.value = text;
|
48
|
-
document.body.appendChild(copyFrom);
|
49
|
-
copyFrom.select();
|
50
|
-
document.execCommand('copy');
|
51
|
-
var copied = document.createElement('div');
|
52
|
-
copied.setAttribute('class', 'copied');
|
53
|
-
copied.appendChild(document.createTextNode('Copied to Clipboard'));
|
54
|
-
document.body.appendChild(copied);
|
55
|
-
|
56
|
-
// Popper.createPopper(mdi_icon, tooltip, {
|
57
|
-
// placement: 'right',
|
58
|
-
// });
|
59
|
-
|
60
|
-
setTimeout(function () {
|
61
|
-
document.body.removeChild(copyFrom);
|
62
|
-
document.body.removeChild(copied);
|
63
|
-
}, 1500);
|
64
|
-
};
|
65
|
-
// Skip info record 0 (j=1)
|
66
|
-
for (var j = 1; j < icons.length; j++) {
|
67
|
-
var div = document.createElement('div'),
|
68
|
-
i = document.createElement('i');
|
69
|
-
div.setAttribute("id", "mdi-icon");
|
70
|
-
|
71
|
-
i.className = 'mdi mdi-' + icons[j].name;
|
72
|
-
div.appendChild(i);
|
73
|
-
var code = document.createElement('code');
|
74
|
-
code.appendChild(document.createTextNode('#' + icons[j].codepoint));
|
75
|
-
div.appendChild(code);
|
76
|
-
var span = document.createElement('span');
|
77
|
-
//span.appendChild(document.createTextNode('mdi-' + icons[j].name));
|
78
|
-
span.appendChild(document.createTextNode(icons[j].name));
|
79
|
-
div.appendChild(span);
|
80
|
-
|
81
|
-
span.onclick = (function (icon) {
|
82
|
-
return function () {
|
83
|
-
//document.getElementById('name').innerHTML = icon.name;
|
84
|
-
};
|
85
|
-
})(icons[j]);
|
86
|
-
|
87
|
-
i.onmouseup = (function (icon) {
|
88
|
-
return function () {
|
89
|
-
//copyText(String.fromCharCode(parseInt(icon.value, 16)));
|
90
|
-
copyText('\\' + icon.codepoint);
|
91
|
-
};
|
92
|
-
})(icons[j]);
|
93
|
-
|
94
|
-
code.onmouseup = (function (icon) {
|
95
|
-
return function () {
|
96
|
-
copyText('#' + icon.codepoint);
|
97
|
-
};
|
98
|
-
})(icons[j]);
|
99
|
-
|
100
|
-
span.onmouseup = (function (icon) {
|
101
|
-
return function () {
|
102
|
-
copyText('mdi-' + icon.name);
|
103
|
-
//copyText(icon.name);
|
104
|
-
};
|
105
|
-
})(icons[j]);
|
106
|
-
|
107
|
-
document.getElementById('icons').appendChild(div);
|
108
|
-
}
|
109
|
-
});
|
110
|
-
|
111
|
-
})();
|
@@ -1,103 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/themes/j1/modules/mdiPreviewer/css/previewer.js
|
4
|
-
# Provides JS functions for the MDI Icon Previewer
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
#
|
9
|
-
# Copyright (C) 2021 Juergen Adams
|
10
|
-
#
|
11
|
-
# J1 Template is licensed under the MIT License.
|
12
|
-
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
13
|
-
# -----------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
|
16
|
-
(function () {
|
17
|
-
|
18
|
-
var icons = {};
|
19
|
-
var icon_database = '/assets/data/mdi_icons.json';
|
20
|
-
|
21
|
-
function load_data_database() {
|
22
|
-
// Returns the icon database object
|
23
|
-
return $.ajax({
|
24
|
-
url: icon_database,
|
25
|
-
success: function (data) {
|
26
|
-
if (typeof data == 'string') {
|
27
|
-
icons = JSON.parse(data);
|
28
|
-
}
|
29
|
-
if (typeof data == 'object') {
|
30
|
-
icons = data;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
})
|
34
|
-
};
|
35
|
-
|
36
|
-
$.when( load_data_database() ).done (
|
37
|
-
function( load_database_response ) {
|
38
|
-
|
39
|
-
icons.push({ "name": "blank", "codepoint": "F068C" });
|
40
|
-
|
41
|
-
var copyText = function (text) {
|
42
|
-
var copyFrom = document.createElement('textarea');
|
43
|
-
copyFrom.setAttribute("style", "position:fixed;opacity:0;top:100px;left:100px;");
|
44
|
-
copyFrom.value = text;
|
45
|
-
document.body.appendChild(copyFrom);
|
46
|
-
copyFrom.select();
|
47
|
-
document.execCommand('copy');
|
48
|
-
var copied = document.createElement('div');
|
49
|
-
copied.setAttribute('class', 'copied');
|
50
|
-
copied.appendChild(document.createTextNode('Copied to Clipboard'));
|
51
|
-
document.body.appendChild(copied);
|
52
|
-
setTimeout(function () {
|
53
|
-
document.body.removeChild(copyFrom);
|
54
|
-
document.body.removeChild(copied);
|
55
|
-
}, 1500);
|
56
|
-
};
|
57
|
-
// Skip info record 0 (j=1)
|
58
|
-
for (var j = 1; j < icons.length; j++) {
|
59
|
-
var div = document.createElement('div'),
|
60
|
-
i = document.createElement('i');
|
61
|
-
div.setAttribute("id", "mdi-icon");
|
62
|
-
|
63
|
-
i.className = 'mdi mdi-' + icons[j].name;
|
64
|
-
div.appendChild(i);
|
65
|
-
var code = document.createElement('code');
|
66
|
-
code.appendChild(document.createTextNode('#' + icons[j].codepoint));
|
67
|
-
div.appendChild(code);
|
68
|
-
var span = document.createElement('span');
|
69
|
-
//span.appendChild(document.createTextNode('mdi-' + icons[j].name));
|
70
|
-
span.appendChild(document.createTextNode(icons[j].name));
|
71
|
-
div.appendChild(span);
|
72
|
-
|
73
|
-
span.onclick = (function (icon) {
|
74
|
-
return function () {
|
75
|
-
//document.getElementById('name').innerHTML = icon.name;
|
76
|
-
};
|
77
|
-
})(icons[j]);
|
78
|
-
|
79
|
-
i.onmouseup = (function (icon) {
|
80
|
-
return function () {
|
81
|
-
//copyText(String.fromCharCode(parseInt(icon.value, 16)));
|
82
|
-
copyText('\\' + icon.codepoint);
|
83
|
-
};
|
84
|
-
})(icons[j]);
|
85
|
-
|
86
|
-
code.onmouseup = (function (icon) {
|
87
|
-
return function () {
|
88
|
-
copyText('#' + icon.codepoint);
|
89
|
-
};
|
90
|
-
})(icons[j]);
|
91
|
-
|
92
|
-
span.onmouseup = (function (icon) {
|
93
|
-
return function () {
|
94
|
-
copyText('mdi-' + icon.name);
|
95
|
-
//copyText(icon.name);
|
96
|
-
};
|
97
|
-
})(icons[j]);
|
98
|
-
|
99
|
-
document.getElementById('icons').appendChild(div);
|
100
|
-
}
|
101
|
-
});
|
102
|
-
|
103
|
-
})();
|