Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
Quarto Presentation Template
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RC Data Science
Researcher Training
Quarto Presentation Template
Commits
62f7e6ce
Commit
62f7e6ce
authored
7 months ago
by
William Warriner
Browse files
Options
Downloads
Patches
Plain Diff
add rstackfix plugin
parent
42cf0918
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rStackFix/plugin.js
+34
-0
34 additions, 0 deletions
rStackFix/plugin.js
rStackFix/plugin.yml
+2
-0
2 additions, 0 deletions
rStackFix/plugin.yml
with
36 additions
and
0 deletions
rStackFix/plugin.js
0 → 100644
+
34
−
0
View file @
62f7e6ce
window
.
rStackFix
=
function
()
{
return
{
id
:
"
rStackFix
"
,
init
:
function
(
deck
)
{
console
.
log
(
"
Custom plugin initialized!
"
);
// Automatically load the initial fragment on a slide if the fragment
// has been defined with the 'preload' class
deck
.
on
(
"
slidechanged
"
,
function
(
event
)
{
console
.
log
(
"
slidechanged
"
);
if
(
event
.
currentSlide
.
querySelectorAll
(
'
.preload[data-fragment-index="0"]
'
).
length
>
0
)
{
deck
.
nextFragment
();
}
});
// If the initial fragment on a slide has been defined with a 'preload' class
// then transition to the previous slide if the fragment is hidden
deck
.
on
(
"
fragmenthidden
"
,
function
(
event
)
{
console
.
log
(
"
fragmenthidden
"
);
if
(
event
.
fragment
.
hasAttribute
(
"
data-fragment-index
"
)
&&
event
.
fragment
.
classList
.
contains
(
"
preload
"
)
)
{
if
(
event
.
fragment
.
attributes
[
"
data-fragment-index
"
].
value
==
"
0
"
)
{
deck
.
prev
();
}
}
});
},
};
};
This diff is collapsed.
Click to expand it.
rStackFix/plugin.yml
0 → 100644
+
2
−
0
View file @
62f7e6ce
name
:
rStackFix
script
:
[
plugin.js
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment