Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
migale
Metabarfood
Commits
46666453
Commit
46666453
authored
Jan 18, 2022
by
Olivier Rue
Browse files
real samples
parent
00af4935
Pipeline
#48275
passed with stage
in 16 seconds
Changes
86
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
real_samples_files/figure-html/unnamed-chunk-8-3.png
0 → 100644
View file @
46666453
62.7 KB
real_samples_files/figure-html/unnamed-chunk-9-1.png
View replaced file @
00af4935
View file @
46666453
105 KB
|
W:
|
H:
23.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
real_samples_files/figure-html/unnamed-chunk-9-2.png
0 → 100644
View file @
46666453
64.4 KB
real_samples_files/figure-html/unnamed-chunk-9-3.png
0 → 100644
View file @
46666453
56.8 KB
real_samples_files/navigation-1.1/codefolding.js
View file @
46666453
...
...
@@ -23,6 +23,7 @@ window.initializeCodeFolding = function(show) {
// create a collapsable div to wrap the code in
var
div
=
$
(
'
<div class="collapse r-code-collapse"></div>
'
);
var
showThis
=
(
show
||
$
(
this
).
hasClass
(
'
fold-show
'
))
&&
!
$
(
this
).
hasClass
(
'
fold-hide
'
);
if
(
showThis
)
div
.
addClass
(
'
in
'
);
var
id
=
'
rcode-643E0F36
'
+
currentIndex
++
;
div
.
attr
(
'
id
'
,
id
);
$
(
this
).
before
(
div
);
...
...
@@ -30,7 +31,7 @@ window.initializeCodeFolding = function(show) {
// add a show code button right above
var
showCodeText
=
$
(
'
<span>
'
+
(
showThis
?
'
Hide
'
:
'
Code
'
)
+
'
</span>
'
);
var
showCodeButton
=
$
(
'
<button type="button" class="btn btn-default btn-xs
btn-secondary btn-sm
code-folding-btn pull-right
float-right
"></button>
'
);
var
showCodeButton
=
$
(
'
<button type="button" class="btn btn-default btn-xs code-folding-btn pull-right"></button>
'
);
showCodeButton
.
append
(
showCodeText
);
showCodeButton
.
attr
(
'
data-toggle
'
,
'
collapse
'
)
...
...
@@ -46,27 +47,13 @@ window.initializeCodeFolding = function(show) {
div
.
before
(
buttonRow
);
// show the div if necessary
if
(
showThis
)
div
.
collapse
(
'
show
'
);
// update state of button on show/hide
// * Change text
// * add a class for intermediate states styling
div
.
on
(
'
hide.bs.collapse
'
,
function
()
{
showCodeText
.
text
(
'
Code
'
);
showCodeButton
.
addClass
(
'
btn-collapsing
'
);
});
div
.
on
(
'
hidden.bs.collapse
'
,
function
()
{
showCode
Button
.
removeClass
(
'
btn-collapsing
'
);
showCode
Text
.
text
(
'
Code
'
);
});
div
.
on
(
'
show.bs.collapse
'
,
function
()
{
showCodeText
.
text
(
'
Hide
'
);
showCodeButton
.
addClass
(
'
btn-expanding
'
);
});
div
.
on
(
'
shown.bs.collapse
'
,
function
()
{
showCodeButton
.
removeClass
(
'
btn-expanding
'
);
});
});
}
real_samples_files/tocify-1.9.1/jquery.tocify.js
View file @
46666453
...
...
@@ -176,7 +176,7 @@
self
.
_setEventHandlers
();
// Binding to the Window load event to make sure the correct scrollTop is calculated
$
(
window
).
on
(
"
load
"
,
function
()
{
$
(
window
).
load
(
function
()
{
// Sets the active TOC item
self
.
_setActiveElement
(
true
);
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment