j1-template 2020.0.25 → 2021.0.0
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/modules/attics/generator.html +1 -1
- data/assets/data/carousel.json +7 -15
- data/assets/themes/j1/adapter/js/carousel.js +395 -32
- data/assets/themes/j1/adapter/js/rtable.js +3 -1
- data/assets/themes/j1/adapter/js/toccer.js +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +23 -3
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +1 -1
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +89 -36
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.css +443 -0
- data/assets/themes/j1/modules/jquery/css/jqueryUI/theme.min.css +5 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.js +18701 -0
- data/assets/themes/j1/modules/jquery/js/jqueryUI.min.js +13 -0
- data/assets/themes/j1/modules/kofax.7z +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +21 -90
- data/lib/starter_web/_data/apps/carousel.yml +157 -336
- data/lib/starter_web/_data/apps/defaults/carousel.yml +87 -86
- data/lib/starter_web/_data/layouts/collection.yml +6 -6
- data/lib/starter_web/_data/layouts/home.yml +0 -1
- data/lib/starter_web/_data/layouts/page.yml +1 -2
- data/lib/starter_web/_data/layouts/post.yml +1 -2
- data/lib/starter_web/_data/modules/fam.yml +45 -11
- data/lib/starter_web/_data/resources.yml +3 -2
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/assets/images/modules/icons/d1/d1-256x256.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-512x512.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1-64x64.png +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/d1.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/modules/icons/d1/scalable/d1.svg +48 -43
- data/lib/starter_web/assets/images/quotes/colored-1.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/colored-2.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/default.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/light-blue.jpg +0 -0
- data/lib/starter_web/assets/images/quotes/people.jpg +0 -0
- data/lib/starter_web/package.json +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -23
- data/lib/starter_web/pages/public/previewer/rouge.adoc +238 -4
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +12 -53
- data/assets/themes/j1/core/css/bootstrap.css +0 -7154
- data/assets/themes/j1/core/css/bootstrap.min.css +0 -6
- data/assets/themes/j1/core/css/custom.scss +0 -28
- data/assets/themes/j1/core/css/globals.css +0 -14523
- data/assets/themes/j1/core/css/globals.min.css +0 -1
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/assets/themes/j1/core/css/theme_extensions.css +0 -11558
- data/assets/themes/j1/core/css/theme_extensions.min.css +0 -1
- data/assets/themes/j1/core/css/uno.css +0 -11823
- data/assets/themes/j1/core/css/uno.min.css +0 -1
- data/assets/themes/j1/core/css/uno.scss +0 -28
- data/assets/themes/j1/core/css/vendor.scss +0 -28
- data/lib/starter_web/assets/images/quotes/default.png +0 -0
- data/lib/starter_web/assets/images/quotes/people.png +0 -0
- data/lib/starter_web/collections/posts/public/series/_posts/2018-11-01-docker-using-shared-folders.adoc +0 -494
- data/lib/starter_web/collections/posts/public/test_posts/_posts/2020-09-11-test_post.adoc +0 -218
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/attributes.asciidoc +0 -34
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/debug_variables.asciidoc +0 -48
- data/lib/starter_web/collections/posts/public/test_posts/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/pages/public/test_pages/_includes/attributes.asciidoc +0 -49
- data/lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_bem_specifiers.asciidoc +0 -22
- data/lib/starter_web/pages/public/test_pages/_includes/tables/000_specifier_examples.asciidoc +0 -56
- data/lib/starter_web/pages/public/test_pages/breadcrumbs_tester.adoc +0 -62
- data/lib/starter_web/pages/public/test_pages/carousel_captions.adoc +0 -1045
- data/lib/starter_web/pages/public/test_pages/deck_of_posts.adoc +0 -165
- data/lib/starter_web/pages/public/test_pages/floating_actions_button.adoc +0 -523
- data/lib/starter_web/pages/public/test_pages/floating_ad.adoc +0 -208
- data/lib/starter_web/pages/public/test_pages/floating_div.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/lunr_tester.adoc +0 -89
- data/lib/starter_web/pages/public/test_pages/nav_pagination_tester.adoc +0 -284
- data/lib/starter_web/pages/public/test_pages/page_attribute_tester.adoc +0 -196
- data/lib/starter_web/pages/public/test_pages/responsive_images.adoc +0 -213
- data/lib/starter_web/pages/public/test_pages/responsive_tables.adoc +0 -210
- data/lib/starter_web/pages/public/test_pages/toccer_tester.adoc +0 -2245
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/attributes.asciidoc +0 -117
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc +0 -27
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_table_3_column.asciidoc +0 -47
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/419_advanced_modals_html.asciidoc +0 -928
- data/lib/starter_web/pages/public/test_pages/vtutorials/000_test_youtube_video.adoc +0 -141
- data/lib/starter_web/pages/public/test_pages/vtutorials/100_basic_video.adoc +0 -109
@@ -1,208 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: CSS Examples
|
3
|
-
tagline: floating ads
|
4
|
-
description: floating ads
|
5
|
-
|
6
|
-
tags: [ Page, Roundtrip ]
|
7
|
-
index: [ Start, Template, Whats, Up, Readme, TL;DR ]
|
8
|
-
categories: [ pages ]
|
9
|
-
|
10
|
-
toc: true
|
11
|
-
advertising: true
|
12
|
-
date: 2020-11-08 12:00:00
|
13
|
-
|
14
|
-
permalink: /pages/public/learn/fad/
|
15
|
-
regenerate: false
|
16
|
-
|
17
|
-
resources: [ lightbox ]
|
18
|
-
resource_options:
|
19
|
-
---
|
20
|
-
|
21
|
-
// Page Initializer
|
22
|
-
// =============================================================================
|
23
|
-
// Enable the Liquid Preprocessor
|
24
|
-
:page-liquid:
|
25
|
-
|
26
|
-
// Set page (local) attributes here
|
27
|
-
// -----------------------------------------------------------------------------
|
28
|
-
// :page--attr: <attr-value>
|
29
|
-
|
30
|
-
// Load Liquid procedures
|
31
|
-
// -----------------------------------------------------------------------------
|
32
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
33
|
-
|
34
|
-
// Load page attributes
|
35
|
-
// -----------------------------------------------------------------------------
|
36
|
-
{% include {{load_attributes}} scope="none" %}
|
37
|
-
|
38
|
-
|
39
|
-
// Page content
|
40
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
41
|
-
Welcome to the pages of J1 Template. If your here first time,
|
42
|
-
hopefully you get on that page first. For sure, there is no better
|
43
|
-
place to step in.
|
44
|
-
|
45
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
46
|
-
support you to explore this site, find what your are looking for. The site
|
47
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
48
|
-
a home. And we have really a bunch of them.
|
49
|
-
|
50
|
-
== Orientation
|
51
|
-
|
52
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
53
|
-
use the English language for our international vistors (we are German),
|
54
|
-
*natural reading* means for a western language, reading from the left to the
|
55
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
56
|
-
and pages.
|
57
|
-
|
58
|
-
Welcome to the pages of J1 Template. If your here first time,
|
59
|
-
hopefully you get on that page first. For sure, there is no better
|
60
|
-
place to step in.
|
61
|
-
|
62
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
63
|
-
support you to explore this site, find what your are looking for. The site
|
64
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
65
|
-
a home. And we have really a bunch of them.
|
66
|
-
|
67
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
68
|
-
use the English language for our international vistors (we are German),
|
69
|
-
*natural reading* means for a western language, reading from the left to the
|
70
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
71
|
-
and pages.
|
72
|
-
Welcome to the pages of J1 Template. If your here first time,
|
73
|
-
hopefully you get on that page first. For sure, there is no better
|
74
|
-
place to step in.
|
75
|
-
|
76
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
77
|
-
support you to explore this site, find what your are looking for. The site
|
78
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
79
|
-
a home. And we have really a bunch of them.
|
80
|
-
|
81
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
82
|
-
use the English language for our international vistors (we are German),
|
83
|
-
*natural reading* means for a western language, reading from the left to the
|
84
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
85
|
-
and pages.
|
86
|
-
|
87
|
-
|
88
|
-
++++
|
89
|
-
<style>
|
90
|
-
|
91
|
-
.advertising {
|
92
|
-
display: none;
|
93
|
-
}
|
94
|
-
|
95
|
-
.adblock {
|
96
|
-
}
|
97
|
-
|
98
|
-
.adblock-fixed {
|
99
|
-
position: fixed;
|
100
|
-
}
|
101
|
-
|
102
|
-
/* .sidebar {
|
103
|
-
width:33.33%;
|
104
|
-
float:left;
|
105
|
-
padding: 0 10px;
|
106
|
-
} */
|
107
|
-
|
108
|
-
/*
|
109
|
-
.floating-div {
|
110
|
-
background-color: #333;
|
111
|
-
padding: 10px 50px;
|
112
|
-
color:#EEE;
|
113
|
-
font-size: 20px;
|
114
|
-
margin-top:10px;
|
115
|
-
position: absolute;
|
116
|
-
right: -40px;
|
117
|
-
}
|
118
|
-
*/
|
119
|
-
.floating-div {
|
120
|
-
background-color: #333;
|
121
|
-
/* padding: 10px 50px; */
|
122
|
-
color: #EEE;
|
123
|
-
font-size: 20px;
|
124
|
-
/* margin-top: 10px; */
|
125
|
-
/* position: absolute; */
|
126
|
-
/* right: -40px; */
|
127
|
-
}
|
128
|
-
|
129
|
-
.sticky {
|
130
|
-
position: fixed;
|
131
|
-
top: 150px;
|
132
|
-
right:-40px;
|
133
|
-
margin: 0;
|
134
|
-
width:calc(33.33% - 25px);
|
135
|
-
}
|
136
|
-
|
137
|
-
.abs {
|
138
|
-
position: absolute;
|
139
|
-
bottom: 10px;
|
140
|
-
right:10px;
|
141
|
-
width:calc(33.33% - 20px);
|
142
|
-
}
|
143
|
-
</style>
|
144
|
-
|
145
|
-
<script>
|
146
|
-
$(document).ready(function() {
|
147
|
-
var dependencies_met_core = setInterval(function() {
|
148
|
-
if (j1.getState() == 'finished') {
|
149
|
-
// variables
|
150
|
-
var logger = log4javascript.getLogger('fad.scrollSpy');
|
151
|
-
|
152
|
-
var $window = $(window);
|
153
|
-
var $navbar = $('nav.navbar');
|
154
|
-
var $attic = $('.attic');
|
155
|
-
var $main_content = $('.js-toc-content');
|
156
|
-
var $adblock = $('#adblock');
|
157
|
-
var $footer = $('#j1_footer');
|
158
|
-
|
159
|
-
var pageHeight = $window.height();
|
160
|
-
var pageHeightOuter = $window.outerHeight();
|
161
|
-
|
162
|
-
var atticHeight = $attic.height();
|
163
|
-
var atticHeightOuter = $attic.outerHeight()
|
164
|
-
var navbarHeight = $navbar.height();
|
165
|
-
var navbarHeightOuter = $navbar.outerHeight()
|
166
|
-
|
167
|
-
var footerHeight = $footer.height();
|
168
|
-
var footerHeightOuter = $footer.outerHeight();
|
169
|
-
var footerFromTop = $footer.offset().top;
|
170
|
-
|
171
|
-
var adFromTop = $adblock.offset().top;
|
172
|
-
var adblockHeight = $adblock.height();
|
173
|
-
var adblockHeightOuter = $adblock.outerHeight();
|
174
|
-
|
175
|
-
var a = $adblock.offset().top;
|
176
|
-
var m = $main_content.offset().top;
|
177
|
-
var h = $attic.length ? $attic.height() : 0;
|
178
|
-
var n = $navbar.length ? $navbar.height() : 0;
|
179
|
-
|
180
|
-
var fixPosition = navbarHeight;
|
181
|
-
var absPosition = fixPosition - 10;
|
182
|
-
|
183
|
-
$window.scroll(function() {
|
184
|
-
var scrollPos = $(document).scrollTop();
|
185
|
-
|
186
|
-
logger.info('document scroll pos detected as: ' + scrollPos + 'px');
|
187
|
-
|
188
|
-
if ($window.scrollTop() > fixPosition) {
|
189
|
-
$adblock.show();
|
190
|
-
$adblock.addClass('adblock-fixed');
|
191
|
-
// $adblock.css('top', 80);
|
192
|
-
$adblock.css('top', fixPosition);
|
193
|
-
} else if ($window.scrollTop() < absPosition) {
|
194
|
-
$adblock.removeClass('adblock-fixed');
|
195
|
-
$adblock.removeAttr('style');
|
196
|
-
$adblock.hide();
|
197
|
-
} else {
|
198
|
-
$adblock.removeClass('adblock-fixed');
|
199
|
-
$adblock.removeAttr('style');
|
200
|
-
$adblock.hide();
|
201
|
-
}
|
202
|
-
});
|
203
|
-
clearInterval(dependencies_met_core);
|
204
|
-
}
|
205
|
-
}, 25);
|
206
|
-
});
|
207
|
-
</script>
|
208
|
-
++++
|
@@ -1,196 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: CSS Examples
|
3
|
-
tagline: floating div
|
4
|
-
description: floating div
|
5
|
-
|
6
|
-
tags: [ Page, Roundtrip ]
|
7
|
-
index: [ Start, Template, Whats, Up, Readme, TL;DR ]
|
8
|
-
categories: [ pages ]
|
9
|
-
|
10
|
-
permalink: /pages/public/learn/fsb/
|
11
|
-
regenerate: false
|
12
|
-
date: 2020-11-08 12:00:00
|
13
|
-
|
14
|
-
resources: [ lightbox ]
|
15
|
-
resource_options:
|
16
|
-
---
|
17
|
-
|
18
|
-
// Page Initializer
|
19
|
-
// =============================================================================
|
20
|
-
// Enable the Liquid Preprocessor
|
21
|
-
:page-liquid:
|
22
|
-
|
23
|
-
// Set page (local) attributes here
|
24
|
-
// -----------------------------------------------------------------------------
|
25
|
-
// :page--attr: <attr-value>
|
26
|
-
|
27
|
-
// Load Liquid procedures
|
28
|
-
// -----------------------------------------------------------------------------
|
29
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
30
|
-
|
31
|
-
// Load page attributes
|
32
|
-
// -----------------------------------------------------------------------------
|
33
|
-
{% include {{load_attributes}} scope="none" %}
|
34
|
-
|
35
|
-
|
36
|
-
// Page content
|
37
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
38
|
-
++++
|
39
|
-
<div id="adblock" class="row no-gutters adblock">
|
40
|
-
<div class="doc-example mb-3">
|
41
|
-
<button type="button" class="btn btn-secondary btn-raised">Primary</button>
|
42
|
-
<button type="button" class="btn btn-secondary btn-raised">Secondary</button>
|
43
|
-
<button type="button" class="btn btn-success btn-raised">Success</button>
|
44
|
-
<button type="button" class="btn btn-info btn-raised">Info</button>
|
45
|
-
<button type="button" class="btn btn-warning btn-raised">Warning</button>
|
46
|
-
<button type="button" class="btn btn-danger btn-raised">Danger</button>
|
47
|
-
<button type="button" class="btn btn-link btn-raised">Link</button>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
++++
|
51
|
-
|
52
|
-
++++
|
53
|
-
<div class="">
|
54
|
-
<div class="floating-div">
|
55
|
-
<p>This "floating div" could be a form, a call to action, an ad,
|
56
|
-
or whatever other content you want to float in sidebar as the user
|
57
|
-
scrolls up and down the page.
|
58
|
-
</p>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
++++
|
62
|
-
|
63
|
-
Welcome to the pages of J1 Template. If your here first time,
|
64
|
-
hopefully you get on that page first. For sure, there is no better
|
65
|
-
place to step in.
|
66
|
-
|
67
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
68
|
-
support you to explore this site, find what your are looking for. The site
|
69
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
70
|
-
a home. And we have really a bunch of them.
|
71
|
-
|
72
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
73
|
-
use the English language for our international vistors (we are German),
|
74
|
-
*natural reading* means for a western language, reading from the left to the
|
75
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
76
|
-
and pages.
|
77
|
-
|
78
|
-
Welcome to the pages of J1 Template. If your here first time,
|
79
|
-
hopefully you get on that page first. For sure, there is no better
|
80
|
-
place to step in.
|
81
|
-
|
82
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
83
|
-
support you to explore this site, find what your are looking for. The site
|
84
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
85
|
-
a home. And we have really a bunch of them.
|
86
|
-
|
87
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
88
|
-
use the English language for our international vistors (we are German),
|
89
|
-
*natural reading* means for a western language, reading from the left to the
|
90
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
91
|
-
and pages.
|
92
|
-
Welcome to the pages of J1 Template. If your here first time,
|
93
|
-
hopefully you get on that page first. For sure, there is no better
|
94
|
-
place to step in.
|
95
|
-
|
96
|
-
Having a menu system is great. We hope the the navigator module of J1 will
|
97
|
-
support you to explore this site, find what your are looking for. The site
|
98
|
-
of J1 has grown over the last month a lot. Many documents were seeking for
|
99
|
-
a home. And we have really a bunch of them.
|
100
|
-
|
101
|
-
To get better orientated, the site is organized for *natural reading*. As we
|
102
|
-
use the English language for our international vistors (we are German),
|
103
|
-
*natural reading* means for a western language, reading from the left to the
|
104
|
-
right (LTR), and from top to down a page. The same to all menus, sections
|
105
|
-
and pages.
|
106
|
-
|
107
|
-
++++
|
108
|
-
<style>
|
109
|
-
|
110
|
-
.adblock {
|
111
|
-
}
|
112
|
-
|
113
|
-
.adblock-fixed {
|
114
|
-
position: fixed;
|
115
|
-
}
|
116
|
-
|
117
|
-
.sidebar {
|
118
|
-
width:33.33%;
|
119
|
-
float:left;
|
120
|
-
padding: 0 10px;
|
121
|
-
}
|
122
|
-
|
123
|
-
/*
|
124
|
-
.floating-div {
|
125
|
-
background-color: #333;
|
126
|
-
padding: 10px 50px;
|
127
|
-
color:#EEE;
|
128
|
-
font-size: 20px;
|
129
|
-
margin-top:10px;
|
130
|
-
position: absolute;
|
131
|
-
right: -40px;
|
132
|
-
}
|
133
|
-
*/
|
134
|
-
.floating-div {
|
135
|
-
background-color: #333;
|
136
|
-
/* padding: 10px 50px; */
|
137
|
-
color: #EEE;
|
138
|
-
font-size: 20px;
|
139
|
-
/* margin-top: 10px; */
|
140
|
-
/* position: absolute; */
|
141
|
-
/* right: -40px; */
|
142
|
-
}
|
143
|
-
|
144
|
-
.sticky {
|
145
|
-
position: fixed;
|
146
|
-
top: 150px;
|
147
|
-
right:-40px;
|
148
|
-
margin: 0;
|
149
|
-
width:calc(33.33% - 25px);
|
150
|
-
}
|
151
|
-
|
152
|
-
.abs {
|
153
|
-
position: absolute;
|
154
|
-
bottom: 10px;
|
155
|
-
right:10px;
|
156
|
-
width:calc(33.33% - 20px);
|
157
|
-
}
|
158
|
-
</style>
|
159
|
-
|
160
|
-
<script>
|
161
|
-
$(document).ready(function() {
|
162
|
-
var dependencies_met_core = setInterval(function() {
|
163
|
-
if (j1.getState() == 'finished') {
|
164
|
-
// variables
|
165
|
-
var main_content = $('.js-toc-content');
|
166
|
-
var m = $(main_content).offset().top;
|
167
|
-
var topPosition = $('.floating-div').offset().top - 10;
|
168
|
-
var floatingDivHeight = $('.floating-div').outerHeight();
|
169
|
-
var footer = $('#j1_footer');
|
170
|
-
var footerFromTop = $('#j1_footer').offset().top;
|
171
|
-
var absPosition = footerFromTop - floatingDivHeight - 20;
|
172
|
-
var win = $(window);
|
173
|
-
var floatingDiv = $('.floating-div');
|
174
|
-
|
175
|
-
win.scroll(function() {
|
176
|
-
if (window.matchMedia('(min-width: 768px)').matches) {
|
177
|
-
if ((win.scrollTop() > topPosition) && (win.scrollTop() < absPosition)) {
|
178
|
-
floatingDiv.addClass('sticky');
|
179
|
-
floatingDiv.removeClass('abs');
|
180
|
-
|
181
|
-
} else if ((win.scrollTop() > topPosition) && (win.scrollTop() > absPosition)) {
|
182
|
-
floatingDiv.removeClass('sticky');
|
183
|
-
floatingDiv.addClass('abs');
|
184
|
-
|
185
|
-
} else {
|
186
|
-
floatingDiv.removeClass('sticky');
|
187
|
-
floatingDiv.removeClass('abs');
|
188
|
-
}
|
189
|
-
}
|
190
|
-
});
|
191
|
-
clearInterval(dependencies_met_core);
|
192
|
-
}
|
193
|
-
}, 25);
|
194
|
-
});
|
195
|
-
</script>
|
196
|
-
++++
|
@@ -1,89 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: LUNR
|
3
|
-
tagline: search lunr
|
4
|
-
description: search lunr
|
5
|
-
|
6
|
-
tags: [ Page, Roundtrip ]
|
7
|
-
index: [ Template, Roundtrip, Images ]
|
8
|
-
categories: [ pages ]
|
9
|
-
|
10
|
-
toc: true
|
11
|
-
scrollbar: false
|
12
|
-
|
13
|
-
permalink: /pages/public/tester/lunr/
|
14
|
-
regenerate: true
|
15
|
-
|
16
|
-
resources: [ lunr ]
|
17
|
-
resource_options:
|
18
|
-
- attic:
|
19
|
-
padding_top: 400
|
20
|
-
padding_bottom: 50
|
21
|
-
opacity: 0.5
|
22
|
-
slides:
|
23
|
-
- url: /assets/images/images/modules/attics/banner/lunr-banner-1280x800.jpg
|
24
|
-
alt: Lunr
|
25
|
-
# badge:
|
26
|
-
# type: unsplash
|
27
|
-
# author: Ricardo Gomez Angel
|
28
|
-
# href: https://unsplash.com/@ripato/portfolio
|
29
|
-
---
|
30
|
-
|
31
|
-
// Page Initializer
|
32
|
-
// =============================================================================
|
33
|
-
// Enable the Liquid Preprocessor
|
34
|
-
:page-liquid:
|
35
|
-
|
36
|
-
// Set page (local) attributes here
|
37
|
-
// -----------------------------------------------------------------------------
|
38
|
-
// :page--attr: <attr-value>
|
39
|
-
|
40
|
-
// Load Liquid procedures
|
41
|
-
// -----------------------------------------------------------------------------
|
42
|
-
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
43
|
-
|
44
|
-
// Load page attributes
|
45
|
-
// -----------------------------------------------------------------------------
|
46
|
-
{% include {{load_attributes}} scope="all" %}
|
47
|
-
|
48
|
-
|
49
|
-
// Page content
|
50
|
-
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
51
|
-
|
52
|
-
//////
|
53
|
-
== Search
|
54
|
-
|
55
|
-
++++
|
56
|
-
<!-- form action="/search" method="get">
|
57
|
-
<input id="search-query" type="text" name="q" placeholder="Search" autocomplete="off">
|
58
|
-
</form -->
|
59
|
-
|
60
|
-
<div class="input-group">
|
61
|
-
<span class="input-group-addon"><i class="mdi mdi-magnify mdi-2x" style="color:#9E9E9E"></i></span>
|
62
|
-
<input id="search-query" type="text" name="q" placeholder="QuickSearch" autocomplete="off" class="form-control">
|
63
|
-
<span class="form-clear form-clear-searcher d-none"><i class="mdi mdi-format-clear mdi-2x" style="color:#9E9E9E"></i></span>
|
64
|
-
<span class="input-group-addon close-search"><i class="mdi mdi-close mdi-2x" style="color:#9E9E9E"></i></span>
|
65
|
-
</div>
|
66
|
-
|
67
|
-
<section id="search-results" style="display: none"></section>
|
68
|
-
|
69
|
-
<div id="search-results-container">
|
70
|
-
{% raw %}
|
71
|
-
<script id="search-results-template" type="text/mustache">
|
72
|
-
{{#docs}}
|
73
|
-
<article>
|
74
|
-
<h4 class="result-item"> <a href="{{url}}" target="_blank">{{title}} · {{tagline}}</a> </h4>
|
75
|
-
<p class="result-group-item-text small text-muted mt-2 mb-0">
|
76
|
-
<i class="mdi mdi-calendar-blank mdi-18px mr-1"></i>{{displaydate}}
|
77
|
-
</p>
|
78
|
-
<p class="result-group-item-text">{{description}}</p>
|
79
|
-
<p class="result-group-item-text small text-muted mb-3">
|
80
|
-
<i class="mdi mdi-tag mdi-18px mr-1"></i>{{#tags}} {{.}} {{/tags}}
|
81
|
-
<i class="mdi mdi-tag-text-outline mdi-18px mr-1 ml-2"></i>{{#categories}} {{.}} {{/categories}}
|
82
|
-
</p>
|
83
|
-
</article>
|
84
|
-
{{/docs}}
|
85
|
-
</script>
|
86
|
-
{% endraw %}
|
87
|
-
</div>
|
88
|
-
++++
|
89
|
-
//////
|