j1-template 2023.3.1 → 2023.3.3
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_news_panel_posts.html +11 -9
- data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
- data/_includes/themes/j1/modules/navigator/generator.html +3 -3
- data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +5 -5
- data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +3 -3
- data/_includes/themes/j1/procedures/global/select_icon_size.proc +9 -2
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +8 -8
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
- data/_layouts/category.html +2 -2
- data/assets/data/authclient.html +10 -12
- data/assets/data/banner.html +3 -3
- data/assets/data/fab.html +11 -8
- data/assets/data/footer.html +2 -3
- data/assets/data/gallery_customizer.html +2 -2
- data/assets/data/masonry.html +4 -4
- data/assets/data/masterslider.html +1 -1
- data/assets/data/menu.html +9 -6
- data/assets/data/panel.html +11 -11
- data/assets/data/quicklinks.html +3 -1
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/slick.html +2 -2
- data/assets/data/translator.html +1 -1
- data/assets/themes/j1/adapter/js/carousel.js +2 -2
- data/assets/themes/j1/adapter/js/j1.js +99 -25
- data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +1 -1
- data/assets/themes/j1/adapter/js/lazyLoader.js +221 -0
- data/assets/themes/j1/adapter/js/lunr.js +3 -3
- data/assets/themes/j1/adapter/js/navigator.js +3 -5
- data/assets/themes/j1/adapter/js/themeToggler.js +3 -3
- data/assets/themes/j1/adapter/js/themer.js +8 -5
- data/assets/themes/j1/core/css/icon-fonts/mdi.css +3 -7
- data/assets/themes/j1/core/css/icon-fonts/mdi.min.css +1 -1
- data/assets/themes/j1/core/css/icon-fonts/mdib.css +8391 -0
- data/assets/themes/j1/core/css/icon-fonts/mdib.min.css +1 -0
- data/assets/themes/j1/core/js/template.js +98 -31
- 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/iconPicker/icons-libraries/mdi-icons-base.json +2690 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-base.min.json +1 -0
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.json +2 -2
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-light.min.json +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/_global.scss +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/_navbar.scss +2 -2
- data/assets/themes/j1/modules/materialize/scss/components/_sidenav.scss +1 -1
- data/assets/themes/j1/modules/materialize/scss/components/forms/_input-fields.scss +2 -2
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/blocks/banner.yml +1 -1
- data/lib/starter_web/_data/blocks/footer.yml +1 -1
- data/lib/starter_web/_data/blocks/panel.yml +47 -47
- data/lib/starter_web/_data/j1_config.yml +1 -1
- data/lib/starter_web/_data/layouts/default.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/attics.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +20 -20
- data/lib/starter_web/_data/modules/defaults/fab.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +33 -0
- data/lib/starter_web/_data/modules/defaults/lunr.yml +2 -2
- data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +18 -18
- data/lib/starter_web/_data/modules/defaults/themer.yml +2 -2
- data/lib/starter_web/_data/modules/fab.yml +7 -7
- data/lib/starter_web/_data/modules/iconPicker.yml +3 -3
- data/lib/starter_web/_data/modules/lazyLoader.yml +93 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +24 -73
- data/lib/starter_web/_data/modules/nbinteract.yml +445 -490
- data/lib/starter_web/_data/resources.yml +67 -69
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/custom/templates/collection_panel.html +2 -2
- data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +1 -1
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +152 -12
- data/lib/starter_web/pages/public/tools/cheatsheet/gem.adoc +4 -4
- data/lib/starter_web/pages/public/tools/cheatsheet/git.adoc +13 -13
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +9 -39
- data/assets/data/nbinteract.html +0 -129
- data/assets/themes/j1/adapter/js/nbinteract.js +0 -1485
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.json +0 -7312
- data/assets/themes/j1/modules/iconPicker/icons-libraries/mdi-icons-regular.min.json +0 -1
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.css +0 -1315
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.min.css +0 -7
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.css +0 -886
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.structure.min.css +0 -5
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.css +0 -446
- data/assets/themes/j1/modules/jquery-3.5.1/css/jquery-ui/jquery-ui.theme.min.css +0 -5
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.js +0 -37
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/hasClass.min.js +0 -17
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.js +0 -42
- data/assets/themes/j1/modules/jquery-3.5.1/js/extensions/removeClass.min.js +0 -17
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.js +0 -19057
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery-ui.min.js +0 -6
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.js +0 -10872
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.js +0 -2
- data/assets/themes/j1/modules/jquery-3.5.1/js/jquery.min.map +0 -1
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.js +0 -2145
- data/assets/themes/j1/modules/jquery-3.5.1/js/require.min.js +0 -5
- data/assets/themes/j1/modules/nbinteract-core/LICENSE.txt +0 -60
- data/assets/themes/j1/modules/nbinteract-core/README.md +0 -226
- data/assets/themes/j1/modules/nbinteract-core/css/nbinteract.css +0 -191
- data/assets/themes/j1/modules/nbinteract-core/css/nbinteract.min.css +0 -19
- data/assets/themes/j1/modules/nbinteract-core/css/theme/uno/nbinteract.css +0 -250
- data/assets/themes/j1/modules/nbinteract-core/css/theme/uno/nbinteract.min.css +0 -15
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/latest.js +0 -19
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-chtml-full.js +0 -34
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-chtml.js +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/mathjax/tex-mml-chtml.js +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/README +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/j1-nbinteract-core.js +0 -94
- data/assets/themes/j1/modules/nbinteract-core/js/nbinteract/j1-nbinteract-core.js.map +0 -1
- data/assets/themes/j1/modules/nbinteract-core/js/requireJS/require.js +0 -2068
- data/assets/themes/j1/modules/nbinteract-core/js/requireJS/require.min.js +0 -36
- data/lib/starter_web/_data/modules/defaults/nbinteract.yml +0 -281
@@ -1,250 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/themes/j1/modules/nbInteract/css/nbinteract/nbinteract-core.css
|
4
|
-
# Provides base styles for nbInteract
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
#
|
9
|
-
# Copyright (C) 2023 Juergen Adams
|
10
|
-
#
|
11
|
-
# J1 Theme is licensed under MIT License.
|
12
|
-
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
13
|
-
# -----------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
|
16
|
-
/* Altair style overwrites
|
17
|
-
-------------------------------------------------------------------------------- */
|
18
|
-
|
19
|
-
/* jadams: overwrite width/height (style) of the canvas for responsiveness */
|
20
|
-
/* https://stackoverflow.com/questions/55169344/how-to-make-altair-plots-responsive */
|
21
|
-
canvas.marks {
|
22
|
-
max-width: 100% !important;
|
23
|
-
height: auto !important;
|
24
|
-
}
|
25
|
-
|
26
|
-
/* div.vega-bind, div.vega-bind > span {
|
27
|
-
margin-left: .5rem !important;
|
28
|
-
font-size: 1rem;
|
29
|
-
} */
|
30
|
-
|
31
|
-
input[type="range"] {
|
32
|
-
/* margin-top: 0.5rem; */
|
33
|
-
}
|
34
|
-
|
35
|
-
.vega-bind {
|
36
|
-
margin-top: 0.25rem;
|
37
|
-
}
|
38
|
-
|
39
|
-
.vega-bind-name {
|
40
|
-
width: 8rem !important;
|
41
|
-
display: inline-block;
|
42
|
-
}
|
43
|
-
.checkbox label, .radio label, label {
|
44
|
-
margin-left: 0;
|
45
|
-
}
|
46
|
-
|
47
|
-
form.vega-bindings {
|
48
|
-
font-size: 1rem;
|
49
|
-
margin: .75rem 0 .75rem 1.75rem;
|
50
|
-
}
|
51
|
-
|
52
|
-
input, select {
|
53
|
-
margin-right: 0.75rem;
|
54
|
-
margin-left: 0.75rem;
|
55
|
-
}
|
56
|
-
|
57
|
-
select {
|
58
|
-
border-width: 1px;
|
59
|
-
border-style: solid;
|
60
|
-
border-color: #9E9E9E;
|
61
|
-
color: #757575;
|
62
|
-
line-height: 125%;
|
63
|
-
padding: 0px 0 0 6px;
|
64
|
-
-webkit-appearance: none;
|
65
|
-
-moz-appearance: none;
|
66
|
-
background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
|
67
|
-
background-position: calc(100% - 0.75rem) center !important;
|
68
|
-
-moz-appearance: none !important;
|
69
|
-
-webkit-appearance: none !important;
|
70
|
-
appearance: none !important;
|
71
|
-
padding-right: 2rem !important;
|
72
|
-
border: 1px solid #BDBDBD;
|
73
|
-
border-radius: 2px;
|
74
|
-
}
|
75
|
-
|
76
|
-
/* select:focus {
|
77
|
-
min-width: 150px;
|
78
|
-
width: auto;
|
79
|
-
} */
|
80
|
-
|
81
|
-
/* .vega-bind-name {
|
82
|
-
width: 16rem !important;
|
83
|
-
display: inline-block;
|
84
|
-
} */
|
85
|
-
|
86
|
-
/* select {
|
87
|
-
margin-right: .75rem;
|
88
|
-
margin-left: .75rem;
|
89
|
-
} */
|
90
|
-
|
91
|
-
/* MathJax style overwrites (CSS-HTML)
|
92
|
-
-------------------------------------------------------------------------------- */
|
93
|
-
.MathJax span {
|
94
|
-
font-size: 100% !important;
|
95
|
-
}
|
96
|
-
|
97
|
-
/* MathJax style overwrites (CommonHTML)
|
98
|
-
-------------------------------------------------------------------------------- */
|
99
|
-
|
100
|
-
.MJXc-display {
|
101
|
-
margin: 1em 0 1em 0 !important;
|
102
|
-
}
|
103
|
-
|
104
|
-
.mjx-chtml {
|
105
|
-
margin-right: 0.25rem !important;
|
106
|
-
margin-left: 0.25rem !important;
|
107
|
-
font-size: 100% !important;
|
108
|
-
}
|
109
|
-
|
110
|
-
|
111
|
-
/* Bgplot style overwrites
|
112
|
-
-------------------------------------------------------------------------------- */
|
113
|
-
.bqplot {
|
114
|
-
box-sizing: border-box !important;
|
115
|
-
display: flex !important;
|
116
|
-
min-width: 640px !important;
|
117
|
-
min-height: 480px !important;
|
118
|
-
}
|
119
|
-
|
120
|
-
/* global styles
|
121
|
-
-------------------------------------------------------------------------------- */
|
122
|
-
.bmd-form-group {
|
123
|
-
padding-top: unset;
|
124
|
-
}
|
125
|
-
|
126
|
-
.container {
|
127
|
-
width: 100% !important;
|
128
|
-
}
|
129
|
-
|
130
|
-
.hidden {
|
131
|
-
display: none !important;
|
132
|
-
}
|
133
|
-
|
134
|
-
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
|
135
|
-
margin-top: 1rem !important;
|
136
|
-
}
|
137
|
-
|
138
|
-
pre {
|
139
|
-
line-height: 125%;
|
140
|
-
margin-top: 0 !important;
|
141
|
-
padding: 0.75rem;
|
142
|
-
border: 1px solid #bdbdbd;
|
143
|
-
border-radius: 0.25rem;
|
144
|
-
}
|
145
|
-
|
146
|
-
/* Base Style/CSS style overwrites (General Button Styling)
|
147
|
-
-------------------------------------------------------------------------------- */
|
148
|
-
|
149
|
-
/* jadams, 2022-04-22 */
|
150
|
-
.jupyter-widgets {
|
151
|
-
overflow: hidden !important;
|
152
|
-
}
|
153
|
-
|
154
|
-
/* jadams, 2022-04-22: overload BS style for the p element */
|
155
|
-
.widget-html-content > p {
|
156
|
-
margin-bottom: 0 !important;
|
157
|
-
}
|
158
|
-
|
159
|
-
/* jadams, 2022-04-22: overload FA style for size and placement */
|
160
|
-
.widget-html-content > .fa.fa-check, .fa.fa-times {
|
161
|
-
font-size: 1.5rem !important;
|
162
|
-
margin-left: .5rem !important;
|
163
|
-
}
|
164
|
-
|
165
|
-
/* jadams, 2022-04-22: additinal space for NBI/Interactive Questions */
|
166
|
-
/* NOTE: affects ALL widget-vbox elements e.g. sitting in a 'output_wrapper' */
|
167
|
-
/* but acceptable */
|
168
|
-
.widget-vbox {
|
169
|
-
margin-bottom: 0.75rem !important;
|
170
|
-
}
|
171
|
-
|
172
|
-
/* jadams, 2022-04-22 */
|
173
|
-
.widget-hslider {
|
174
|
-
margin-top: 1rem !important;
|
175
|
-
margin-left: 0 !important;
|
176
|
-
width: 99% !important;
|
177
|
-
}
|
178
|
-
|
179
|
-
/* jadams, 2022-04-22 */
|
180
|
-
.widget-inline-hbox .widget-label {
|
181
|
-
/* width: 6rem !important; */
|
182
|
-
}
|
183
|
-
|
184
|
-
/* jadams, 2022-04-22 */
|
185
|
-
.widget-label {
|
186
|
-
margin-left: 0 !important;
|
187
|
-
}
|
188
|
-
|
189
|
-
/* Overrides of notebook styles for static HTML export
|
190
|
-
-------------------------------------------------------------------------------- */
|
191
|
-
div#notebook {
|
192
|
-
overflow: visible;
|
193
|
-
border-top: none;
|
194
|
-
} @media print {
|
195
|
-
div.cell {
|
196
|
-
display: block;
|
197
|
-
page-break-inside: avoid;
|
198
|
-
}
|
199
|
-
div.output_wrapper {
|
200
|
-
display: block;
|
201
|
-
page-break-inside: avoid;
|
202
|
-
max-width: 100%;
|
203
|
-
height: auto;
|
204
|
-
}
|
205
|
-
div.output {
|
206
|
-
display: block;
|
207
|
-
page-break-inside: avoid;
|
208
|
-
}
|
209
|
-
}
|
210
|
-
|
211
|
-
/* Cell styles for static HTML export
|
212
|
-
-------------------------------------------------------------------------------- */
|
213
|
-
|
214
|
-
/* adopted from BS "table-responsive */
|
215
|
-
.cell-responsive {
|
216
|
-
overflow-x: auto;
|
217
|
-
-webkit-overflow-scrolling: touch;
|
218
|
-
}
|
219
|
-
|
220
|
-
.cell.nbinteract-left {
|
221
|
-
width: 49%;
|
222
|
-
float: left;
|
223
|
-
}
|
224
|
-
|
225
|
-
.cell.nbinteract-right {
|
226
|
-
width: 49%;
|
227
|
-
float: right;
|
228
|
-
}
|
229
|
-
|
230
|
-
.cell.nbinteract-hide_in > .input {
|
231
|
-
display: none;
|
232
|
-
}
|
233
|
-
|
234
|
-
.cell.nbinteract-hide_out > .output_wrapper {
|
235
|
-
display: none;
|
236
|
-
}
|
237
|
-
|
238
|
-
.cell:after {
|
239
|
-
content: "";
|
240
|
-
display: table;
|
241
|
-
clear: both;
|
242
|
-
}
|
243
|
-
|
244
|
-
div.output_subarea {
|
245
|
-
max-width: initial;
|
246
|
-
}
|
247
|
-
|
248
|
-
.jp-OutputPrompt {
|
249
|
-
display: none;
|
250
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/themes/j1/modules/nbInteract/css/nbinteract/nbinteract-core.css
|
4
|
-
# Provides base styles for nbInteract
|
5
|
-
#
|
6
|
-
# Product/Info:
|
7
|
-
# https://jekyll.one
|
8
|
-
#
|
9
|
-
# Copyright (C) 2023 Juergen Adams
|
10
|
-
#
|
11
|
-
# J1 Theme is licensed under MIT License.
|
12
|
-
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md
|
13
|
-
# -----------------------------------------------------------------------------
|
14
|
-
*/
|
15
|
-
canvas.marks{max-width:100% !important;height:auto !important}.vega-bind{margin-top:.25rem}.vega-bind-name{width:8rem !important;display:inline-block}.checkbox label,.radio label,label{margin-left:0}form.vega-bindings{font-size:1rem;margin:.75rem 0 .75rem 1.75rem}input,select{margin-right:.75rem;margin-left:.75rem}select{border-width:1px;border-style:solid;border-color:#9e9e9e;color:#757575;line-height:125%;padding:0 0 0 6px;-webkit-appearance:none;-moz-appearance:none;background:url("data:image/svg+xml,<svgheight='10px'width='10px'viewBox='001616'fill='%23000000'xmlns='http://www.w3.org/2000/svg'><pathd='M7.24711.142.4515.658C1.8855.0132.34543.2044h9.592a11001.7531.659l-4.7965.48a11001-1.5060z'/></svg>") no-repeat;background-position:calc(100% - .75rem) center !important;-moz-appearance:none !important;-webkit-appearance:none !important;appearance:none !important;padding-right:2rem !important;border:1px solid #bdbdbd;border-radius:2px}.MathJax span{font-size:100% !important}.MJXc-display{margin:1em 0 1em 0 !important}.mjx-chtml{margin-right:.25rem !important;margin-left:.25rem !important;font-size:100% !important}.bqplot{box-sizing:border-box !important;display:flex !important;min-width:640px !important;min-height:480px !important}.bmd-form-group{padding-top:unset}.container{width:100% !important}.hidden{display:none !important}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:1rem !important}pre{line-height:125%;margin-top:0 !important;padding:.75rem;border:1px solid #bdbdbd;border-radius:.25rem}.jupyter-button{background-color:#bdbdbd !important}.jupyter-button:hover:enabled,.jupyter-button:focus:enabled{box-shadow:0 3px 5px -1px rgba(0,0,0,0.2),0 5px 8px 0 rgba(0,0,0,0.14),0 1px 14px 0 rgba(0,0,0,0.12) !important}}.jupyter-widgets{overflow:hidden !important}.widget-html-content>p{margin-bottom:0 !important}.widget-html-content>.fa.fa-check,.fa.fa-times{font-size:1.5rem !important;margin-left:.5rem !important}.widget-vbox{margin-bottom:.75rem !important}.widget-hslider{margin-top:1rem !important;margin-left:0 !important;width:99% !important}.widget-label{margin-left:0 !important}div#notebook{overflow:visible;border-top:0}@media print{div.cell{display:block;page-break-inside:avoid}div.output_wrapper{display:block;page-break-inside:avoid;max-width:100%;height:auto}div.output{display:block;page-break-inside:avoid}}.cell-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}.cell.nbinteract-left{width:49%;float:left}.cell.nbinteract-right{width:49%;float:right}.cell.nbinteract-hide_in>.input{display:none}.cell.nbinteract-hide_out>.output_wrapper{display:none}.cell:after{content:"";display:table;clear:both}div.output_subarea{max-width:initial}.jp-OutputPrompt{display:none}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* /MathJax/latest.js
|
3
|
-
*
|
4
|
-
* Copyright (c) 2009-2018 The MathJax Consortium
|
5
|
-
*
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
* you may not use this file except in compliance with the License.
|
8
|
-
* You may obtain a copy of the License at
|
9
|
-
*
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
*
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
* See the License for the specific language governing permissions and
|
16
|
-
* limitations under the License.
|
17
|
-
*/
|
18
|
-
|
19
|
-
(function(){var h={"cdnjs.cloudflare.com":{api:"https://api.cdnjs.com/libraries/mathjax?fields=version",version:"version",mathjax:"https://cdnjs.cloudflare.com/ajax/libs/mathjax/"},"cdn.rawgit.com":{api:"https://api.github.com/repos/mathjax/mathjax/releases/latest",version:"tag_name",mathjax:"https://cdn.rawgit.com/mathjax/MathJax/"},"cdn.jsdelivr.net":{api:"https://api.jsdelivr.com/v1/jsdelivr/libraries?name=mathjax&lastversion=*",version:"lastversion",mathjax:"https://cdn.jsdelivr.net/mathjax/"}};function g(q){if(console&&console.log){console.log(q)}}function e(){if(document.currentScript){return document.currentScript}var r=document.getElementsByTagName("script");for(var v=0,q=r.length;v<q;v++){var t=r[v];for(var s in h){if(h.hasOwnProperty(s)){var u=h[s].mathjax;if(t.src&&t.src.substr(0,u.length)===u){return t}}}}}function a(r){if(!r){return}var q=r.src.replace(/https:\/\//,"").replace(/[\/\?].*/,"");return h[q]}var l=/(?:^|;\s*)mjx\.latest=([^;]*)(?:;|$)/;function d(){var q;try{q=l.exec(document.cookie)}catch(r){}if(q&&q[1]!==""){return q[1]}}function c(q){cookie="mjx.latest="+q;var s=new Date();s.setDate(s.getDate()+7);cookie+="; expires="+s.toGMTString();cookie+="; path=/";try{document.cookie=cookie}catch(r){}}function j(){if(window.XMLHttpRequest){return new XMLHttpRequest()}if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(q){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(q){}}}function o(r){var q=document.createElement("script");q.type="text/javascript";q.async=true;q.src=r;var s=document.head||document.getElementsByTagName("head")[0]||document.body;if(s){s.appendChild(q)}else{g("Can't find the document <head> element")}}function i(){var q=e();if(q){o(q.src.replace(/\/latest\.js/,"/MathJax.js"))}else{g("Can't determine the URL for loading MathJax")}}function m(q,r,s){var t=j();if(t){t.onreadystatechange=function(){if(t.readyState===4){if(t.status===200){var v=JSON.parse(t.responseText);if(v instanceof Array){v=v[0]}var u=v[q.version];if(u.substr(0,2)==="2."){c(u);o(q.mathjax+v[q.version]+s+"/MathJax.js"+r);return}}else{g("Problem acquiring MathJax version: status = "+t.status)}i()}};t.open("GET",q.api,true);t.send(null)}else{g("Can't create XMLHttpRequest object");i()}}var n=e();var p=a(n);if(p){var b=n.src.replace(/.*?(\?|$)/,"$1");b+=(b?"&":"?")+"latest";var f=(n.src.match(/\/unpacked\/latest\.js/)?"/unpacked":"");var k=d();if(k){o(p.mathjax+k+f+"/MathJax.js"+b)}else{m(p,b,f)}}else{i()}})();
|