j1-template 2020.0.1 → 2020.0.6
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_blog_archive.html +22 -18
- data/_includes/themes/j1/layouts/content_generator_collection.html +15 -12
- data/_includes/themes/j1/layouts/content_generator_page.html +16 -17
- data/_includes/themes/j1/layouts/content_generator_post.html +19 -24
- data/_includes/themes/j1/modules/navigator/generator.html +62 -40
- data/assets/data/menu.html +6 -5
- data/assets/data/mmenu.html +455 -0
- data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
- data/assets/data/mmenu_toc.html +45 -0
- data/assets/data/quicklinks.html +9 -4
- data/assets/data/ssm.html +227 -0
- data/assets/error_pages/HTTP204.html +3 -3
- data/assets/themes/j1/core/css/bootstrap.css +116 -93
- data/assets/themes/j1/core/css/bootstrap.min.css +4 -4
- data/assets/themes/j1/core/css/globals.css +1 -1
- data/assets/themes/j1/core/css/theme_extensions.css +186 -96
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +186 -96
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +130 -104
- data/assets/themes/j1/core/css/vendor.min.css +4 -4
- data/assets/themes/j1/core/js/template.js +296 -24
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +21 -17
- data/lib/j1_app/j1_auth_manager/config.rb +13 -9
- data/lib/j1_app/j1_site_manager/static_site.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/_config.yml +12 -139
- data/lib/starter_web/_data/modules/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +25 -24
- data/lib/starter_web/_data/modules/defaults/ssm.yml +50 -0
- data/lib/starter_web/_data/modules/defaults/toccer.yml +14 -15
- data/lib/starter_web/_data/modules/navigator.yml +164 -97
- data/lib/starter_web/_data/modules/ssm.yml +133 -0
- data/lib/starter_web/_data/modules/toccer.yml +20 -62
- data/lib/starter_web/_data/resources.yml +74 -51
- data/lib/starter_web/_data/template_settings.yml +13 -13
- data/lib/starter_web/_plugins/uglify.rb +41 -0
- data/lib/starter_web/apps/public/{cc → cc/cc.yml} +0 -0
- data/lib/starter_web/apps/public/cc/index.adoc +107 -0
- data/lib/starter_web/assets/images/modules/icons/j1/{j1..ico → j1.ico} +0 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/algolia.js +321 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +4 -4
- data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +3 -3
- data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +3 -3
- data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +19 -60
- data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +452 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +50 -50
- data/lib/starter_web/assets/themes/j1/adapter/js/ssm.js +498 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +1 -1
- data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +40 -43
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +384 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +384 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +153 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +153 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +11 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +11 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +118 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +118 -0
- data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/floating_sidebar.adoc +199 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
- data/lib/starter_web/pages/public/learn/whats_up.adoc +12 -11
- data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -3
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
- data/lib/starter_web/pages/public/site_search.adoc +196 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +26 -13
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/lib/starter_web/_data/modules/back2top.yml +0 -40
- data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
- data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
- data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
- data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
- data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
@@ -351,17 +351,14 @@ resources:
|
|
351
351
|
# 6 n/a moment@2.19.2
|
352
352
|
# 7 log4javascript log4javascript@1.4.15
|
353
353
|
# 8 clipboard clipboard@1.7.1
|
354
|
-
# 9 smoothscroll smoothscroll-for-websites@1.4.6
|
355
354
|
# 10 bs_material_design bootstrap-material-design@4.0.0-beta.4
|
356
355
|
# 11 j1_template_4 j1_template_4@0.0.1
|
357
|
-
# 12 tocbot tocbot@
|
356
|
+
# 12 tocbot tocbot@4.11.2
|
358
357
|
# 13 jekyll_search simple_jekyll_search@1.1.5
|
359
|
-
# 14 back2top back2top@1.1
|
360
358
|
# 15 bs_theme_switcher bs_theme_switcher@1.1.5
|
361
359
|
# 16 backstretch backstretch@2.1.16
|
362
360
|
# 17 cookie consent cookieConsent@2019-07-24
|
363
361
|
# 18 bootstrap_datepicker datepicker@1.7.1
|
364
|
-
# 19 bs_gallery bs_gallery@2017-12-27
|
365
362
|
#
|
366
363
|
# ----------------------------------------------------------------------------
|
367
364
|
# J1 Template Core, integrated CSS Resources
|
@@ -439,7 +436,7 @@ resources:
|
|
439
436
|
region: head
|
440
437
|
layout: [ all ]
|
441
438
|
required: always
|
442
|
-
script_load: defer
|
439
|
+
script_load: defer # Warum defer???
|
443
440
|
dependencies: [ logger ]
|
444
441
|
pass_init_data: false
|
445
442
|
data:
|
@@ -479,7 +476,7 @@ resources:
|
|
479
476
|
layout: [ page, post, collection, blog_archive ]
|
480
477
|
region: head
|
481
478
|
required: always
|
482
|
-
script_load: defer
|
479
|
+
script_load: defer # Warum defer???
|
483
480
|
dependencies: [ navigator ]
|
484
481
|
pass_init_data: true
|
485
482
|
data:
|
@@ -488,46 +485,6 @@ resources:
|
|
488
485
|
js: []
|
489
486
|
init_function: [ j1.adapter.toccer.init ]
|
490
487
|
|
491
|
-
# ----------------------------------------------------------------------------
|
492
|
-
# Back2Top
|
493
|
-
#
|
494
|
-
- name: J1 Back2Top
|
495
|
-
resource:
|
496
|
-
id: back2top
|
497
|
-
enabled: true
|
498
|
-
comment: module back2top
|
499
|
-
region: head
|
500
|
-
layout: [ all ]
|
501
|
-
required: always
|
502
|
-
script_load: defer
|
503
|
-
dependencies: [ navigator ]
|
504
|
-
pass_init_data: false
|
505
|
-
data:
|
506
|
-
css: []
|
507
|
-
files: [ adapter/js/back2top.js ]
|
508
|
-
js: []
|
509
|
-
init_function: [ j1.adapter.back2top.init ]
|
510
|
-
|
511
|
-
# ----------------------------------------------------------------------------
|
512
|
-
# Scroller
|
513
|
-
#
|
514
|
-
- name: J1 Scroller
|
515
|
-
resource:
|
516
|
-
id: scroller
|
517
|
-
enabled: true
|
518
|
-
comment: module smoothscroll
|
519
|
-
region: head
|
520
|
-
layout: [ all ]
|
521
|
-
required: always
|
522
|
-
script_load: defer
|
523
|
-
dependencies: false
|
524
|
-
pass_init_data: false
|
525
|
-
data:
|
526
|
-
css: []
|
527
|
-
files: [ adapter/js/scroller.js ]
|
528
|
-
js: []
|
529
|
-
init_function: [ j1.adapter.scroller.init ]
|
530
|
-
|
531
488
|
# ----------------------------------------------------------------------------
|
532
489
|
# Searcher
|
533
490
|
#
|
@@ -568,6 +525,27 @@ resources:
|
|
568
525
|
js: []
|
569
526
|
init_function: [ j1.adapter.cookie_consent.init ]
|
570
527
|
|
528
|
+
# ----------------------------------------------------------------------------
|
529
|
+
# Sticky Side Menu
|
530
|
+
#
|
531
|
+
- name: Sticky Side Menu
|
532
|
+
resource:
|
533
|
+
id: ssm
|
534
|
+
enabled: true
|
535
|
+
comment: module ssm
|
536
|
+
region: head
|
537
|
+
layout: [ page, post, app, collection, blog_archive ]
|
538
|
+
required: always
|
539
|
+
script_load: defer
|
540
|
+
dependencies: false
|
541
|
+
pass_init_data: true
|
542
|
+
data:
|
543
|
+
css: []
|
544
|
+
files: [ adapter/js/ssm.js ]
|
545
|
+
js: []
|
546
|
+
init_function: [ j1.adapter.ssm.init ]
|
547
|
+
|
548
|
+
|
571
549
|
# ==============================================================================
|
572
550
|
# J1 Core MODULES initialized 'ondemand' for a layout
|
573
551
|
# ------------------------------------------------------------------------------
|
@@ -677,6 +655,51 @@ resources:
|
|
677
655
|
js: []
|
678
656
|
init_function: []
|
679
657
|
|
658
|
+
# ----------------------------------------------------------------------------
|
659
|
+
# Algolia
|
660
|
+
#
|
661
|
+
- resource:
|
662
|
+
enabled: true
|
663
|
+
id: algolia
|
664
|
+
comment: Resources used by Algolia Instantsearch
|
665
|
+
region: head
|
666
|
+
layout: [ page, post, app ]
|
667
|
+
required: ondemand
|
668
|
+
script_load: sync
|
669
|
+
data:
|
670
|
+
files: [
|
671
|
+
adapter/js/algolia.js,
|
672
|
+
"https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch-theme-algolia.min.css",
|
673
|
+
"https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.css",
|
674
|
+
"https://cdn.jsdelivr.net/npm/instantsearch.js@2.6.0/dist/instantsearch.min.js"
|
675
|
+
]
|
676
|
+
init_function: [ j1.adapter.algolia.init ]
|
677
|
+
|
678
|
+
# ----------------------------------------------------------------------------
|
679
|
+
# MMenu Light
|
680
|
+
#
|
681
|
+
- name: Mobile Menu
|
682
|
+
resource:
|
683
|
+
id: mmenu
|
684
|
+
enabled: true
|
685
|
+
comment: module mmenu
|
686
|
+
region: head
|
687
|
+
layout: [ all ]
|
688
|
+
required: always
|
689
|
+
script_load: sync
|
690
|
+
dependencies: false
|
691
|
+
pass_init_data: false
|
692
|
+
data:
|
693
|
+
css: [
|
694
|
+
extensions/mmenu-light/css/mmenu-light,
|
695
|
+
extensions/mmenu-light/css/themes/uno
|
696
|
+
]
|
697
|
+
files: [ adapter/js/mmenu.js ]
|
698
|
+
js: [
|
699
|
+
extensions/mmenu-light/js/mmenu-light,
|
700
|
+
extensions/mmenu-light/js/mmenu-light.polyfills
|
701
|
+
]
|
702
|
+
init_function: [ j1.adapter.mmenu.init ]
|
680
703
|
|
681
704
|
# ==============================================================================
|
682
705
|
# Additional Apps and Modules - loaded ASYCHRONOUSLY (defer)
|
@@ -706,7 +729,7 @@ resources:
|
|
706
729
|
files: []
|
707
730
|
js: [
|
708
731
|
extensions/light_gallery/js/core/lightgallery,
|
709
|
-
extensions/light_gallery/js/modules/j1/j1-video,
|
732
|
+
extensions/light_gallery/js/modules/j1/j1-video,
|
710
733
|
extensions/light_gallery/js/modules/lg-autoplay,
|
711
734
|
extensions/light_gallery/js/modules/lg-fullscreen,
|
712
735
|
extensions/light_gallery/js/modules/lg-hash,
|
@@ -740,7 +763,7 @@ resources:
|
|
740
763
|
extensions/videojs/css/themes/sea
|
741
764
|
]
|
742
765
|
files: []
|
743
|
-
js: [
|
766
|
+
js: [
|
744
767
|
extensions/videojs/js/video
|
745
768
|
]
|
746
769
|
init_function: []
|
@@ -826,7 +849,7 @@ resources:
|
|
826
849
|
dependencies: false
|
827
850
|
pass_init_data: true
|
828
851
|
data:
|
829
|
-
css: [
|
852
|
+
css: [
|
830
853
|
extensions/justified_gallery/css/justifiedGallery,
|
831
854
|
extensions/justified_gallery/css/theme/uno
|
832
855
|
]
|
@@ -838,7 +861,7 @@ resources:
|
|
838
861
|
|
839
862
|
# ----------------------------------------------------------------------------
|
840
863
|
# Bootstrap Tour - https://github.com/sorich87/bootstrap-tour/
|
841
|
-
#
|
864
|
+
#
|
842
865
|
# - name: J1 Bootstrap Tour
|
843
866
|
# resource:
|
844
867
|
# id: bs_tour
|
@@ -858,4 +881,4 @@ resources:
|
|
858
881
|
|
859
882
|
|
860
883
|
# ------------------------------------------------------------------------------
|
861
|
-
# END config
|
884
|
+
# END config
|
@@ -118,7 +118,7 @@ cookies:
|
|
118
118
|
user_session: j1.user.session
|
119
119
|
user_state: j1.user.state
|
120
120
|
|
121
|
-
|
121
|
+
|
122
122
|
# ==============================================================================
|
123
123
|
# PAGE configuration settings
|
124
124
|
#
|
@@ -132,14 +132,14 @@ cookies:
|
|
132
132
|
#
|
133
133
|
# prettify
|
134
134
|
# ----------------------------------------------------------------------------
|
135
|
-
# If set to true, all generated HTML pages (by Liquid|Jekyll) get
|
135
|
+
# If set to true, all generated HTML pages (by Liquid|Jekyll) get
|
136
136
|
# formatted "pretty" by layout "default".
|
137
137
|
#
|
138
138
|
# NOTE: Used for developent mode ONLY
|
139
139
|
# NOTE: See ~/packages/300_template_src/_layouts/default.html
|
140
140
|
#
|
141
141
|
# ------------------------------------------------------------------------------
|
142
|
-
flicker_timeout:
|
142
|
+
flicker_timeout: 150
|
143
143
|
|
144
144
|
# ------------------------------------------------------------------------------
|
145
145
|
# HTML PrettyPrint
|
@@ -159,9 +159,9 @@ user:
|
|
159
159
|
provider: j1
|
160
160
|
provider_site_url: https://jekyll.one
|
161
161
|
provider_home_url: https://jekyll.one
|
162
|
-
provider_blog_url: /pages/public/blog/navigator/
|
162
|
+
provider_blog_url: /pages/public/blog/navigator/
|
163
163
|
provider_member_url: /pages/public/learn/whats_up/
|
164
|
-
provider_privacy_url: /pages/public/legal/en/privacy/
|
164
|
+
provider_privacy_url: /pages/public/legal/en/privacy/
|
165
165
|
user_name: guest
|
166
166
|
status: active
|
167
167
|
provider_membership: guest
|
@@ -191,7 +191,7 @@ fa:
|
|
191
191
|
# Body style settings
|
192
192
|
#
|
193
193
|
body:
|
194
|
-
scrollbar: false
|
194
|
+
scrollbar: false
|
195
195
|
background-color: md_gray_50
|
196
196
|
font-color: md_gray_900
|
197
197
|
font-size: 1em
|
@@ -219,7 +219,7 @@ comments:
|
|
219
219
|
enabled: true
|
220
220
|
provider: disqus
|
221
221
|
|
222
|
-
disqus:
|
222
|
+
disqus:
|
223
223
|
short_name: jekyll-one
|
224
224
|
|
225
225
|
# facebook:
|
@@ -228,7 +228,7 @@ comments:
|
|
228
228
|
# width: 580
|
229
229
|
# colorscheme: light
|
230
230
|
|
231
|
-
# custom:
|
231
|
+
# custom:
|
232
232
|
# custom_data:
|
233
233
|
|
234
234
|
# ------------------------------------------------------------------------------
|
@@ -242,7 +242,7 @@ analytics:
|
|
242
242
|
provider: google
|
243
243
|
google:
|
244
244
|
tracking_id: 'UA-138160879-1'
|
245
|
-
custom:
|
245
|
+
custom:
|
246
246
|
custom_data:
|
247
247
|
|
248
248
|
# ------------------------------------------------------------------------------
|
@@ -254,9 +254,9 @@ analytics:
|
|
254
254
|
advertising:
|
255
255
|
enabled: false
|
256
256
|
provider: google
|
257
|
-
google:
|
257
|
+
google:
|
258
258
|
publisher_id: ca-pub-6537273267695855
|
259
|
-
custom:
|
259
|
+
custom:
|
260
260
|
custom_data:
|
261
261
|
|
262
262
|
# ------------------------------------------------------------------------------
|
@@ -271,7 +271,7 @@ translation:
|
|
271
271
|
|
272
272
|
google:
|
273
273
|
layout: default
|
274
|
-
meta_data: [google-translate-customization]
|
274
|
+
meta_data: [google-translate-customization]
|
275
275
|
page_language: en
|
276
276
|
translation_languages: [all]
|
277
277
|
|
@@ -291,4 +291,4 @@ translation:
|
|
291
291
|
|
292
292
|
|
293
293
|
# ------------------------------------------------------------------------------
|
294
|
-
# END config
|
294
|
+
# END config
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# ------------------------------------------------------------------------------
|
2
|
+
# ~/_plugins/uglify.rb
|
3
|
+
# Liquid filter for J1 Template to uglify JS
|
4
|
+
#
|
5
|
+
# Product/Info:
|
6
|
+
# http://jekyll.one
|
7
|
+
#
|
8
|
+
# Copyright (C) 2020 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
|
+
# => Uglifier.compile(File.read(input))
|
14
|
+
# ------------------------------------------------------------------------------
|
15
|
+
#
|
16
|
+
# NOTE:
|
17
|
+
# CustomFilters cannot be used in SAFE mode (e.g not usable for
|
18
|
+
# rendering pages with Jekyll on GitHub
|
19
|
+
#
|
20
|
+
# USAGE:
|
21
|
+
# {% capture cache_name %}
|
22
|
+
#
|
23
|
+
# liquid code to generate HTML output goes here
|
24
|
+
#
|
25
|
+
# {% endcapture %}
|
26
|
+
# {{ cache_name | uglify }}
|
27
|
+
#
|
28
|
+
# ------------------------------------------------------------------------------
|
29
|
+
require 'uglifier'
|
30
|
+
|
31
|
+
module Jekyll
|
32
|
+
module UglifyJS
|
33
|
+
def uglify(input)
|
34
|
+
site_config = @context.scopes[0]["site_config"]
|
35
|
+
path = @context.registers[:page]["url"]
|
36
|
+
Uglifier.compile(File.read("X:/j1/github/j1-template/packages/400_template_site/_site/assets/themes/j1/adapter/js/toccer.js"))
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
Liquid::Template.register_filter(Jekyll::UglifyJS)
|
File without changes
|
@@ -0,0 +1,107 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
|
4
|
+
title: Control Center
|
5
|
+
tagline: site management
|
6
|
+
description: A CMS environment based on Netlify CMS
|
7
|
+
|
8
|
+
tags: [ App, Control Center ]
|
9
|
+
index: [ Control, Center, Netlify, CMS ]
|
10
|
+
categories: [ apps ]
|
11
|
+
|
12
|
+
toc: false
|
13
|
+
scrollbar: true
|
14
|
+
permalink: /apps/public/cc/
|
15
|
+
regenerate: false
|
16
|
+
|
17
|
+
resources: [ framer ]
|
18
|
+
resource_options:
|
19
|
+
- attic:
|
20
|
+
padding_top: 400
|
21
|
+
padding_bottom: 50
|
22
|
+
opacity: 0.5
|
23
|
+
slides:
|
24
|
+
- url: /assets/images/modules/attics/banner/admin-dashboard-bootstrap-1280x800-bw.jpg
|
25
|
+
alt: admin-dashboard-bootstrap-1280x800-bw
|
26
|
+
---
|
27
|
+
|
28
|
+
// TODO
|
29
|
+
// -----------------------------------------------------------------------------
|
30
|
+
// jadams, 2019-08-31: Removing GitHub credentials should be configurable
|
31
|
+
// See: ~/packages/400_template_site/_data/apps/cc.yml
|
32
|
+
// See: https://stackoverflow.com/questions/9943220/how-to-delete-a-localstorage-item-when-the-browser-window-tab-is-closed
|
33
|
+
|
34
|
+
// Enable the Liquid Preprocessor
|
35
|
+
// -----------------------------------------------------------------------------
|
36
|
+
:page-liquid:
|
37
|
+
|
38
|
+
// Set other global page attributes here
|
39
|
+
// -----------------------------------------------------------------------------
|
40
|
+
|
41
|
+
// Liquid procedures
|
42
|
+
// -----------------------------------------------------------------------------
|
43
|
+
|
44
|
+
// Initialize entry document paths
|
45
|
+
// -----------------------------------------------------------------------------
|
46
|
+
|
47
|
+
// Load tags and urls
|
48
|
+
// -----------------------------------------------------------------------------
|
49
|
+
|
50
|
+
// Additional Asciidoc page attributes goes here
|
51
|
+
// -----------------------------------------------------------------------------
|
52
|
+
|
53
|
+
// Include documents
|
54
|
+
// -----------------------------------------------------------------------------
|
55
|
+
|
56
|
+
++++
|
57
|
+
<div id="cms-manager" class="row mt-3">
|
58
|
+
<!--p id="callback" class="ml-2"></p -->
|
59
|
+
|
60
|
+
<iframe
|
61
|
+
src="/assets/data/cc/index.html"
|
62
|
+
width="100%"
|
63
|
+
style="border-width:0;">
|
64
|
+
</iframe>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<script>
|
68
|
+
var cookie_names = j1.getCookieNames();
|
69
|
+
var cookie_user_state_name = cookie_names.user_state;
|
70
|
+
var user_state = j1.readCookie(cookie_user_state_name);
|
71
|
+
var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
|
72
|
+
|
73
|
+
// $('head').append('<style>div#nc-root { background-color: ' +bg_primary+ ' !important; }</style>');
|
74
|
+
|
75
|
+
if (!user_state.cc_authenticated) {
|
76
|
+
// Remove GitHub credentials to enforce explicit login
|
77
|
+
localStorage.removeItem('netlify-cms-user');
|
78
|
+
user_state.cc_authenticated = true;
|
79
|
+
|
80
|
+
j1.writeCookie({
|
81
|
+
name: cookie_user_state_name,
|
82
|
+
data: user_state,
|
83
|
+
expires: 365
|
84
|
+
});
|
85
|
+
}
|
86
|
+
|
87
|
+
iFrameResize({
|
88
|
+
log: false,
|
89
|
+
inPageLinks: true,
|
90
|
+
heightCalculationMethod: 'lowestElement',
|
91
|
+
minHeight: 512,
|
92
|
+
resizedCallback: function(messageData) {
|
93
|
+
$('p#callback').html(
|
94
|
+
'<b>Frame ID:</b> ' + messageData.iframe.id +
|
95
|
+
' <b>Height:</b> ' + messageData.height +
|
96
|
+
' <b>Width:</b> ' + messageData.width +
|
97
|
+
' <b>Event type:</b> ' + messageData.type
|
98
|
+
);
|
99
|
+
}
|
100
|
+
});
|
101
|
+
|
102
|
+
</script>
|
103
|
+
++++
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|