j1-template 2022.5.0.rc0 → 2022.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/dot.ruby-version +1 -0
- data/lib/starter_web/package.json +2 -2
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
- data/lib/starter_web/pages/public/blog/navigator/index.html +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +2 -25
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_images.adoc +0 -313
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_videos.adoc +0 -281
- data/lib/starter_web/pages/public/learn/_roundtrip/200_typography.adoc +0 -253
- data/lib/starter_web/pages/public/learn/_roundtrip/300_icon_fonts.adoc +0 -579
- data/lib/starter_web/pages/public/learn/_roundtrip/400_asciidoc_extensions.adoc +0 -719
- data/lib/starter_web/pages/public/learn/_roundtrip/410_bs_modals_extentions.adoc +0 -91
- data/lib/starter_web/pages/public/learn/_roundtrip/420_responsive_tables_extensions.adoc +0 -420
- data/lib/starter_web/pages/public/learn/_roundtrip/500_themes.adoc +0 -250
- data/lib/starter_web/pages/public/learn/_roundtrip/600_quicksearch.adoc +0 -425
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/attributes.asciidoc +0 -118
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/100_gistblock.asciidoc +0 -28
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_info.asciidoc +0 -14
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +0 -337
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/tables/bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/google-ad.js +0 -130
@@ -1,281 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Roundtrip
|
3
|
-
tagline: present videos
|
4
|
-
date: 2020-11-04 00:00:00 +100
|
5
|
-
description: >
|
6
|
-
Playing video on web pages seems not that special since you can already
|
7
|
-
watch videos on web pages through plugins like Flash Player, Quicktime
|
8
|
-
or Silverlight. A new standard goes to HTML5 Video, a pure HTML way to
|
9
|
-
show video on the web; instead of the previous de facto standard of using
|
10
|
-
proprietary software.
|
11
|
-
|
12
|
-
categories: [ Roundtrip ]
|
13
|
-
tags: [ Introduction, Module, Video ]
|
14
|
-
|
15
|
-
permalink: /pages/public/learn/roundtrip/present_videos/
|
16
|
-
regenerate: false
|
17
|
-
|
18
|
-
personalization: true
|
19
|
-
fab_menu_id: page_ctrl
|
20
|
-
|
21
|
-
resources: [
|
22
|
-
animate, lightGallery, justifiedGallery, video_js,
|
23
|
-
vimeo_player, vimeo_froogaloop
|
24
|
-
]
|
25
|
-
resource_options:
|
26
|
-
- attic:
|
27
|
-
slides:
|
28
|
-
# Broadway Underground - still image (animate default)
|
29
|
-
- url: /assets/videos/headers/still/underground-broadway.jpg
|
30
|
-
alt: Broadway Underground
|
31
|
-
alignY: top
|
32
|
-
animateFirst: false
|
33
|
-
# Broadway Underground - FAYETTE ST, moved file to Github/LFS
|
34
|
-
- url: https://github.com/jekyll-one-org/jekyll-one-lfs/raw/master/videos/underground-broadway.mp4
|
35
|
-
alignY: 0
|
36
|
-
isVideo: true
|
37
|
-
loop: false
|
38
|
-
duration: 12000
|
39
|
-
# Broadway Underground - still image (animate random)
|
40
|
-
- url: /assets/videos/headers/still/underground-broadway.jpg
|
41
|
-
alt: Broadway Underground
|
42
|
-
alignY: top
|
43
|
-
transition: push_left|push_right|cover_up|cover_down|fade|fadeInOut
|
44
|
-
---
|
45
|
-
|
46
|
-
// Page Initializer
|
47
|
-
// =============================================================================
|
48
|
-
// Enable the Liquid Preprocessor
|
49
|
-
:page-liquid:
|
50
|
-
|
51
|
-
// Set (local) page attributes here
|
52
|
-
// -----------------------------------------------------------------------------
|
53
|
-
// :page--attr: <attr-value>
|
54
|
-
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
55
|
-
|
56
|
-
// Load Liquid procedures
|
57
|
-
// -----------------------------------------------------------------------------
|
58
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
59
|
-
|
60
|
-
// Load page attributes
|
61
|
-
// -----------------------------------------------------------------------------
|
62
|
-
{% include {{load_attributes}} scope="all" %}
|
63
|
-
|
64
|
-
|
65
|
-
// Page content
|
66
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
67
|
-
|
68
|
-
++++
|
69
|
-
<!-- insert Google Ad (Displayanzeige): horizontal-2, adSlot="5128488466" -->
|
70
|
-
<div class="5128488466 mb-5">
|
71
|
-
<ins class="adsbygoogle"
|
72
|
-
style="display: block;"
|
73
|
-
data-ad-client="ca-pub-3885670015316130"
|
74
|
-
data-ad-slot="5128488466"
|
75
|
-
data-ad-format="auto"
|
76
|
-
data-adtest="on"
|
77
|
-
data-full-width-responsive="true">
|
78
|
-
</ins>
|
79
|
-
</div>
|
80
|
-
++++
|
81
|
-
|
82
|
-
++++
|
83
|
-
<script>
|
84
|
-
|
85
|
-
$(document).ready(function() {
|
86
|
-
var logger = log4javascript.getLogger('j1.google.ads');
|
87
|
-
var autoHideOnUnfilled = true;
|
88
|
-
|
89
|
-
var dependencies_met_page_ready = setInterval (function (options) {
|
90
|
-
if ( j1.getState() === 'finished' ) {
|
91
|
-
|
92
|
-
// monitor for state changes on the ad
|
93
|
-
// ---------------------------------------------------------------------
|
94
|
-
$('.adsbygoogle').attrchange({
|
95
|
-
trackValues: true,
|
96
|
-
callback: function (event) {
|
97
|
-
if (event.newValue === 'unfilled') {
|
98
|
-
var elm = event.target.dataset;
|
99
|
-
if (elm.adClient) {
|
100
|
-
logger.warn('\n' + 'initialized ad detected as: ' + event.newValue);
|
101
|
-
if (autoHideOnUnfilled) {
|
102
|
-
logger.info('\n' + ' hide ad for slot: ' + elm.adSlot);
|
103
|
-
$('.' + elm.adSlot ).hide();
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
}
|
108
|
-
});
|
109
|
-
|
110
|
-
// manage uncaught execeptions
|
111
|
-
// ---------------------------------------------------------------------
|
112
|
-
// window.onerror = function (msg, url, line) {
|
113
|
-
// alert("Message : " + msg );
|
114
|
-
// alert("url : " + url );
|
115
|
-
// alert("Line number : " + line );
|
116
|
-
// }
|
117
|
-
|
118
|
-
logger.info('\n' + 'initialize Google Ad on slot: ' + '5128488466');
|
119
|
-
(adsbygoogle = window.adsbygoogle || []).push({});
|
120
|
-
|
121
|
-
clearInterval(dependencies_met_page_ready);
|
122
|
-
}
|
123
|
-
});
|
124
|
-
|
125
|
-
});
|
126
|
-
|
127
|
-
</script>
|
128
|
-
++++
|
129
|
-
|
130
|
-
// Include sub-documents (if any)
|
131
|
-
// -----------------------------------------------------------------------------
|
132
|
-
[role="dropcap"]
|
133
|
-
Playing video on web pages seems not that special since you can already
|
134
|
-
watch videos on web pages through plugins like _Flash Player_, _Quicktime_,
|
135
|
-
or _Silverlight_. A new standard goes to HTML5 Video, a pure HTML way to
|
136
|
-
show video on the web, instead of the previous de facto standard of using
|
137
|
-
proprietary software.
|
138
|
-
|
139
|
-
== Video Galleries
|
140
|
-
|
141
|
-
HTML5 Video opens the doors to your way of presenting video content. Modern
|
142
|
-
browsers support the video tag `<video>` for the HTML5 video standard.
|
143
|
-
Browsers have a built-in multimedia framework already for decoding and displaying
|
144
|
-
video content. No need to use such proprietary software components anymore!
|
145
|
-
|
146
|
-
HTML5 Video support is given by the App gallery combined with the lightbox
|
147
|
-
LightGallery.
|
148
|
-
|
149
|
-
Two types of video sources are supported:
|
150
|
-
|
151
|
-
. Video files from local folders (your webspace)
|
152
|
-
. Video files from online sources (on the Internet) like YouTube, Vimeo, etc.
|
153
|
-
|
154
|
-
The combination of the App gallery and the lightbox LightGallery is entirely
|
155
|
-
usable for all the video content you want to present on your site. You can
|
156
|
-
place Galleries elsewhere with your content. You can use them for video blogs
|
157
|
-
by putting them into your blog article's content.
|
158
|
-
|
159
|
-
WARNING: LightGallery can be used for free for private use, but a commercial
|
160
|
-
license is needed for business use. See
|
161
|
-
link:{url-light-gallery--license}[LightGallery licenses, {browser-window--new}]
|
162
|
-
how to use LightGallery for commercial websites and projects.
|
163
|
-
|
164
|
-
== Local Video content
|
165
|
-
|
166
|
-
Digital image content, simple pictures or videos, are easy to make. Today,
|
167
|
-
every mobile has a camera. Presenting a bunch of (digital) pictures is done
|
168
|
-
very easily by using Justified Gallery. Videos created by a digicam or a mobile
|
169
|
-
can be played by J1 Template using the HTML5 Video support. Present videos you
|
170
|
-
have made at it's best.
|
171
|
-
|
172
|
-
Two players are available with LightGallery:
|
173
|
-
|
174
|
-
. an internal player used by default
|
175
|
-
. {url-videojs--home}[video.js, {browser-window--new}], a excellent
|
176
|
-
Javascript video library including a great player
|
177
|
-
|
178
|
-
NOTE: The HTML5 specification does *not* define which video and audio formats
|
179
|
-
browsers *should* support. J1 LightGallery can play all types of standard
|
180
|
-
HTML5 Video formats on modern browsers today (MP4, WebM, and Ogg).
|
181
|
-
|
182
|
-
.MP4 Videos - VideoJS Player
|
183
|
-
gallery::jg_video_html5[role="mb-5"]
|
184
|
-
|
185
|
-
== Online Video content
|
186
|
-
|
187
|
-
The Internet is full of inspiring content. If you want to present video
|
188
|
-
content from the Internet, the online video support of J1 Template is the
|
189
|
-
right choice.
|
190
|
-
|
191
|
-
=== YouTube
|
192
|
-
|
193
|
-
The community at link:{url-youtube--home}[YouTube, {browser-window--new}] is
|
194
|
-
large, with over 1 billion users that watch hundreds of millions of hours of
|
195
|
-
content every day. The number of channels on YouTube is enormous. For TV
|
196
|
-
Stations, it's a must to publish videos of their shows on YouTube. Find below
|
197
|
-
a current gallery from *The Voice Kids* (SAT.1) Germany and a real classic
|
198
|
-
channel *Carpool Karaoke* from the frontman James Corden of *The Late Late Show*
|
199
|
-
at CBS, Los Angeles.
|
200
|
-
|
201
|
-
.The Voice Kids, Germany 2021
|
202
|
-
gallery::jg_video_online_youtube_2[role="mb-5"]
|
203
|
-
|
204
|
-
.James Cordon's Carpool Karaoke
|
205
|
-
gallery::jg_video_online_youtube[role="mb-5"]
|
206
|
-
|
207
|
-
=== Vimeo
|
208
|
-
|
209
|
-
link:{url-vimeo--home}[Vimeo, {browser-window--new}] is a video-sharing
|
210
|
-
platform that includes features such as live-streaming and customization.
|
211
|
-
Vimeo provides many tools for video creation, editing, and broadcasting.
|
212
|
-
The platform provides you with an excellent channel to present high-quality,
|
213
|
-
professional videos and reach audiences worldwide.
|
214
|
-
|
215
|
-
Vimeo does offer a basic, free membership, but it limits you to 500MB maximum
|
216
|
-
storage per week. Alternately, you can book on paid plans: Plus, PRO, Business.
|
217
|
-
Each membership has varied storage limits, but the free plan offers sufficient
|
218
|
-
space for private projects to present video content without advertising.
|
219
|
-
|
220
|
-
NOTE: A great plus using Vimeo is that *no advertising* is used on that
|
221
|
-
platform.
|
222
|
-
|
223
|
-
.Vimeo Video Gallery - Fashion
|
224
|
-
gallery::jg_video_online_vimeo[role="mb-5"]
|
225
|
-
|
226
|
-
=== DailyMotion
|
227
|
-
|
228
|
-
link:{url-dailymotion--home}[Dailymotion, {browser-window--new}] is a French
|
229
|
-
video-sharing technology platform primarily owned by
|
230
|
-
link:{url-vivendi--home}[Vivendi, {browser-window--new}]. The platform is
|
231
|
-
available worldwide in 183 languages and 43 localised versions featuring local
|
232
|
-
home pages and local content.
|
233
|
-
|
234
|
-
The platform is a monetization solution that allows allows to directly connect
|
235
|
-
to high-quality advertisers through a proprietary Advertising Solution. Like
|
236
|
-
YouTube, videos cav be watched for free, but ads are shown on each and every
|
237
|
-
video.
|
238
|
-
|
239
|
-
Dailymotion allows users to search videos by *tags*, topic *channels*, or
|
240
|
-
user-created *groups*. Users can upload videos of up to 2 gigabytes and a
|
241
|
-
length of 60 minutes. If a user is a MotionMaker or MotionPartner, a program
|
242
|
-
for particularly creative users or partners, they can upload videos of
|
243
|
-
unlimited length.
|
244
|
-
|
245
|
-
NOTE: Like YouTube, DailyMotion is a commercial platform using *advertising*
|
246
|
-
on all video content. On every video, an ad clip is presented of 15 to
|
247
|
-
30 seconds in length.
|
248
|
-
|
249
|
-
.DailyMotion Video Gallery - SELF Magazine (Channel)
|
250
|
-
gallery::jg_video_online_dailymotion[role="mb-5"]
|
251
|
-
|
252
|
-
=== VK
|
253
|
-
|
254
|
-
link:{url-vk--home}[VK, {browser-window--new}], former Vkontakte.ru until
|
255
|
-
January 2012, is a multilingual social network operated from Russia.
|
256
|
-
Registered users can create a profile on VK and exchange information with
|
257
|
-
other users.
|
258
|
-
|
259
|
-
According to the operator, the platform has over 100 million active users,
|
260
|
-
but mainly in Russia, Ukraine, and other Russian spoken countries. VK is
|
261
|
-
among the most popular websites in Russia.
|
262
|
-
|
263
|
-
NOTE: VK is accused of insufficient protection of personal data. The platform
|
264
|
-
is also openly criticized by neo-Nazi and neo-fascist Groups used without
|
265
|
-
there being a handle against them so far. To date, the Russian investigative
|
266
|
-
authorities (especially the FSB) have not made any efforts to identify
|
267
|
-
right-wing extremists or to suppress racist currents on the platform.
|
268
|
-
|
269
|
-
.VK Video Gallery - Wildlife
|
270
|
-
gallery::jg_video_online_vk[role="mb-5"]
|
271
|
-
|
272
|
-
|
273
|
-
== What next
|
274
|
-
|
275
|
-
Images and videos are pretty visual. And it can be impressive, for sure.
|
276
|
-
But the most visual component is the text for all pages, for all sites on the
|
277
|
-
Internet. To see how text could be presented great for modern responsive
|
278
|
-
websites, check the section Typography next.
|
279
|
-
|
280
|
-
What? Please find out how it works.
|
281
|
-
Go for: link:{url-roundtrip--typography}[Typography], then.
|
@@ -1,253 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Roundtrip
|
3
|
-
tagline: typography
|
4
|
-
date: 2020-11-05 00:00:00
|
5
|
-
description: >
|
6
|
-
The character font serves as one of the most crucial branding elements for
|
7
|
-
any business. Typography matters for any media presenting text. The text will
|
8
|
-
take on an important role of acting not only as plain text but will also serve
|
9
|
-
as something like images.
|
10
|
-
|
11
|
-
categories: [ Roundtrip ]
|
12
|
-
tags: [ Introduction, Module, Typography ]
|
13
|
-
|
14
|
-
fab_menu_id: page_ctrl
|
15
|
-
|
16
|
-
permalink: /pages/public/learn/roundtrip/typography/
|
17
|
-
regenerate: false
|
18
|
-
|
19
|
-
resources: [ animate ]
|
20
|
-
resource_options:
|
21
|
-
- attic:
|
22
|
-
opacity: 0.3
|
23
|
-
slides:
|
24
|
-
- url: /assets/images/pages/roundtrip/typography-1920x1280-bw.jpg
|
25
|
-
alt: Photo by Alice Donovan Rousel on Unsplash
|
26
|
-
preload: 0
|
27
|
-
transitionDuration: fast
|
28
|
-
resolutionRefreshRate: 500
|
29
|
-
badge:
|
30
|
-
type: unsplash
|
31
|
-
author: Alice Donovan Rousel
|
32
|
-
href: https://unsplash.com/@alicekat/portfolio
|
33
|
-
---
|
34
|
-
|
35
|
-
// Page Initializer
|
36
|
-
// =============================================================================
|
37
|
-
// Enable the Liquid Preprocessor
|
38
|
-
:page-liquid:
|
39
|
-
|
40
|
-
// Set (local) page attributes here
|
41
|
-
// -----------------------------------------------------------------------------
|
42
|
-
// :page--attr: <attr-value>
|
43
|
-
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
44
|
-
|
45
|
-
// Load Liquid procedures
|
46
|
-
// -----------------------------------------------------------------------------
|
47
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
48
|
-
|
49
|
-
// Load page attributes
|
50
|
-
// -----------------------------------------------------------------------------
|
51
|
-
{% include {{load_attributes}} scope="all" %}
|
52
|
-
|
53
|
-
|
54
|
-
// Page content
|
55
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
56
|
-
|
57
|
-
// Include sub-documents (if any)
|
58
|
-
// -----------------------------------------------------------------------------
|
59
|
-
[role="dropcap"]
|
60
|
-
The character font serves as one of the most crucial branding elements for
|
61
|
-
any business. Typography matters for any media presenting text. The text will
|
62
|
-
take on an important role of acting as plain text but will also serve
|
63
|
-
as something like images.
|
64
|
-
|
65
|
-
== Responsive Text
|
66
|
-
|
67
|
-
Sadly, one common flaw is seen in many templates and frameworks: a lack of
|
68
|
-
support for genuinely responsive text. While elements on a page resize
|
69
|
-
fluidly, the text still resizes on a fixed basis. To avoid this issue,
|
70
|
-
especially for heavily text-focused pages, J1 Template supports styles that
|
71
|
-
fluidly scale text size and line height to optimize readability for the user.
|
72
|
-
|
73
|
-
Below you find an example of how text behaves if defined on a fixed basis -
|
74
|
-
what you'll see quite often. Change the size of your Browser Window to see
|
75
|
-
what will happen in terms of responsiveness.
|
76
|
-
|
77
|
-
++++
|
78
|
-
<div>
|
79
|
-
<button type="button" name="toggle-r-text" class="btn btn-primary btn-flex mt-3 mb-3">
|
80
|
-
<i class="toggle-button mdi mdi-toggle-switch-off mdi-lg mdi-md-bg-primary-50 mr-1"></i>
|
81
|
-
Toggle rtext
|
82
|
-
</button>
|
83
|
-
<div class="mb-4">
|
84
|
-
<div class="content">
|
85
|
-
<!-- jadams, 2020-11-15: adjusted heading levels (Google optimisation) -->
|
86
|
-
<h3 class="notoc">The Extremes of Good and Evil</h3>
|
87
|
-
<p class="small notoc text-gray mb-3">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</p>
|
88
|
-
<p class="toggle-description no-r-text">
|
89
|
-
But I must explain to you how all this mistaken idea of denouncing
|
90
|
-
pleasure and praising pain was born and I will give you a complete
|
91
|
-
account of the system, and expound the actual teachings of the great
|
92
|
-
explorer of the truth, the master-builder of human happiness.
|
93
|
-
<br/><br/>
|
94
|
-
No one rejects, dislikes, or avoids pleasure itself, because it is
|
95
|
-
pleasure, but because those who do not know how to pursue pleasure
|
96
|
-
rationally encounter consequences that are extremely painful. Nor
|
97
|
-
again is there anyone who loves or pursues or desires to obtain pain
|
98
|
-
of itself, because it is pain, but because occasionally circumstances
|
99
|
-
occur in which toil and pain can procure him some great pleasure.
|
100
|
-
<br/><br/>
|
101
|
-
To take a trivial example, which of us ever undertakes laborious
|
102
|
-
physical exercise, except to obtain some advantage from it? But who
|
103
|
-
has any right to find fault with a man who chooses to enjoy a pleasure
|
104
|
-
that has no annoying consequences, or one who avoids a pain that
|
105
|
-
produces no resultant pleasure?
|
106
|
-
</p>
|
107
|
-
</div>
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
|
111
|
-
<script>
|
112
|
-
$('button[name="toggle-r-text"]').on('click', function (e) {
|
113
|
-
$('p.toggle-description').toggleClass('no-r-text r-text-300');
|
114
|
-
$('.toggle-button').toggleClass('mdi-toggle-switch-off mdi-toggle-switch');
|
115
|
-
});
|
116
|
-
</script>
|
117
|
-
++++
|
118
|
-
|
119
|
-
To see Responsive Text `r-text` in action, use the button above to toggle on
|
120
|
-
and off Responsive Text to see the difference!
|
121
|
-
|
122
|
-
== Scaling Responsive Text
|
123
|
-
|
124
|
-
The responsive text comes in five different scale factors in a range from 100
|
125
|
-
to 500. Scaling `r-text` gives you the flexibility to use `r-text` everywhere.
|
126
|
-
Or you can offer different text sizes of your Web for visitors having visual
|
127
|
-
handicaps or reading disabilities.
|
128
|
-
|
129
|
-
To see `r-text` scaling in action, click on the button above to resize
|
130
|
-
the text from `r-text` level 300 to 500 back and forth. Resize
|
131
|
-
your Browser and watch the size of this text body change to see the
|
132
|
-
responsiveness in action.
|
133
|
-
|
134
|
-
++++
|
135
|
-
<div>
|
136
|
-
<button type="button" name="scale-r-text" class="btn btn-primary btn-flex mt-3 mb-3">
|
137
|
-
<i class="scale-button mdi mdi-arrow-up mdi-lg mdi-md-bg-primary-50 mr-1"></i>
|
138
|
-
Scale rtext
|
139
|
-
</button>
|
140
|
-
<div class="mb-4">
|
141
|
-
<div class="content">
|
142
|
-
<!-- jadams, 2020-11-15: adjusted heading levels (Google optimisation) -->
|
143
|
-
<h3 class="notoc">The Extremes of Good and Evil</h3>
|
144
|
-
<p class="small notoc text-gray mb-3">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</p>
|
145
|
-
<p class="scale-description r-text-300">
|
146
|
-
On the other hand, we denounce with righteous indignation and dislike men who
|
147
|
-
are so beguiled and demoralized by the charms of pleasure of the moment, so
|
148
|
-
blinded by desire, that they cannot foresee the pain and trouble that are
|
149
|
-
bound to ensue; and equal blame belongs to those who fail in their duty through
|
150
|
-
weakness of will, which is the same as saying through shrinking from toil and pain.
|
151
|
-
<br/><br/>
|
152
|
-
These cases are perfectly simple and easy to distinguish. In a free hour, when
|
153
|
-
our power of choice is untrammelled and when nothing prevents our being able to
|
154
|
-
do what we like best, every pleasure is to be welcomed and every pain avoided.
|
155
|
-
But in certain circumstances and owing to the claims of duty or the obligations
|
156
|
-
of business is will frequently occur that pleasures have to be repudiated and
|
157
|
-
annoyances accepted. The wise man therefore always holds in these matters to
|
158
|
-
this principle of selection: he rejects pleasures to secure other greater
|
159
|
-
pleasures, or else he endures pains to avoid worse pains.
|
160
|
-
</p>
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<script>
|
166
|
-
$('button[name="scale-r-text"]').on('click', function (e) {
|
167
|
-
$('p.scale-description').toggleClass('r-text-300 r-text-500');
|
168
|
-
$('.scale-button').toggleClass('mdi-arrow-up mdi-arrow-down');
|
169
|
-
});
|
170
|
-
</script>
|
171
|
-
++++
|
172
|
-
|
173
|
-
== Scale factors
|
174
|
-
|
175
|
-
As mentioned, `r-text` comes in five levels of size. The base of `r-text` is
|
176
|
-
the Fibonacci numbers extracted from the Fibonacci series. These numbers are
|
177
|
-
the most popular division ratios in typography. When speaking of the golden
|
178
|
-
ratio (1: 1.618) in typography and graphic design, the Fibonacci numbers are
|
179
|
-
usually the base.
|
180
|
-
|
181
|
-
The Fibonacci series is translated into CSS Media queries and scales a base
|
182
|
-
font in size accordingly. Further, the resulting font scale series have
|
183
|
-
multipliers (scale factors) ranging from 0.5 (50%) up to 1.0 (100%) of the
|
184
|
-
base.
|
185
|
-
|
186
|
-
That way, five series are available by the five scale factors. See the following
|
187
|
-
table how `r-text` scales.
|
188
|
-
|
189
|
-
.Scale factors
|
190
|
-
|===
|
191
|
-
|Property |Factor |Example text
|
192
|
-
|
193
|
-
|`r-text-100`
|
194
|
-
|0.5
|
195
|
-
|
|
196
|
-
[role="r-text-100"]
|
197
|
-
But I must explain to you how all this mistaken idea of denouncing
|
198
|
-
pleasure and praising pain was born and I will give you a complete
|
199
|
-
account of the system, and expound the actual teachings of the great
|
200
|
-
explorer of the truth, the master-builder of human happiness.
|
201
|
-
|
202
|
-
|`r-text-200`
|
203
|
-
|0.7
|
204
|
-
|
|
205
|
-
[role="r-text-200"]
|
206
|
-
But I must explain to you how all this mistaken idea of denouncing
|
207
|
-
pleasure and praising pain was born and I will give you a complete
|
208
|
-
account of the system, and expound the actual teachings of the great
|
209
|
-
explorer of the truth, the master-builder of human happiness.
|
210
|
-
|
211
|
-
|`r-text-300`
|
212
|
-
|0.8
|
213
|
-
|
|
214
|
-
[role="r-text-300"]
|
215
|
-
But I must explain to you how all this mistaken idea of denouncing
|
216
|
-
pleasure and praising pain was born and I will give you a complete
|
217
|
-
account of the system, and expound the actual teachings of the great
|
218
|
-
explorer of the truth, the master-builder of human happiness.
|
219
|
-
|
220
|
-
|`r-text-400`
|
221
|
-
|0.9
|
222
|
-
|
|
223
|
-
[role="r-text-400"]
|
224
|
-
But I must explain to you how all this mistaken idea of denouncing
|
225
|
-
pleasure and praising pain was born and I will give you a complete
|
226
|
-
account of the system, and expound the actual teachings of the great
|
227
|
-
explorer of the truth, the master-builder of human happiness.
|
228
|
-
|
229
|
-
|`r-text-500`
|
230
|
-
|1.0
|
231
|
-
|
|
232
|
-
[role="r-text-500"]
|
233
|
-
But I must explain to you how all this mistaken idea of denouncing
|
234
|
-
pleasure and praising pain was born and I will give you a complete
|
235
|
-
account of the system, and expound the actual teachings of the great
|
236
|
-
explorer of the truth, the master-builder of human happiness.
|
237
|
-
|
238
|
-
|===
|
239
|
-
|
240
|
-
== What next
|
241
|
-
|
242
|
-
Have you enjoyed playing with the text? We hope so. But even more, J1 can
|
243
|
-
do for your web pages. With the examples on that page, icons support the
|
244
|
-
meaning of what was grouped as text.
|
245
|
-
|
246
|
-
J1 Template supports popular icons font sets like:
|
247
|
-
|
248
|
-
* Material Design Icons
|
249
|
-
* FontAwesome Icons V5
|
250
|
-
* Iconify
|
251
|
-
|
252
|
-
Would you like to learn more about icons? The next example page focus on what's
|
253
|
-
possible using link:{url-roundtrip--icon-fonts}[Icon Fonts, {browser-window--new}].
|