j1-template 2022.3.2 → 2022.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/themes/j1/adapter/js/j1.js +150 -75
- data/assets/themes/j1/adapter/js/nbinteract.js +18 -7
- data/assets/themes/j1/adapter/js/rangeSlider.js +27 -10
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js +1 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.js.map +1 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/nbinteract-core.min.js +1 -1
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +5 -0
- data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +22 -7
- data/lib/starter_web/_data/modules/defaults/nbinteract.yml +8 -0
- data/lib/starter_web/_data/modules/rangeSlider.yml +38 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/range-slider-block.rb +44 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_odes_in_python.ipynb +16 -16
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +919 -919
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +10 -10
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -473
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +2 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +3 -7
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_new/nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_new/nbinteract-core.js.map +0 -1
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_old/j1-nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbInteract/js/nbinteract/_old/j1-nbinteract-core.js.map +0 -1
- data/lib/starter_web/pages/public/se/se-fake.adoc +0 -47
@@ -12,4 +12,4 @@
|
|
12
12
|
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
13
13
|
# -----------------------------------------------------------------------------
|
14
14
|
*/
|
15
|
-
.range-slider{margin-top:2rem}.range-slider-label{font-size:.75rem;padding-top:.75rem;margin-left:0}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative;direction:ltr}.noUi-base{width:100%;height:100%;position:relative;z-index:1;background-color:rgba(0,0,0,0.2)}.noUi-connect{position:absolute;right:0;top:0;left:0;bottom:0}.noUi-origin{position:absolute;height:0;width:0}.noUi-handle{position:relative;z-index:1}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:top .25s,right .25s,bottom .25s,left .25s;transition:top .25s,right .25s,bottom .25s,left .25s}.noUi-state-drag *{cursor:inherit!important}.noUi-handle-touch-area{position:relative;width:44px;height:44px;left:-15px;top:-15px}.noUi-base,.noUi-handle{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;left:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;left:-6px;top:-17px}.noUi-target{background:#cdcdcd;border-radius:4px;border:1px solid transparent}.noUi-connect{background:#2196f3;-webkit-transition:background 450ms;transition:background 450ms}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #ebebeb,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:before,.noUi-handle:after{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);padding-left:25px}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid transparent;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-target{border:0;border-radius:0}.noUi-horizontal{height:3px}.noUi-vertical{height:100%;width:3px}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{width:15px;height:15px;border-radius:50%;box-shadow:none;background-color:#2196f3;border:0;left:-5px;top:-6px;transition:width .2s cubic-bezier(0.215,0.610,0.355,1.000),height .2s cubic-bezier(0.215,0.610,0.355,1.000),left .2s cubic-bezier(0.215,0.610,0.355,1.000),top .2s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-handle:before{content:none}.noUi-handle:after{content:none}.noUi-target .noUi-active.noUi-handle{width:3px;height:3px;left:0;top:0}.noUi-target.noUi-horizontal .noUi-tooltip{position:absolute;height:30px;width:30px;top:-17px;left:-2px;background-color:#2196f3;border-radius:50%;transition:border-radius .25s cubic-bezier(0.215,0.610,0.355,1.000),transform .25s cubic-bezier(0.215,0.610,0.355,1.000);transform:scale(.5) rotate(-45deg);transform-origin:50% 100%}.noUi-target.noUi-horizontal .noUi-active .noUi-tooltip{border-radius:15px 15px 15px 0;transform:rotate(-45deg) translate(23px,-25px)}.noUi-tooltip span{width:100%;text-align:center;color:#fff;font-size:12px;opacity:0;position:absolute;top:6px;left:-1px;transition:opacity .25s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-horizontal .noUi-tooltip span{transform:rotate(45deg)}.noUi-vertical .noUi-tooltip span{transform:rotate(135deg)}.noUi-target.noUi-vertical .noUi-tooltip{position:absolute;height:30px;width:30px;top:-17px;left:-2px;background-color:#2196f3;border-radius:50%;transition:border-radius .25s cubic-bezier(0.215,0.610,0.355,1.000),transform .25s cubic-bezier(0.215,0.610,0.355,1.000);transform:scale(.5) rotate(-45deg);transform-origin:50% 100%}.noUi-target.noUi-vertical .noUi-active .noUi-tooltip{border-radius:15px 15px 15px 0;transform:rotate(-135deg) translate(35px,-10px)}.noUi-vertical .noUi-tooltip span{width:100%;text-align:center;color:#fff;font-size:12px;transform:rotate(135deg);opacity:0;position:absolute;top:7px;left:-1px;transition:opacity .25s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-horizontal .noUi-active .noUi-tooltip span,.noUi-vertical .noUi-active .noUi-tooltip span{opacity:1}
|
15
|
+
.range-slider{margin-top:2rem}.range-slider-label{font-size:.75rem;padding-top:.75rem;margin-left:0}.range-slider-title{font-size:.95rem;font-weight:400}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative;direction:ltr}.noUi-base{width:100%;height:100%;position:relative;z-index:1;background-color:rgba(0,0,0,0.2)}.noUi-connect{position:absolute;right:0;top:0;left:0;bottom:0}.noUi-origin{position:absolute;height:0;width:0}.noUi-handle{position:relative;z-index:1}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:top .25s,right .25s,bottom .25s,left .25s;transition:top .25s,right .25s,bottom .25s,left .25s}.noUi-state-drag *{cursor:inherit !important}.noUi-handle-touch-area{position:relative;width:44px;height:44px;left:-15px;top:-15px}.noUi-base,.noUi-handle{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;left:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;left:-6px;top:-17px}.noUi-target{background:#cdcdcd;border-radius:4px;border:1px solid transparent}.noUi-connect{background:#2196f3;-webkit-transition:background 450ms;transition:background 450ms}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #ebebeb,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:before,.noUi-handle:after{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);padding-left:25px}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid transparent;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-target{border:0;border-radius:0}.noUi-horizontal{height:3px}.noUi-vertical{height:100%;width:3px}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{width:15px;height:15px;border-radius:50%;box-shadow:none;background-color:#2196f3;border:0;left:-5px;top:-6px;transition:width .2s cubic-bezier(0.215,0.610,0.355,1.000),height .2s cubic-bezier(0.215,0.610,0.355,1.000),left .2s cubic-bezier(0.215,0.610,0.355,1.000),top .2s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-handle:before{content:none}.noUi-handle:after{content:none}.noUi-target .noUi-active.noUi-handle{width:3px;height:3px;left:0;top:0}.noUi-target.noUi-horizontal .noUi-tooltip{position:absolute;height:30px;width:30px;top:-17px;left:-2px;background-color:#2196f3;border-radius:50%;transition:border-radius .25s cubic-bezier(0.215,0.610,0.355,1.000),transform .25s cubic-bezier(0.215,0.610,0.355,1.000);transform:scale(.5) rotate(-45deg);transform-origin:50% 100%}.noUi-target.noUi-horizontal .noUi-active .noUi-tooltip{border-radius:15px 15px 15px 0;transform:rotate(-45deg) translate(23px,-25px)}.noUi-tooltip span{width:100%;text-align:center;color:#fff;font-size:12px;opacity:0;position:absolute;top:6px;left:-1px;transition:opacity .25s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-horizontal .noUi-tooltip span{transform:rotate(45deg)}.noUi-vertical .noUi-tooltip span{transform:rotate(135deg)}.noUi-target.noUi-vertical .noUi-tooltip{position:absolute;height:30px;width:30px;top:-17px;left:-2px;background-color:#2196f3;border-radius:50%;transition:border-radius .25s cubic-bezier(0.215,0.610,0.355,1.000),transform .25s cubic-bezier(0.215,0.610,0.355,1.000);transform:scale(.5) rotate(-45deg);transform-origin:50% 100%}.noUi-target.noUi-vertical .noUi-active .noUi-tooltip{border-radius:15px 15px 15px 0;transform:rotate(-135deg) translate(35px,-10px)}.noUi-vertical .noUi-tooltip span{width:100%;text-align:center;color:#fff;font-size:12px;transform:rotate(135deg);opacity:0;position:absolute;top:7px;left:-1px;transition:opacity .25s cubic-bezier(0.215,0.610,0.355,1.000)}.noUi-horizontal .noUi-active .noUi-tooltip span,.noUi-vertical .noUi-active .noUi-tooltip span{opacity:1}
|
data/lib/j1/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module J1
|
2
|
-
VERSION = '2022.
|
3
|
-
end
|
1
|
+
module J1
|
2
|
+
VERSION = '2022.4.1'
|
3
|
+
end
|
data/lib/starter_web/Gemfile
CHANGED
@@ -53,7 +53,7 @@ gem 'jekyll', '~> 4.2'
|
|
53
53
|
|
54
54
|
# Theme Rubies, default: J1 Template (NOT used for the development system)
|
55
55
|
#
|
56
|
-
gem 'j1-template', '~> 2022.
|
56
|
+
gem 'j1-template', '~> 2022.4.1'
|
57
57
|
|
58
58
|
# ------------------------------------------------------------------------------
|
59
59
|
# PRODUCTION: Gem needed for the Jekyll and J1 prod environment
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: development
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Template Gem
|
55
55
|
#
|
56
|
-
version: 2022.
|
56
|
+
version: 2022.4.1
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|
@@ -156,23 +156,33 @@ cookies:
|
|
156
156
|
# Number of milliseconds (ms) the current page is hidden (display: none)
|
157
157
|
# to prevent "DOM flicker" (aka "FOUC": Flash of unstyled content)
|
158
158
|
#
|
159
|
-
#
|
159
|
+
# values: înt
|
160
|
+
# default: 150
|
160
161
|
#
|
161
162
|
# prettify
|
162
163
|
# ----------------------------------------------------------------------------
|
163
164
|
# If set to true, all generated HTML pages (by Liquid|Jekyll) get
|
164
165
|
# formatted "pretty" by layout "default".
|
165
166
|
#
|
166
|
-
#
|
167
|
-
#
|
167
|
+
# values: [true|false]
|
168
|
+
# default: true
|
169
|
+
#
|
168
170
|
# ------------------------------------------------------------------------------
|
169
|
-
|
170
|
-
|
171
|
+
#
|
172
|
+
# autoScrollRatio
|
173
|
+
# ----------------------------------------------------------------------------
|
174
|
+
# Sets the ratio (percent) for 'dynamic' pages the auto scroll funtion
|
175
|
+
# if the page requested contains an anchor element.
|
176
|
+
# Example: /pages/public/about/site/#about-this-site
|
177
|
+
#
|
178
|
+
# values: înt
|
179
|
+
# default: 130
|
180
|
+
#
|
171
181
|
# ------------------------------------------------------------------------------
|
172
|
-
# HTML PrettyPrint
|
173
182
|
#
|
183
|
+
flicker_timeout: 150
|
174
184
|
prettify: true
|
175
|
-
|
185
|
+
autoScrollRatioThreshold: 130
|
176
186
|
|
177
187
|
# ==============================================================================
|
178
188
|
# PAGE global configuration settings (currently NOT used)
|
@@ -181,6 +191,7 @@ prettify: true
|
|
181
191
|
# the HTML outputs generated by J1
|
182
192
|
#
|
183
193
|
# ------------------------------------------------------------------------------
|
194
|
+
#
|
184
195
|
pages:
|
185
196
|
|
186
197
|
|
@@ -191,6 +202,7 @@ pages:
|
|
191
202
|
# the HTML outputs generated by J1
|
192
203
|
#
|
193
204
|
# ------------------------------------------------------------------------------
|
205
|
+
#
|
194
206
|
posts:
|
195
207
|
# ----------------------------------------------------------------------------
|
196
208
|
# category_blacklist
|
@@ -203,6 +215,7 @@ posts:
|
|
203
215
|
# Default: [ posts, public, private, protected, featured, series ]
|
204
216
|
#
|
205
217
|
# ----------------------------------------------------------------------------
|
218
|
+
#
|
206
219
|
category_blacklist: [ posts, public, private, protected, featured, series ]
|
207
220
|
|
208
221
|
|
@@ -316,6 +329,7 @@ rouge:
|
|
316
329
|
# https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
|
317
330
|
# https://github.com/GoogleChromeLabs/critters/issues/18 (crossorigin)
|
318
331
|
# ------------------------------------------------------------------------------
|
332
|
+
#
|
319
333
|
preload:
|
320
334
|
|
321
335
|
font:
|
@@ -358,6 +372,7 @@ preload:
|
|
358
372
|
# connections (HTTPS), as it may involve DNS lookups, redirects, and
|
359
373
|
# several round trips to the final server that handles the user's request.
|
360
374
|
# ------------------------------------------------------------------------------
|
375
|
+
#
|
361
376
|
preconnect:
|
362
377
|
enabled: true
|
363
378
|
urls: [ "https://bootswatch.com" ]
|
@@ -74,6 +74,10 @@ defaults:
|
|
74
74
|
# values: URL
|
75
75
|
# default: https://mybinder.org
|
76
76
|
#
|
77
|
+
# NOTE: DIRECT access to (GESIS) 'https://notebooks.gesis.org/binder/'
|
78
|
+
# is restricted to private access (isTrusted == true). Registration at
|
79
|
+
# GESIS is required.
|
80
|
+
#
|
77
81
|
# ----------------------------------------------------------------------------
|
78
82
|
#
|
79
83
|
# provider
|
@@ -218,6 +222,10 @@ defaults:
|
|
218
222
|
<br><br>
|
219
223
|
Required Cookie Settings:
|
220
224
|
<ul>
|
225
|
+
<li>
|
226
|
+
<code>Analysis</code> For translations, your consent on
|
227
|
+
<b>Analysis</b> with your <b>Privacy Settings</b> is required.
|
228
|
+
</li>
|
221
229
|
<li>
|
222
230
|
<code>Personalization</code> For processing textbooks, your consent on
|
223
231
|
<b>Personalization</b> with your <b>Privacy Settings</b> (Cookie Settings) is required.
|
@@ -35,14 +35,47 @@ settings:
|
|
35
35
|
# RANGE SLIDER configurations
|
36
36
|
# --------------------------------------------------------------------------
|
37
37
|
|
38
|
+
# --------------------------------------------------------------------------
|
39
|
+
# example slider
|
40
|
+
#
|
41
|
+
- slider:
|
42
|
+
enabled: true
|
43
|
+
id: example_slider_asciidoc
|
44
|
+
|
45
|
+
options:
|
46
|
+
title: "Title of the Example Slider"
|
47
|
+
label: "Example Slider (Asciidoc), range: [5,50], start at: 25, step: 5"
|
48
|
+
start: 25
|
49
|
+
step: 5
|
50
|
+
range:
|
51
|
+
min: 5
|
52
|
+
max: 50
|
53
|
+
|
54
|
+
# --------------------------------------------------------------------------
|
55
|
+
# example slider (controled)
|
56
|
+
#
|
57
|
+
- slider:
|
58
|
+
enabled: true
|
59
|
+
id: example_slider_html
|
60
|
+
|
61
|
+
options:
|
62
|
+
title: "Title of the Example Slider (controlled)"
|
63
|
+
label: "Example Slider (HTML), range: [5,50], start at: 25, step: 5"
|
64
|
+
start: 25
|
65
|
+
step: 5
|
66
|
+
range:
|
67
|
+
min: 5
|
68
|
+
max: 50
|
69
|
+
|
38
70
|
# --------------------------------------------------------------------------
|
39
71
|
# example slider 1
|
40
72
|
#
|
41
73
|
- slider:
|
42
74
|
enabled: true
|
43
|
-
id:
|
75
|
+
id: example_slider_1
|
44
76
|
|
45
77
|
options:
|
78
|
+
title: ""
|
46
79
|
label: "Slider 1, range: [0,100], start at: 20"
|
47
80
|
start: 20
|
48
81
|
range:
|
@@ -57,6 +90,7 @@ settings:
|
|
57
90
|
id: example_slider_2
|
58
91
|
|
59
92
|
options:
|
93
|
+
title: ""
|
60
94
|
label: "Slider 2, range: [0,200], start at: 80"
|
61
95
|
start: 80
|
62
96
|
range:
|
@@ -71,6 +105,7 @@ settings:
|
|
71
105
|
id: jgSlider_row_heigth
|
72
106
|
|
73
107
|
options:
|
108
|
+
title: ""
|
74
109
|
label: Image Row Height [px]
|
75
110
|
start: 150
|
76
111
|
range:
|
@@ -85,6 +120,7 @@ settings:
|
|
85
120
|
id: jgSlider_thumb_spacing
|
86
121
|
|
87
122
|
options:
|
123
|
+
title: ""
|
88
124
|
label: Thumb Image Spacing [px]
|
89
125
|
start: 1
|
90
126
|
range:
|
@@ -99,6 +135,7 @@ settings:
|
|
99
135
|
id: jgSlider_gallery_padding
|
100
136
|
|
101
137
|
options:
|
138
|
+
title: ""
|
102
139
|
label: Gallery Padding [px]
|
103
140
|
start: 0
|
104
141
|
range:
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# ------------------------------------------------------------------------------
|
2
|
+
# ~/_plugins/asciidoctor-extensions/range-slider-block.rb
|
3
|
+
# Asciidoctor extension for J1 range-slider (Owl range-slider)
|
4
|
+
#
|
5
|
+
# Product/Info:
|
6
|
+
# https://jekyll.one
|
7
|
+
#
|
8
|
+
# Copyright (C) 2022 Juergen Adams
|
9
|
+
#
|
10
|
+
# J1 Template is licensed under the MIT License.
|
11
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
12
|
+
#
|
13
|
+
# ------------------------------------------------------------------------------
|
14
|
+
require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
|
15
|
+
include Asciidoctor
|
16
|
+
|
17
|
+
# A block macro that embeds a range-slider block into the output document
|
18
|
+
#
|
19
|
+
# Usage
|
20
|
+
#
|
21
|
+
# range_slider::slider-id[role="additional classes"]
|
22
|
+
#
|
23
|
+
# Example:
|
24
|
+
#
|
25
|
+
# range_slider::example_slider[role="mb-5"]
|
26
|
+
#
|
27
|
+
Asciidoctor::Extensions.register do
|
28
|
+
|
29
|
+
class SliderBlockMacro < Extensions::BlockMacroProcessor
|
30
|
+
use_dsl
|
31
|
+
|
32
|
+
named :range_slider
|
33
|
+
name_positional_attributes 'role'
|
34
|
+
default_attrs 'role' => ''
|
35
|
+
|
36
|
+
def process parent, target, attrs
|
37
|
+
html = %(<div id="#{target}" class="range-slider #{attrs['role']}"></div>)
|
38
|
+
create_pass_block parent, html, attrs, subs: nil
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
block_macro SliderBlockMacro
|
43
|
+
|
44
|
+
end
|
@@ -104,7 +104,7 @@
|
|
104
104
|
"cell_type": "markdown",
|
105
105
|
"metadata": {},
|
106
106
|
"source": [
|
107
|
-
"### Equation
|
107
|
+
"### Equation - Home Economy"
|
108
108
|
]
|
109
109
|
},
|
110
110
|
{
|
@@ -184,7 +184,7 @@
|
|
184
184
|
"cell_type": "markdown",
|
185
185
|
"metadata": {},
|
186
186
|
"source": [
|
187
|
-
"### Evaluation
|
187
|
+
"### Evaluation - Home Economy\n",
|
188
188
|
"\n",
|
189
189
|
"Finally, the code for the interaction, here the *interact* function from *ipywidgets* is used. A separate slider is used for each parameter with the default parameters set for a nice default visualization, with a description and the style and layout is used from the initialization cells.\n"
|
190
190
|
]
|
@@ -197,7 +197,7 @@
|
|
197
197
|
{
|
198
198
|
"data": {
|
199
199
|
"application/vnd.jupyter.widget-view+json": {
|
200
|
-
"model_id": "
|
200
|
+
"model_id": "3df3e1278f904181899fd40a3c617902",
|
201
201
|
"version_major": 2,
|
202
202
|
"version_minor": 0
|
203
203
|
},
|
@@ -268,7 +268,7 @@
|
|
268
268
|
"cell_type": "markdown",
|
269
269
|
"metadata": {},
|
270
270
|
"source": [
|
271
|
-
"### Equation
|
271
|
+
"### Equation - Homes and ACs"
|
272
272
|
]
|
273
273
|
},
|
274
274
|
{
|
@@ -343,7 +343,7 @@
|
|
343
343
|
"cell_type": "markdown",
|
344
344
|
"metadata": {},
|
345
345
|
"source": [
|
346
|
-
"### Evaluation
|
346
|
+
"### Evaluation - Homes and ACs"
|
347
347
|
]
|
348
348
|
},
|
349
349
|
{
|
@@ -354,7 +354,7 @@
|
|
354
354
|
{
|
355
355
|
"data": {
|
356
356
|
"application/vnd.jupyter.widget-view+json": {
|
357
|
-
"model_id": "
|
357
|
+
"model_id": "a5ff151fd2d94357872217ff4a2a5035",
|
358
358
|
"version_major": 2,
|
359
359
|
"version_minor": 0
|
360
360
|
},
|
@@ -432,7 +432,7 @@
|
|
432
432
|
"cell_type": "markdown",
|
433
433
|
"metadata": {},
|
434
434
|
"source": [
|
435
|
-
"### Equation
|
435
|
+
"### Equation - Stock Control"
|
436
436
|
]
|
437
437
|
},
|
438
438
|
{
|
@@ -502,7 +502,7 @@
|
|
502
502
|
"cell_type": "markdown",
|
503
503
|
"metadata": {},
|
504
504
|
"source": [
|
505
|
-
"### Evaluation
|
505
|
+
"### Evaluation - Stock Control"
|
506
506
|
]
|
507
507
|
},
|
508
508
|
{
|
@@ -513,7 +513,7 @@
|
|
513
513
|
{
|
514
514
|
"data": {
|
515
515
|
"application/vnd.jupyter.widget-view+json": {
|
516
|
-
"model_id": "
|
516
|
+
"model_id": "80db41f456e84921928cadfff74c6278",
|
517
517
|
"version_major": 2,
|
518
518
|
"version_minor": 0
|
519
519
|
},
|
@@ -585,7 +585,7 @@
|
|
585
585
|
"cell_type": "markdown",
|
586
586
|
"metadata": {},
|
587
587
|
"source": [
|
588
|
-
"### Equation
|
588
|
+
"### Equation - Useful life"
|
589
589
|
]
|
590
590
|
},
|
591
591
|
{
|
@@ -686,7 +686,7 @@
|
|
686
686
|
"cell_type": "markdown",
|
687
687
|
"metadata": {},
|
688
688
|
"source": [
|
689
|
-
"### Evaluation
|
689
|
+
"### Evaluation - Useful life"
|
690
690
|
]
|
691
691
|
},
|
692
692
|
{
|
@@ -699,7 +699,7 @@
|
|
699
699
|
{
|
700
700
|
"data": {
|
701
701
|
"application/vnd.jupyter.widget-view+json": {
|
702
|
-
"model_id": "
|
702
|
+
"model_id": "dae14bb175d146d289d318a5fc773ec9",
|
703
703
|
"version_major": 2,
|
704
704
|
"version_minor": 0
|
705
705
|
},
|
@@ -790,7 +790,7 @@
|
|
790
790
|
"cell_type": "markdown",
|
791
791
|
"metadata": {},
|
792
792
|
"source": [
|
793
|
-
"### Equation
|
793
|
+
"### Equation - Foxes and Rabbits"
|
794
794
|
]
|
795
795
|
},
|
796
796
|
{
|
@@ -870,20 +870,20 @@
|
|
870
870
|
"cell_type": "markdown",
|
871
871
|
"metadata": {},
|
872
872
|
"source": [
|
873
|
-
"### Evaluation
|
873
|
+
"### Evaluation - Foxes and Rabbits"
|
874
874
|
]
|
875
875
|
},
|
876
876
|
{
|
877
877
|
"cell_type": "code",
|
878
878
|
"execution_count": 11,
|
879
879
|
"metadata": {
|
880
|
-
"scrolled":
|
880
|
+
"scrolled": false
|
881
881
|
},
|
882
882
|
"outputs": [
|
883
883
|
{
|
884
884
|
"data": {
|
885
885
|
"application/vnd.jupyter.widget-view+json": {
|
886
|
-
"model_id": "
|
886
|
+
"model_id": "fc14607ff71c4b65be4a3f883010af2a",
|
887
887
|
"version_major": 2,
|
888
888
|
"version_minor": 0
|
889
889
|
},
|