Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Aksel Saugestad
course-material
Commits
5bfc82b0
Commit
5bfc82b0
authored
5 years ago
by
George Adrian Stoica
Browse files
Options
Downloads
Patches
Plain Diff
updated template to include logo on first page and the vertical text
with the university name on the right
parent
62438f2f
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
lectures/revealjs/course-intro.adoc
+14
-2
14 additions, 2 deletions
lectures/revealjs/course-intro.adoc
lectures/revealjs/slides.css
+46
-19
46 additions, 19 deletions
lectures/revealjs/slides.css
with
60 additions
and
21 deletions
lectures/revealjs/course-intro.adoc
+
14
−
2
View file @
5bfc82b0
...
...
@@ -3,7 +3,7 @@
:icons: font
++++
<
!--
img id="main-logo" class="main-logo" src="images/main_logo_eng
.png
" alt="ntnu logo"/
--
>
<img id="main-logo" class="main-logo" src="images/main_logo_eng
_no_text.png" width="300
" alt="ntnu logo"/>
++++
[.smaller-80]
...
...
@@ -136,17 +136,29 @@ image::../images/teamwork.png[canvas, size=contain]
++++
<div id="footer" class="footer">
<span class="element"><a href="www.ntnu.no"><img id="footer-logo" class="footer-logo" src="images/logo_ntnu.png" alt="ntnu logo"/></a></span>
<span class="element"><a href="www.ntnu.no"><img id="footer-logo" class="footer-logo" src="images/logo_ntnu.png" alt="ntnu logo"
height="28"
/></a></span>
<span class="element">| IT1901 </span>
<span class="element">| Course Introduction </span>
<span class="element"> </span>
</div>
<div id="vertical-ntnu-name" class="vertical-ntnu-name">
<span class="helper"></span>
<img src="images/vertical-ntnu-name.jpg" alt="Norwegian University of Science and Technology" />
</div>
<script type="text/javascript">
window.addEventListener("load", function() {
revealDiv = document.querySelector("body div.reveal")
footer = document.getElementById("footer");
revealDiv.appendChild(footer);
titleSlideDiv = document.querySelector("div.slides section.title")
mainLogo = document.getElementById("main-logo");
titleSlideDiv.prepend(mainLogo);
vertName = document.getElementById("vertical-ntnu-name");
revealDiv.appendChild(vertName);
} );
</script>
++++
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lectures/revealjs/slides.css
+
46
−
19
View file @
5bfc82b0
...
...
@@ -180,40 +180,67 @@ section h2 {
/* solution for footer based on http://blog.schauderhaft.de/2018/07/23/footer-in-revealjs-from-asciidoc/ */
.footer
{
position
:
absolute
;
display
:
table
;
width
:
100%
;
bottom
:
0
;
background-color
:
#0000AA
;
position
:
absolute
;
display
:
table
;
width
:
100%
;
bottom
:
0
;
height
:
40px
;
background-color
:
#0000AA
;
}
.footer
span
{
display
:
table-cell
;
color
:
#FFFFFF
;
padding
:
0px
15px
5px
;
text-align
:
center
;
font-family
:
"Verdana"
,
sans-serif
;
font-size
:
70%
;
display
:
table-cell
;
color
:
#FFFFFF
;
padding
:
0px
15px
5px
;
text-align
:
center
;
font-family
:
"Verdana"
,
sans-serif
;
font-size
:
55%
;
vertical-align
:
middle
;
}
.footer
span
:nth-of-type
(
1
)
{
text-align
:
left
;
text-align
:
left
;
}
.footer
span
:nth-last-child
(
1
)
{
text-align
:
right
;
text-align
:
right
;
}
.footer-logo
{
vertical-align
:
middle
;
margin-top
:
5px
;
}
.main-logo
{
position
:
absolut
e
;
position
:
relativ
e
;
display
:
block
;
width
:
300
;
top
:
10
;
left
:
10
;
}
\ No newline at end of file
border
:
none
!important
;
box-shadow
:
none
!important
;
}
.vertical-ntnu-name
{
position
:
absolute
;
height
:
100%
;
right
:
5px
;
vertical-align
:
middle
;
}
.vertical-ntnu-name
img
{
display
:
inline
;
vertical-align
:
middle
;
border
:
none
!important
;
box-shadow
:
none
!important
;
}
.helper
{
display
:
inline-block
;
height
:
100%
;
vertical-align
:
middle
;
}
/* body div.reveal {
margin-bottom: 40px !important;
} */
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