Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
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
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
prace-lessons
Lesson Template
Commits
8e318a1a
Commit
8e318a1a
authored
10 years ago
by
Rémi Emonet
Browse files
Options
Downloads
Patches
Plain Diff
updating slides template to use deck.js
parent
bc5aec31
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_layouts/slides.html
+35
-56
35 additions, 56 deletions
_layouts/slides.html
with
35 additions
and
56 deletions
_layouts/slides.html
+
35
−
56
View file @
8e318a1a
...
...
@@ -3,35 +3,41 @@
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=1024, user-scalable=no"
>
<title>
Software Carpentry
</title>
<!-- Required stylesheet -->
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/core/deck.core.css"
>
<!-- Extension CSS files go here. Remove or add as needed. -->
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/extensions/goto/deck.goto.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/extensions/menu/deck.menu.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/extensions/navigation/deck.navigation.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/extensions/status/deck.status.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/extensions/scale/deck.scale.css"
>
<!-- Style theme. More available in /themes/style/ or create your own. -->
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/themes/style/web-2.0.css"
>
<!-- Transition theme. More available in /themes/transition/ or create your own. -->
<link
rel=
"stylesheet"
media=
"screen"
href=
"deck.js/themes/transition/horizontal-slide.css"
>
<!-- Basic black and white print styles -->
<link
rel=
"stylesheet"
media=
"print"
href=
"deck.js/core/print.css"
>
<!-- Required Modernizr file -->
<script
src=
"js/modernizr.custom.js"
></script>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"
>
$for(author-meta)$
<meta
name=
"author"
content=
"$author-meta$"
>
$endfor$
$if(date-meta)$
<meta
name=
"date"
content=
"$date-meta$"
>
$endif$
<title>
$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$
</title>
$for(css)$
<link
rel=
"stylesheet"
href=
"$css$"
$
if
(
html5
)$$
else
$
type=
"text/css"
$
endif
$
/>
$endfor$
<script
src=
"js/deckjs-custom.js"
></script>
<script>
// TODO: finer filter on what is needed (vs profile-5)
includedeck
(
"
css/swc-slides.css
"
,
{
BEFOREINIT
:
function
()
{
$
$
(
"
.slide.auto li:not(li li):not(.notslide)
"
).
addClass
(
"
slide
"
);
}
});
</script>
</head>
<body>
<div
class=
"deck-container"
>
$if(omit-title)$
$else$
<div
class=
"slide title-slide"
data-container-class=
"no-status"
>
<h1
class=
"var-title"
></h1>
<img
class=
"logo"
src=
"img/software-carpentry-banner.png"
alt=
"Software Carpentry"
/>
</div>
$endif$
<!-- Begin slides. Just make elements with a class of slide. -->
$body$
<!-- End slides. -->
...
...
@@ -44,40 +50,13 @@ $body$
<a
href=
"#"
class=
"deck-next-link"
title=
"Next"
>
→
</a>
</div>
<!-- deck.status snippet -->
<p
class=
"deck-status"
aria-role=
"status"
>
<span
class=
"deck-status-current"
></span>
/
<span
class=
"deck-status-total"
></span>
</p>
<!-- deck.goto snippet -->
<form
action=
"."
method=
"get"
class=
"goto-form"
>
<label
for=
"goto-slide"
>
Go to slide:
</label>
<input
type=
"text"
name=
"slidenum"
id=
"goto-slide"
list=
"goto-datalist"
>
<datalist
id=
"goto-datalist"
></datalist>
<input
type=
"submit"
value=
"Go"
>
</form>
<!-- footer -->
<p
class=
"deck-status deck-progress-10"
>
<span
class=
"deck-status-current"
></span>
/
<span
class=
"deck-status-total"
></span>
−
<span
class=
"var-title"
>
will be replaced by the title
</span></p>
<!-- progress bar -->
<div
class=
"progress-bar"
data-progress-size=
":spe.bottom(0, 1) ; left: slide.left+'px' ; height: designRatio+'px'"
data-progress=
"width: detail.p * slide.width"
style=
"position: absolute;"
>
</div>
<!-- End extension snippets. -->
</div>
<!-- Required JS files. -->
<script
src=
"js/jquery.min.js"
></script>
<script
src=
"deck.js/core/deck.core.js"
></script>
<!-- Extension JS files. Add or remove as needed. -->
<script
src=
"deck.js/extensions/menu/deck.menu.js"
></script>
<script
src=
"deck.js/extensions/goto/deck.goto.js"
></script>
<script
src=
"deck.js/extensions/status/deck.status.js"
></script>
<script
src=
"deck.js/extensions/navigation/deck.navigation.js"
></script>
<script
src=
"deck.js/extensions/scale/deck.scale.js"
></script>
<!-- Initialize the deck. Note that we have to use double dollar signs to escape for Pandoc. -->
<script>
$
$
(
function
()
{
$$
.
deck
(
'
.slide
'
);
});
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
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