j1-template 2021.1.19 → 2021.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/default.html +3 -120
- data/assets/data/cookieconsent.html +7 -4
- data/assets/data/gallery_customizer.html +106 -19
- data/assets/data/quicklinks.html +0 -2
- data/assets/data/rtext_resizer.html +130 -0
- data/assets/themes/j1/adapter/js/clipboard.js +26 -4
- data/assets/themes/j1/adapter/js/j1.js +9 -3
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +17 -27
- data/assets/themes/j1/adapter/js/rtextResizer.js +293 -0
- data/assets/themes/j1/core/js/template.js +1 -1
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- 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 +1 -1
- 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/footer.yml +3 -5
- data/lib/starter_web/_data/resources.yml +24 -3
- data/lib/starter_web/_includes/attributes.asciidoc +4 -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/package.json +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 +2 -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/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/pages/public/tictok.adoc +127 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +10 -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',
|
@@ -0,0 +1,127 @@
|
|
1
|
+
---
|
2
|
+
title: TikTok
|
3
|
+
tagline: video examples
|
4
|
+
date: 2021-04-17 00:00:00 +100
|
5
|
+
description: >
|
6
|
+
Welcome to the preview page focussing on the image module. This page
|
7
|
+
shows some valuable features of the J1 Template to manage your image-based
|
8
|
+
content using lightboxes, carousels (slider), and galleries.
|
9
|
+
|
10
|
+
categories: [ TikTok ]
|
11
|
+
tags: [ Video, Desktop ]
|
12
|
+
|
13
|
+
comments: true
|
14
|
+
fam_menu_id: page_ctrl_simple
|
15
|
+
|
16
|
+
personalization: true
|
17
|
+
|
18
|
+
permalink: /pages/public/tiktok/
|
19
|
+
regenerate: false
|
20
|
+
|
21
|
+
resources: [ justifiedGallery, lightGallery ]
|
22
|
+
resource_options:
|
23
|
+
- attic:
|
24
|
+
padding_top: 400
|
25
|
+
padding_bottom: 50
|
26
|
+
opacity: 0.5
|
27
|
+
slides:
|
28
|
+
- url: /assets/images/modules/attics/franck-1920x1280.jpg
|
29
|
+
alt: Photo by Franck on Unsplash
|
30
|
+
badge:
|
31
|
+
type: unsplash
|
32
|
+
author: Franck
|
33
|
+
href: https://unsplash.com/@franckinjapan
|
34
|
+
---
|
35
|
+
|
36
|
+
// Page Initializer
|
37
|
+
// =============================================================================
|
38
|
+
// Enable the Liquid Preprocessor
|
39
|
+
:page-liquid:
|
40
|
+
|
41
|
+
// Set (local) page attributes here
|
42
|
+
// -----------------------------------------------------------------------------
|
43
|
+
// :page--attr: <attr-value>
|
44
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
45
|
+
|
46
|
+
// Load Liquid procedures
|
47
|
+
// -----------------------------------------------------------------------------
|
48
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
49
|
+
|
50
|
+
// Load page attributes
|
51
|
+
// -----------------------------------------------------------------------------
|
52
|
+
{% include {{load_attributes}} scope="none" %}
|
53
|
+
|
54
|
+
// Page content
|
55
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
56
|
+
|
57
|
+
// Include sub-documents
|
58
|
+
// -----------------------------------------------------------------------------
|
59
|
+
|
60
|
+
lorem:sentences[3]
|
61
|
+
|
62
|
+
lorem:sentences[5]
|
63
|
+
|
64
|
+
== Funny videos
|
65
|
+
|
66
|
+
lorem:sentences[3]
|
67
|
+
|
68
|
+
++++
|
69
|
+
<!-- See: https://forum.obsidian.md/t/how-do-i-embed-tiktok-videos/13532/13 -->
|
70
|
+
<!-- div style="max-width: 56vh;"><div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 177.7778%; padding-top: 120px;"><iframe src="https://www.tiktok.com/embed/6992668750692584710" allow="fullscreen" style="position: absolute; top: 0px; left: 0px; height: 100%; width: 100%;"></iframe></div -->
|
71
|
+
<iframe loading="lazy" width="340" height="700" src="https://www.tiktok.com/embed/6726553443009383682" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"></iframe>
|
72
|
+
<iframe loading="lazy" width="340" height="700" src="https://www.tiktok.com/embed/6983746143356292357" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"></iframe>
|
73
|
+
<iframe loading="lazy" width="340" height="700" src="https://www.tiktok.com/embed/6726553443009383682" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="allowfullscreen"></iframe>
|
74
|
+
|
75
|
+
<!-- script async src="https://www.tiktok.com/embed.js"></script -->
|
76
|
+
|
77
|
+
<style>
|
78
|
+
|
79
|
+
/*
|
80
|
+
$grid-breakpoint-xl: 1200px;
|
81
|
+
$grid-breakpoint-lg: 992px;
|
82
|
+
$grid-breakpoint-lg-min: 991px;
|
83
|
+
$grid-breakpoint-md: 768px;
|
84
|
+
$grid-breakpoint-md-min: 767px;
|
85
|
+
$grid-breakpoint-sm: 576px;
|
86
|
+
$grid-breakpoint-xs: 575px;
|
87
|
+
*/
|
88
|
+
|
89
|
+
.lg-tiktok {
|
90
|
+
padding-left: 200px;
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Desktop */
|
94
|
+
@media screen and (min-width: 991px) {
|
95
|
+
.lg-tiktok {
|
96
|
+
padding-left: 300px;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
/* iPad */
|
102
|
+
@media screen and (max-width: 1024px) {
|
103
|
+
.lg-tiktok {
|
104
|
+
padding-left: 40px;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
/* Mobile */
|
109
|
+
@media screen and (max-width: 575px) {
|
110
|
+
.lg-tiktok {
|
111
|
+
padding-left: 20px;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
/*
|
116
|
+
@media screen and (max-width: 575px) {
|
117
|
+
.lg-tiktok {
|
118
|
+
padding-left: 180px;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
*/
|
122
|
+
|
123
|
+
</style>
|
124
|
+
++++
|
125
|
+
|
126
|
+
// .TikTok
|
127
|
+
// gallery::jg_tiktok[role="mb-5"]
|
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.20
|
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-08-
|
11
|
+
date: 2021-08-27 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
|
@@ -1388,6 +1392,7 @@ files:
|
|
1388
1392
|
- lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc
|
1389
1393
|
- lib/starter_web/pages/public/previewer/rouge.adoc
|
1390
1394
|
- lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc
|
1395
|
+
- lib/starter_web/pages/public/tictok.adoc
|
1391
1396
|
- lib/starter_web/utilsrv/_defaults/package.json
|
1392
1397
|
- lib/starter_web/utilsrv/package.json
|
1393
1398
|
- lib/starter_web/utilsrv/server.js
|
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
|
-
})();
|