├── static ├── none.html ├── icons │ ├── icons.otf │ ├── icons.ttf │ ├── icons.woff │ ├── icons.woff2 │ └── icons-reg.eot ├── images │ ├── favicon.png │ ├── clippy.svg │ ├── arrowrightup.svg │ ├── adocs-logo-white.svg │ └── a-logo-white.svg ├── fonts │ ├── FontAwesome.otf │ ├── Inconsolata.eot │ ├── Inconsolata.ttf │ ├── Lato-Bold.ttf │ ├── Inconsolata.woff │ ├── Lato-Regular.ttf │ ├── Work_Sans_200.eot │ ├── Work_Sans_200.ttf │ ├── Work_Sans_300.eot │ ├── Work_Sans_300.ttf │ ├── Work_Sans_500.eot │ ├── Work_Sans_500.ttf │ ├── Work_Sans_200.woff │ ├── Work_Sans_200.woff2 │ ├── Work_Sans_300.woff │ ├── Work_Sans_300.woff2 │ ├── Work_Sans_500.woff │ ├── Work_Sans_500.woff2 │ ├── d-din-webfont.woff │ ├── d-din-webfont.woff2 │ ├── d-din-bold-webfont.woff │ ├── d-din-bold-webfont.woff2 │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ ├── glyphicons-halflings-regular.woff2 │ ├── Novecentosanswide-Normal-webfont.eot │ ├── Novecentosanswide-Normal-webfont.ttf │ ├── Novecentosanswide-Normal-webfont.woff │ ├── Novecentosanswide-Normal-webfont.woff2 │ ├── Novecentosanswide-UltraLight-webfont.eot │ ├── Novecentosanswide-UltraLight-webfont.ttf │ ├── Novecentosanswide-UltraLight-webfont.woff │ └── Novecentosanswide-UltraLight-webfont.woff2 ├── js │ ├── altinndocs.js │ ├── stickysidebar │ │ └── rAF.js │ ├── search.js │ ├── hugo-learn.js │ ├── jquery.sticky-kit.min.js │ └── html5shiv-printshiv.min.js ├── revealjs │ ├── .travis.yml │ ├── lib │ │ ├── font │ │ │ ├── league-gothic │ │ │ │ ├── LICENSE │ │ │ │ ├── league-gothic.eot │ │ │ │ ├── league-gothic.ttf │ │ │ │ ├── league-gothic.woff │ │ │ │ └── league-gothic.css │ │ │ └── source-sans-pro │ │ │ │ ├── source-sans-pro-italic.eot │ │ │ │ ├── source-sans-pro-italic.ttf │ │ │ │ ├── source-sans-pro-italic.woff │ │ │ │ ├── source-sans-pro-regular.eot │ │ │ │ ├── source-sans-pro-regular.ttf │ │ │ │ ├── source-sans-pro-regular.woff │ │ │ │ ├── source-sans-pro-semibold.eot │ │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ │ ├── source-sans-pro-semibold.woff │ │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ │ ├── source-sans-pro.css │ │ │ │ └── LICENSE │ │ ├── js │ │ │ ├── html5shiv.js │ │ │ └── classList.js │ │ └── css │ │ │ └── zenburn.css │ ├── test │ │ ├── examples │ │ │ ├── assets │ │ │ │ ├── image1.png │ │ │ │ └── image2.png │ │ │ ├── barebones.html │ │ │ ├── embedded-media.html │ │ │ ├── slide-transitions.html │ │ │ └── slide-backgrounds.html │ │ ├── simple.md │ │ ├── test-markdown.js │ │ ├── test-pdf.js │ │ ├── test-markdown-options.js │ │ ├── test-markdown-external.js │ │ ├── test-markdown-options.html │ │ ├── test-markdown-external.html │ │ ├── test-markdown.html │ │ ├── test-pdf.html │ │ ├── test.html │ │ ├── test-markdown-element-attributes.js │ │ ├── test-markdown-slide-attributes.js │ │ ├── test-markdown-slide-attributes.html │ │ └── test-markdown-element-attributes.html │ ├── .gitignore │ ├── plugin │ │ ├── markdown │ │ │ ├── example.md │ │ │ └── example.html │ │ ├── multiplex │ │ │ ├── client.js │ │ │ ├── package.json │ │ │ ├── master.js │ │ │ └── index.js │ │ ├── print-pdf │ │ │ └── print-pdf.js │ │ ├── math │ │ │ └── math.js │ │ ├── notes-server │ │ │ ├── index.js │ │ │ └── client.js │ │ └── notes │ │ │ └── notes.js │ ├── css │ │ ├── theme │ │ │ ├── source │ │ │ │ ├── night.scss │ │ │ │ ├── serif.scss │ │ │ │ ├── league.scss │ │ │ │ ├── sky.scss │ │ │ │ ├── white.scss │ │ │ │ ├── beige.scss │ │ │ │ ├── black.scss │ │ │ │ ├── simple.scss │ │ │ │ ├── moon.scss │ │ │ │ ├── solarized.scss │ │ │ │ └── blood.scss │ │ │ ├── template │ │ │ │ ├── settings.scss │ │ │ │ └── mixins.scss │ │ │ └── README.md │ │ └── print │ │ │ └── pdf.css │ ├── CONTRIBUTING.md │ ├── LICENSE │ └── index.html ├── css │ ├── theme-gray.css │ ├── horsey.css │ ├── featherlight.min.css │ └── hybrid.css └── mermaid │ └── mermaid.css ├── layouts ├── shortcodes │ ├── section.html │ ├── pagetreesearch.html │ ├── code.html │ ├── toc.html │ ├── well.html │ ├── unknow.html │ ├── anchor.html │ ├── anchorlink.html │ ├── label.html │ ├── note.html │ ├── notice.html │ ├── userlink.html │ ├── excerpt.html │ ├── mermaid.html │ ├── tasklist.html │ ├── recently-updated.html │ ├── viewppt.html │ ├── viewxls.html │ ├── alert.html │ ├── button.html │ ├── attachmentlink.html │ ├── task.html │ ├── tip.html │ ├── info.html │ ├── relref.html │ ├── warning.html │ ├── panel.html │ ├── header.html │ ├── pagelink.html │ ├── icon.html │ ├── expand.html │ ├── expandlarge.html │ ├── excerpt-include.html │ ├── emoticon.html │ ├── attachments.html │ ├── revealjs.html │ └── children.html ├── partials │ ├── custom-footer.html │ ├── favicon.html │ ├── toc.html │ ├── custom-head.html │ ├── meta.html │ ├── logo.html │ ├── pagination.html │ ├── jumbotron.html │ ├── search.html │ ├── topbar.html │ ├── footer-content.html │ ├── header.html │ ├── menu.html │ └── footer.html ├── index.json ├── _default │ ├── single.html │ ├── li.html │ └── list.html ├── index.html ├── 404.html └── slide │ └── single.html ├── .gitignore ├── example.png ├── images ├── screenshot.png └── screenshot2.png ├── exampleSite ├── layouts │ ├── partials │ │ ├── custom-footer.html │ │ ├── custom-head.html │ │ ├── jumbotron.html │ │ └── topbar.html │ └── shortcodes │ │ └── docs-logo.html ├── content │ ├── eksempel │ │ ├── _index.files │ │ │ └── Implementasjonsguide.pdf │ │ └── _index.md │ └── _index.md └── config.toml ├── renovate.json ├── archetypes ├── default.md └── slide.md ├── i18n ├── en.toml ├── nb.toml └── fr.toml ├── theme.toml ├── LICENSE.md └── README.md /static/none.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /layouts/shortcodes/section.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/pagetreesearch.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/code.html: -------------------------------------------------------------------------------- 1 |
{{.Inner}}
-------------------------------------------------------------------------------- /layouts/shortcodes/toc.html: -------------------------------------------------------------------------------- 1 | {{.TableOfContents}} 2 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/well.html: -------------------------------------------------------------------------------- 1 |
{{.Inner}}
2 | -------------------------------------------------------------------------------- /layouts/shortcodes/unknow.html: -------------------------------------------------------------------------------- 1 |
{{.Inner}}
-------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | public 2 | *.exe 3 | *.doc 4 | *.docx 5 | *.db 6 | .DS_Store 7 | -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/example.png -------------------------------------------------------------------------------- /layouts/shortcodes/anchor.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/shortcodes/anchorlink.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /layouts/partials/custom-footer.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /layouts/shortcodes/label.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/images/screenshot.png -------------------------------------------------------------------------------- /images/screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/images/screenshot2.png -------------------------------------------------------------------------------- /static/icons/icons.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/icons/icons.otf -------------------------------------------------------------------------------- /static/icons/icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/icons/icons.ttf -------------------------------------------------------------------------------- /static/icons/icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/icons/icons.woff -------------------------------------------------------------------------------- /static/icons/icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/icons/icons.woff2 -------------------------------------------------------------------------------- /static/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/images/favicon.png -------------------------------------------------------------------------------- /layouts/partials/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /static/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /static/fonts/Inconsolata.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Inconsolata.eot -------------------------------------------------------------------------------- /static/fonts/Inconsolata.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Inconsolata.ttf -------------------------------------------------------------------------------- /static/fonts/Lato-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Lato-Bold.ttf -------------------------------------------------------------------------------- /static/icons/icons-reg.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/icons/icons-reg.eot -------------------------------------------------------------------------------- /static/fonts/Inconsolata.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Inconsolata.woff -------------------------------------------------------------------------------- /static/fonts/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Lato-Regular.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_200.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_200.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_300.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_300.ttf -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_500.eot -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_500.ttf -------------------------------------------------------------------------------- /static/js/altinndocs.js: -------------------------------------------------------------------------------- 1 | // Move children to bottom of page 2 | $('.js-moveChildrenFrom').insertAfter('.js-moveChildrenTo'); -------------------------------------------------------------------------------- /static/revealjs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 4.1.1 4 | before_script: 5 | - npm install -g grunt-cli -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_200.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_200.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_200.woff2 -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_300.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_300.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_300.woff2 -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_500.woff -------------------------------------------------------------------------------- /static/fonts/Work_Sans_500.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Work_Sans_500.woff2 -------------------------------------------------------------------------------- /static/fonts/d-din-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/d-din-webfont.woff -------------------------------------------------------------------------------- /static/fonts/d-din-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/d-din-webfont.woff2 -------------------------------------------------------------------------------- /layouts/partials/toc.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | {{ .TableOfContents }} 4 |
5 |
6 | -------------------------------------------------------------------------------- /layouts/shortcodes/note.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /static/fonts/d-din-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/d-din-bold-webfont.woff -------------------------------------------------------------------------------- /static/fonts/d-din-bold-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/d-din-bold-webfont.woff2 -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /layouts/shortcodes/notice.html: -------------------------------------------------------------------------------- 1 |
{{ .Inner }}
2 | -------------------------------------------------------------------------------- /layouts/shortcodes/userlink.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /layouts/shortcodes/excerpt.html: -------------------------------------------------------------------------------- 1 | {{with .Get "hidden"}} 2 | {{if eq . "false"}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{else}} 6 | {{.Inner}} 7 | {{end}} -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /exampleSite/layouts/partials/custom-footer.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /layouts/shortcodes/mermaid.html: -------------------------------------------------------------------------------- 1 |
{{ safeHTML .Inner }}
-------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /static/revealjs/test/examples/assets/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/test/examples/assets/image1.png -------------------------------------------------------------------------------- /static/revealjs/test/examples/assets/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/test/examples/assets/image2.png -------------------------------------------------------------------------------- /static/revealjs/test/simple.md: -------------------------------------------------------------------------------- 1 | ## Slide 1.1 2 | 3 | ```js 4 | var a = 1; 5 | ``` 6 | 7 | 8 | ## Slide 1.2 9 | 10 | 11 | 12 | ## Slide 2 13 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "local>Altinn/renovate-config" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-Normal-webfont.eot -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-Normal-webfont.ttf -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-Normal-webfont.woff -------------------------------------------------------------------------------- /exampleSite/layouts/partials/custom-head.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-Normal-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-Normal-webfont.woff2 -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-UltraLight-webfont.eot -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-UltraLight-webfont.ttf -------------------------------------------------------------------------------- /layouts/shortcodes/tasklist.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | {{.Inner}} 4 |
-------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-UltraLight-webfont.woff -------------------------------------------------------------------------------- /static/fonts/Novecentosanswide-UltraLight-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/fonts/Novecentosanswide-UltraLight-webfont.woff2 -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /exampleSite/content/eksempel/_index.files/Implementasjonsguide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/exampleSite/content/eksempel/_index.files/Implementasjonsguide.pdf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /layouts/shortcodes/recently-updated.html: -------------------------------------------------------------------------------- 1 | {{.Inner}} 2 | 3 | {{- range first 10 .Site.Pages }} 4 |
  • 5 | {{ .Date.Format "02/01/2006" }} - {{ .Title }} 6 |
  • 7 | {{ end }} 8 | -------------------------------------------------------------------------------- /static/revealjs/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.iws 4 | *.eml 5 | out/ 6 | .DS_Store 7 | .svn 8 | log/*.log 9 | tmp/** 10 | node_modules/ 11 | .sass-cache 12 | css/reveal.min.css 13 | js/reveal.min.js -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altinn/hugo-theme-altinn/master/static/revealjs/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title= "{{ replace .TranslationBaseName "-" " " | title }}" 3 | date= {{ .Date }} 4 | description = "" 5 | draft= true 6 | +++ 7 | 8 | Lorem Ipsum. 9 | Notice `draft` is set to true. 10 | -------------------------------------------------------------------------------- /layouts/partials/custom-head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /layouts/shortcodes/viewppt.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "name")}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/viewxls.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "name")}} 3 | {{$.Inner}} 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/partials/meta.html: -------------------------------------------------------------------------------- 1 | 2 | {{ with .Site.Params.author }}{{ end }} 3 | -------------------------------------------------------------------------------- /layouts/shortcodes/alert.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /static/revealjs/lib/js/html5shiv.js: -------------------------------------------------------------------------------- 1 | document.createElement('header'); 2 | document.createElement('nav'); 3 | document.createElement('section'); 4 | document.createElement('article'); 5 | document.createElement('aside'); 6 | document.createElement('footer'); 7 | document.createElement('hgroup'); -------------------------------------------------------------------------------- /exampleSite/layouts/shortcodes/docs-logo.html: -------------------------------------------------------------------------------- 1 |
    2 | Altinn docs 3 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/button.html: -------------------------------------------------------------------------------- 1 | 2 | {{ with .Get "align" }}
    {{end}} 3 | 4 | {{ with .Get "align" }}
    {{end}} 5 | 6 | -------------------------------------------------------------------------------- /layouts/partials/logo.html: -------------------------------------------------------------------------------- 1 | {{ range where .Site.Pages ".File.BaseFileName" "_header" }} 2 | {{ .Content }} 3 | {{else}} 4 | 5 | 8 | {{ T "create-header-md" }} 9 | 10 | {{end}} 11 | -------------------------------------------------------------------------------- /layouts/shortcodes/attachmentlink.html: -------------------------------------------------------------------------------- 1 | {{range $i, $att := .Page.Params.attachments }} 2 | {{if eq $att.filename ($.Get "filename")}} 3 | {{$.Inner}} ({{$att.nicefilesize}}) 4 | {{end}} 5 | {{end}} -------------------------------------------------------------------------------- /layouts/shortcodes/task.html: -------------------------------------------------------------------------------- 1 |
    2 | 9 | 10 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/tip.html: -------------------------------------------------------------------------------- 1 | 2 | {{if .Get "title" }} 3 |
    4 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 5 |
    {{.Inner}}
    6 |
    7 | {{else}} 8 | 9 | {{end}} 10 | 11 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize(); 15 | 16 | -------------------------------------------------------------------------------- /layouts/shortcodes/info.html: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Get "title" -}} 3 |
    4 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 5 |
    {{.Inner}}
    6 |
    7 | {{- else -}} 8 | 9 | {{- end -}} 10 | 11 | -------------------------------------------------------------------------------- /layouts/shortcodes/relref.html: -------------------------------------------------------------------------------- 1 | {{- if in (.Get 0) "/_index.md" -}} 2 | {{- $path := (trim (.Get 0) "_index.md") -}} 3 | {{- with .Site.GetPage "section" (trim $path "/") -}} 4 | {{- .URL -}} 5 | {{- end -}} 6 | {{- else -}} 7 | {{- with .Site.GetPage "section" (.Get 0) }} 8 | {{- .URL -}} 9 | {{- else -}} 10 | {{- .Get 0 | relref .Page -}} 11 | {{- end -}} 12 | {{- end -}} -------------------------------------------------------------------------------- /layouts/shortcodes/warning.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{if .Get "title" }} 5 |
    6 | {{ with .Get "title" }}
    {{htmlUnescape .}}
    {{end}} 7 |
    {{.Inner}}
    8 |
    9 | {{else}} 10 | 11 | {{end}} 12 | 13 | -------------------------------------------------------------------------------- /static/revealjs/lib/font/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('league-gothic.eot'); 4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('league-gothic.woff') format('woff'), 6 | url('league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } -------------------------------------------------------------------------------- /static/revealjs/test/test-pdf.js: -------------------------------------------------------------------------------- 1 | 2 | Reveal.addEventListener( 'ready', function() { 3 | 4 | // Only one test for now, we're mainly ensuring that there 5 | // are no execution errors when running PDF mode 6 | 7 | test( 'Reveal.isReady', function() { 8 | strictEqual( Reveal.isReady(), true, 'returns true' ); 9 | }); 10 | 11 | 12 | } ); 13 | 14 | Reveal.initialize({ pdf: true }); 15 | 16 | -------------------------------------------------------------------------------- /layouts/shortcodes/panel.html: -------------------------------------------------------------------------------- 1 | {{ $_hugo_config := `{ "version": 1 }` }} 2 | 3 |
    4 | {{ with .Get "header" }}
    {{ htmlUnescape . | markdownify}}
    {{end}} 5 |
    {{.Inner}}
    6 | {{ with .Get "footer" }}{{end}} 7 |
    8 | -------------------------------------------------------------------------------- /static/css/theme-gray.css: -------------------------------------------------------------------------------- 1 | :root{ 2 | --MAIN-color:#6a6a6a; 3 | } 4 | .a-header { 5 | background: var(--MAIN-color); 6 | } 7 | 8 | .a-footer { 9 | background-color: var(--MAIN-color); 10 | } 11 | 12 | .adocs-sidebarToggle a { 13 | background: var(--MAIN-color); 14 | } 15 | 16 | .searchbox { 17 | border: 2px solid var(--MAIN-color); 18 | } 19 | 20 | .a-linkFeatured { 21 | color: #000; 22 | } -------------------------------------------------------------------------------- /static/revealjs/plugin/markdown/example.md: -------------------------------------------------------------------------------- 1 | # Markdown Demo 2 | 3 | 4 | 5 | ## External 1.1 6 | 7 | Content 1.1 8 | 9 | Note: This will only appear in the speaker notes window. 10 | 11 | 12 | ## External 1.2 13 | 14 | Content 1.2 15 | 16 | 17 | 18 | ## External 2 19 | 20 | Content 2.1 21 | 22 | 23 | 24 | ## External 3.1 25 | 26 | Content 3.1 27 | 28 | 29 | ## External 3.2 30 | 31 | Content 3.2 32 | -------------------------------------------------------------------------------- /layouts/partials/pagination.html: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /static/revealjs/plugin/multiplex/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var multiplex = Reveal.getConfig().multiplex; 3 | var socketId = multiplex.id; 4 | var socket = io.connect(multiplex.url); 5 | 6 | socket.on(multiplex.id, function(data) { 7 | // ignore data from sockets that aren't ours 8 | if (data.socketId !== socketId) { return; } 9 | if( window.location.host === 'localhost:1947' ) return; 10 | 11 | Reveal.setState(data.state); 12 | }); 13 | }()); 14 | -------------------------------------------------------------------------------- /layouts/shortcodes/header.html: -------------------------------------------------------------------------------- 1 |
    2 | Résumé
    3 | {{.Inner}} 4 | 5 |
    Sur cette page
    6 | {{.Page.TableOfContents}} 7 |
    Pages liées
    8 | 16 |
    17 | -------------------------------------------------------------------------------- /layouts/index.json: -------------------------------------------------------------------------------- 1 | [{{ range $index, $page := .Site.Pages }} 2 | {{- if ne $page.Type "json" -}} 3 | {{- if and $index (gt $index 0) -}},{{- end }} 4 | { 5 | "uri": "{{ $page.Permalink }}", 6 | "title": "{{ htmlEscape $page.Title}}", 7 | "tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}], 8 | "description": "{{ htmlEscape .Description}}", 9 | "content": {{$page.Plain | jsonify}} 10 | } 11 | {{- end -}} 12 | {{- end -}}] -------------------------------------------------------------------------------- /layouts/partials/jumbotron.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 |
    5 |
    6 | 7 | Skriv en introtekst her. 8 | 9 |
    10 |
    11 |
    12 |
    -------------------------------------------------------------------------------- /static/revealjs/plugin/multiplex/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal-js-multiplex", 3 | "version": "1.0.0", 4 | "description": "reveal.js multiplex server", 5 | "homepage": "http://lab.hakim.se/reveal-js", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "engines": { 10 | "node": "~4.1.1" 11 | }, 12 | "dependencies": { 13 | "express": "~4.21.0", 14 | "grunt-cli": "~0.1.13", 15 | "mustache": "~2.2.1", 16 | "socket.io": "~2.5.1" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /exampleSite/layouts/partials/jumbotron.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 |
    5 |
    6 | 7 | Eksempel på jumbotron 8 | 9 |
    10 |
    11 |
    12 |
    -------------------------------------------------------------------------------- /layouts/partials/search.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /layouts/shortcodes/pagelink.html: -------------------------------------------------------------------------------- 1 | {{ if ne (.Get "spacekey") "" }} 2 | 3 | {{else}} 4 | {{$pages := where .Site.AllPages "Title" (( $.Get "pagename") | htmlUnescape ) }} 5 | {{ if eq 0 (len $pages) }} 6 | 7 | {{else}} 8 | {{ range $pages }} 9 | {{$.Inner}} 10 | {{end}} 11 | {{ end }} 12 | {{end}} -------------------------------------------------------------------------------- /static/images/clippy.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /layouts/shortcodes/icon.html: -------------------------------------------------------------------------------- 1 | {{ if .IsNamedParams }} 2 | {{if not (hasPrefix (.Get "name") "fa-") }} 3 | 4 | {{else}} 5 | 6 | {{end}} 7 | {{else}} 8 | {{if not (hasPrefix (.Get 0) "fa-") }} 9 | 10 | {{else}} 11 | 12 | {{end}} 13 | {{end}} -------------------------------------------------------------------------------- /archetypes/slide.md: -------------------------------------------------------------------------------- 1 | +++ 2 | title = "Slide title" 3 | type="slide" 4 | 5 | theme = "league" 6 | [revealOptions] 7 | transition= 'concave' 8 | controls= true 9 | progress= true 10 | history= true 11 | center= true 12 | +++ 13 | 14 | # Slide 1 15 | 16 | ___ 17 | 18 | ## Slide 1.1 19 | 20 | - Turn off alarm 21 | - Get out of bed 22 | 23 | ___ 24 | 25 | ## Slide 1.2 26 | 27 | - Eat eggs 28 | - Drink coffee 29 | 30 | --- 31 | 32 | # Slide 2 33 | 34 | ___ 35 | 36 | ## Slide 2.1 37 | 38 | - Eat spaghetti 39 | - Drink wine 40 | 41 | ___ 42 | 43 | ## Slide 2.2 44 | 45 | - Get in bed 46 | - Count sheep -------------------------------------------------------------------------------- /i18n/en.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Create a _header.md to customize this" 3 | 4 | [Search-placeholder] 5 | other = "Search..." 6 | 7 | [Clear-History] 8 | other = "Clear History" 9 | 10 | [Page] 11 | other = "Page" 12 | 13 | [Next-Pages] 14 | other = "Next Pages" 15 | 16 | [Previous-Pages] 17 | other = "Previous Pages" 18 | 19 | [pagination-on] 20 | other = "on" 21 | 22 | [Attachments-label] 23 | other = "Attachments" 24 | 25 | [title-404] 26 | other = "Error" 27 | 28 | [message-404] 29 | other = "Woops. Looks like this page doesn't exist." 30 | 31 | [Go-to-homepage] 32 | other = "Go to homepage" 33 | 34 | [Edit-this-page] 35 | other = "Edit page" 36 | 37 | [Navigation] 38 | other = "Navigation" -------------------------------------------------------------------------------- /layouts/shortcodes/expand.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 | 4 | 5 | {{ if .IsNamedParams }} 6 | {{.Get "default" | default "Expand me..."}} 7 | {{else}} 8 | {{.Get 0 | default "Expand me..."}} 9 | {{end}} 10 | 11 |
    12 | 15 |
    16 | 17 | -------------------------------------------------------------------------------- /i18n/nb.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Opprett en _header.md for å tilpasse denne" 3 | 4 | [Search-placeholder] 5 | other = "Søk..." 6 | 7 | [Clear-History] 8 | other = "Fjern historikk" 9 | 10 | [Page] 11 | other = "Side" 12 | 13 | [Next-Pages] 14 | other = "Neste" 15 | 16 | [Previous-Pages] 17 | other = "Forrige" 18 | 19 | [pagination-on] 20 | other = "av" 21 | 22 | [Attachments-label] 23 | other = "Vedlegg" 24 | 25 | [title-404] 26 | other = "Feil" 27 | 28 | [message-404] 29 | other = "Ups... Ser ikke ut som denne siden eksisterer." 30 | 31 | [Go-to-homepage] 32 | other = "Gå til hovedsiden" 33 | 34 | [Edit-this-page] 35 | other = "Endre denne siden i github" 36 | 37 | [Navigation] 38 | other = "Vis innhold" -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-options.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | test( 'Options are set', function() { 6 | strictEqual( marked.defaults.smartypants, true ); 7 | }); 8 | 9 | test( 'Smart quotes are activated', function() { 10 | var text = document.querySelector( '.reveal .slides>section>p' ).textContent; 11 | 12 | strictEqual( /['"]/.test( text ), false ); 13 | strictEqual( /[“”‘’]/.test( text ), true ); 14 | }); 15 | 16 | } ); 17 | 18 | Reveal.initialize({ 19 | dependencies: [ 20 | { src: '../plugin/markdown/marked.js' }, 21 | { src: '../plugin/markdown/markdown.js' }, 22 | ], 23 | markdown: { 24 | smartypants: true 25 | } 26 | }); 27 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ partial "header.html" . }} 2 | 3 | {{ $regExpIn := "

    \"([^\"]+)\"

    " }} 4 | {{ $regExpOut := "
    \"$2\"

    $3

    " }} 5 | {{ $finalContent := .Content | replaceRE $regExpIn $regExpOut | safeHTML }} 6 | {{ $finalContent }} 7 | 8 | 14 | 15 | {{ partial "footer.html" . }} -------------------------------------------------------------------------------- /static/css/horsey.css: -------------------------------------------------------------------------------- 1 | .sey-list { 2 | display: none; 3 | position: absolute; 4 | padding: 0; 5 | margin: 0; 6 | list-style-type: none; 7 | box-shadow: 1px 2px 6px; 8 | background-color: #fff; 9 | color: #333; 10 | transition: left 0.1s ease-in-out; 11 | max-height: 70vh; 12 | overflow: auto; 13 | width: 265px; 14 | } 15 | .sey-show { 16 | display: block; 17 | } 18 | .sey-hide { 19 | display: none; 20 | } 21 | .sey-item { 22 | cursor: pointer; 23 | overflow: hidden; 24 | white-space: nowrap; 25 | text-overflow: ellipsis; 26 | padding: 7px; 27 | } 28 | .sey-item:hover { 29 | background-color: #444; 30 | color: #fff; 31 | } 32 | .sey-selected { 33 | background-color: #333; 34 | color: #fff; 35 | } 36 | -------------------------------------------------------------------------------- /static/images/arrowrightup.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /i18n/fr.toml: -------------------------------------------------------------------------------- 1 | [create-header-md] 2 | other = "Créez un fichier _header.md pour personaliser cet encart" 3 | 4 | [Search-placeholder] 5 | other = "Rechercher..." 6 | 7 | [Clear-History] 8 | other = "Supprimer historique" 9 | 10 | [Page] 11 | other = "Page" 12 | 13 | [Next-Pages] 14 | other = "Pages suivantes" 15 | 16 | [Previous-Pages] 17 | other = "Pages précédentes" 18 | 19 | [pagination-on] 20 | other = "sur" 21 | 22 | [Attachments-label] 23 | other = "Documents attachés" 24 | 25 | [title-404] 26 | other = "Erreur" 27 | 28 | [message-404] 29 | other = "Woops. Looks like this page doesn't exist." 30 | 31 | [Go-to-homepage] 32 | other = "Vers la page d'accueil" 33 | 34 | [Edit-this-page] 35 | other = "Modifier" 36 | 37 | [Navigation] 38 | other = "Navigation" -------------------------------------------------------------------------------- /layouts/shortcodes/expandlarge.html: -------------------------------------------------------------------------------- 1 | {{ $_hugo_config := `{ "version": 1 }` }} 2 | 3 |
    4 |
    5 | 11 |
    12 |
    13 |
    14 | {{.Inner | safeHTML}} 15 |
    16 |
    17 |
    -------------------------------------------------------------------------------- /layouts/shortcodes/excerpt-include.html: -------------------------------------------------------------------------------- 1 | {{ $excerpt := findRE "(?ms){{%\\s*excerpt[^%]*%}}(.|\n)*?{{%\\s*/excerpt\\s*%}}" ( readFile (printf "./content/%s" (.Get "filename")) ) }} 2 | {{ range $excerpt }} 3 | {{if ($.Get "panel")}} 4 |
    5 |
    6 | {{$.Get "panel"}} 7 | {{if ($.Get "panel-link")}} 8 | 9 | {{ end }} 10 |
    11 |
    12 | {{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }} 13 |
    14 |
    15 | {{else}} 16 | {{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }} 17 | {{ end }} 18 | {{ end }} 19 | {{.Inner}} 20 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-external.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 9 | }); 10 | 11 | test( 'Horizontal separator', function() { 12 | strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); 13 | }); 14 | 15 | test( 'Language highlighter', function() { 16 | strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); 17 | strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); 18 | }); 19 | 20 | 21 | } ); 22 | 23 | Reveal.initialize(); 24 | 25 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/barebones.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Barebones 8 | 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 |
    17 | 18 |
    19 |

    Barebones Presentation

    20 |

    This example contains the bare minimum includes and markup required to run a reveal.js presentation.

    21 |
    22 | 23 |
    24 |

    No Theme

    25 |

    There's no theme included, so it will fall back on browser defaults.

    26 |
    27 | 28 |
    29 | 30 |
    31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | # theme.toml template for a Hugo theme 2 | # See https://github.com/spf13/hugoThemes#themetoml for an example 3 | 4 | name = "hugo-theme-altinn" 5 | license = "MIT" 6 | licenselink = "https://github.com/Altinn/hugo-theme-altinn/blob/master/LICENSE.md" 7 | description = "Altinn Documentation theme for Hugo" 8 | homepage = "https://github.com/Altinn/hugo-theme-altinn" 9 | repo = "https://github.com/Altinn/hugo-theme-altinn" 10 | tags = ["documentation", "menu","slide","search"] 11 | features = ["documentation","menu","nested sections","search","slide", "attachments"] 12 | min_version = 0.25 13 | 14 | [author] 15 | name = "Altinn" 16 | homepage = "https://altinn.no" 17 | 18 | [original] 19 | name = "Docdock" 20 | homepage = "https://docdock.netlify.com/" 21 | repo = "https://github.com/vjeantet/hugo-theme-docdock" 22 | licenselink = "https://github.com/vjeantet/hugo-theme-docdock/blob/master/LICENSE.md" -------------------------------------------------------------------------------- /static/revealjs/plugin/multiplex/master.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // Don't emit events from inside of notes windows 4 | if ( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var multiplex = Reveal.getConfig().multiplex; 7 | 8 | var socket = io.connect( multiplex.url ); 9 | 10 | function post() { 11 | 12 | var messageData = { 13 | state: Reveal.getState(), 14 | secret: multiplex.secret, 15 | socketId: multiplex.id 16 | }; 17 | 18 | socket.emit( 'multiplex-statechanged', messageData ); 19 | 20 | }; 21 | 22 | // Monitor events that trigger a change in state 23 | Reveal.addEventListener( 'slidechanged', post ); 24 | Reveal.addEventListener( 'fragmentshown', post ); 25 | Reveal.addEventListener( 'fragmenthidden', post ); 26 | Reveal.addEventListener( 'overviewhidden', post ); 27 | Reveal.addEventListener( 'overviewshown', post ); 28 | Reveal.addEventListener( 'paused', post ); 29 | Reveal.addEventListener( 'resumed', post ); 30 | 31 | }()); -------------------------------------------------------------------------------- /layouts/_default/li.html: -------------------------------------------------------------------------------- 1 |
    2 |
    3 |

    {{ .Title }}

    4 |
    5 |
    6 |

    {{ .Summary }} »

    7 |
    8 |
    9 | 10 | {{with .Params.LastModifierDisplayName}} 11 | {{ . }} {{with $.Date}} {{ .Format "02/01/2006" }}{{end}} 12 | {{end}} 13 | 14 | 15 | {{if .Params.tags }} 16 | {{ range $index, $tag := .Params.tags }} 17 | {{ $tag }} 18 | {{ end }} 19 | {{end}} 20 | 21 |
    22 |
    23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /layouts/partials/topbar.html: -------------------------------------------------------------------------------- 1 | 7 | 8 |
    9 | 10 |
    11 |
    12 |
    13 | 14 | 15 | 21 | 22 |
    23 |
    24 |
    25 |
    26 | 27 | 28 | -------------------------------------------------------------------------------- /layouts/shortcodes/emoticon.html: -------------------------------------------------------------------------------- 1 | {{ $name := .Get "name"}} 2 | 3 | {{ if eq "smile" $name}} 4 | 😀 5 | {{ else if eq "sad" $name}} 6 | 🙁 7 | {{ else if eq "cheeky" $name}} 8 | 😛 9 | {{ else if eq "laugh" $name}} 10 | 😃 11 | {{ else if eq "wink" $name}} 12 | 😉 13 | {{ else if eq "thumbs-up" $name}} 14 | 15 | {{ else if eq "thumbs-down" $name}} 16 | 17 | {{ else if eq "information" $name}} 18 | 19 | {{ else if eq "tick" $name}} 20 | 21 | {{ else if eq "cross" $name}} 22 | 23 | {{ else if eq "warning" $name}} 24 | 25 | {{else}} 26 | ( Emoticon: {{$name}} ) 27 | {{end}} 28 | 29 | {{.Inner}} 30 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Options 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-external.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/night.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700); 16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic); 17 | 18 | 19 | // Override theme settings (see ../template/settings.scss) 20 | $backgroundColor: #111; 21 | 22 | $mainFont: 'Open Sans', sans-serif; 23 | $linkColor: #e7ad52; 24 | $linkColorHover: lighten( $linkColor, 20% ); 25 | $headingFont: 'Montserrat', Impact, sans-serif; 26 | $headingTextShadow: none; 27 | $headingLetterSpacing: -0.03em; 28 | $headingTextTransform: none; 29 | $selectionBackgroundColor: #e7ad52; 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ partial "header.html" . }} 2 | 3 | {{ $regExpIn := "

    \"([^\"]+)\"

    " }} 4 | {{ $regExpOut := "
    \"$2\"

    $3

    " }} 5 | {{ $finalContent := .Content | replaceRE $regExpIn $regExpOut | safeHTML }} 6 | {{ $finalContent }} 7 | 8 | 14 | 15 | 16 | {{if not .Content }} 17 | {{ $paginator := .Paginator }} 18 | 19 |
    20 | {{ partial "pagination.html" $paginator }} 21 |
    22 | 23 | {{ range $index, $page := $paginator.Pages }} 24 | {{ .Render "li" }} 25 | {{ end }} 26 | 27 |
    28 | 29 | {{ partial "pagination.html" $paginator }} 30 | {{end}} 31 | 32 | {{ partial "footer.html" . }} -------------------------------------------------------------------------------- /static/revealjs/test/examples/embedded-media.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Embedded Media 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 |
    20 | 21 |
    22 |

    Embedded Media Test

    23 |
    24 | 25 |
    26 | 27 |
    28 | 29 |
    30 |

    Empty Slide

    31 |
    32 | 33 |
    34 | 35 |
    36 | 37 | 38 | 39 | 40 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /static/revealjs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**. 4 | 5 | 6 | ### Personal Support 7 | If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js). 8 | 9 | 10 | ### Bug Reports 11 | When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested. 12 | 13 | 14 | ### Pull Requests 15 | - Should follow the coding style of the file you work in, most importantly: 16 | - Tabs to indent 17 | - Single-quoted strings 18 | - Should be made towards the **dev branch** 19 | - Should be submitted from a feature/topic branch (not your master) 20 | 21 | 22 | ### Plugins 23 | Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines 24 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/serif.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is brown. 4 | * 5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. 6 | */ 7 | 8 | 9 | // Default mixins and settings ----------------- 10 | @import "../template/mixins"; 11 | @import "../template/settings"; 12 | // --------------------------------------------- 13 | 14 | 15 | 16 | // Override theme settings (see ../template/settings.scss) 17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 18 | $mainColor: #000; 19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 20 | $headingColor: #383D3D; 21 | $headingTextShadow: none; 22 | $headingTextTransform: none; 23 | $backgroundColor: #F0F1EB; 24 | $linkColor: #51483D; 25 | $linkColorHover: lighten( $linkColor, 20% ); 26 | $selectionBackgroundColor: #26351C; 27 | 28 | .reveal a { 29 | line-height: 1.3em; 30 | } 31 | 32 | 33 | // Theme template ------------------------------ 34 | @import "../template/theme"; 35 | // --------------------------------------------- 36 | -------------------------------------------------------------------------------- /static/revealjs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2016 Hakim El Hattab, http://hakim.se, and reveal.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /layouts/shortcodes/attachments.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 | 32 |
    33 | 34 | {{.Inner}} -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Grav 4 | Copyright (c) 2016 MATHIEU CORNIC 5 | Copyright (c) 2017 Valere JEANTET 6 | Copyright (c) 2019 Altinn 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 12 | the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 20 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 21 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 22 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/template/settings.scss: -------------------------------------------------------------------------------- 1 | // Base settings for all themes that can optionally be 2 | // overridden by the super-theme 3 | 4 | // Background of the presentation 5 | $backgroundColor: #2b2b2b; 6 | 7 | // Primary/body text 8 | $mainFont: 'Lato', sans-serif; 9 | $mainFontSize: 40px; 10 | $mainColor: #eee; 11 | 12 | // Vertical spacing between blocks of text 13 | $blockMargin: 20px; 14 | 15 | // Headings 16 | $headingMargin: 0 0 $blockMargin 0; 17 | $headingFont: 'League Gothic', Impact, sans-serif; 18 | $headingColor: #eee; 19 | $headingLineHeight: 1.2; 20 | $headingLetterSpacing: normal; 21 | $headingTextTransform: uppercase; 22 | $headingTextShadow: none; 23 | $headingFontWeight: normal; 24 | $heading1TextShadow: $headingTextShadow; 25 | 26 | $heading1Size: 3.77em; 27 | $heading2Size: 2.11em; 28 | $heading3Size: 1.55em; 29 | $heading4Size: 1.00em; 30 | 31 | // Links and actions 32 | $linkColor: #13DAEC; 33 | $linkColorHover: lighten( $linkColor, 20% ); 34 | 35 | // Text selection 36 | $selectionBackgroundColor: #FF5E99; 37 | $selectionColor: #fff; 38 | 39 | // Generates the presentation background, can be overridden 40 | // to return a background image or gradient 41 | @mixin bodyBackground() { 42 | background: $backgroundColor; 43 | } -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/league.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * League theme for reveal.js. 3 | * 4 | * This was the default theme pre-3.0.0. 5 | * 6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(../../lib/font/league-gothic/league-gothic.css); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | // Override theme settings (see ../template/settings.scss) 22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2); 23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 24 | 25 | // Background generator 26 | @mixin bodyBackground() { 27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) ); 28 | } 29 | 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /exampleSite/config.toml: -------------------------------------------------------------------------------- 1 | baseURL = "/" 2 | languageCode = "en-us" 3 | DefaultContentLanguage = "en" 4 | 5 | title = "Docdock" 6 | theme = "hugo-theme-docdock" 7 | themesdir = "../.." 8 | 9 | [params] 10 | editURL = "https://github.com/vjeantet/hugo-theme-docdock/edit/master/exampleSite/content/" 11 | noHomeIcon = false # default is false 12 | noSearch = false # default is false 13 | showVisitedLinks = true # default is false 14 | # themeStyle = "theme" # overide base css 15 | themeVariant = "" # choose theme variant "green", "gold" , "gray", "blue" (default) 16 | ordersectionsby = "weight" # ordersectionsby = "title" 17 | 18 | [outputs] 19 | home = [ "HTML", "RSS", "JSON"] 20 | 21 | 22 | [[menu.shortcuts]] 23 | pre = "

    More

    " 24 | name = " Github repo" 25 | identifier = "ds" 26 | url = "https://github.com/vjeantet/hugo-theme-docdock" 27 | weight = 10 28 | 29 | [[menu.shortcuts]] 30 | name = " Showcases" 31 | url = "/showcase" 32 | weight = 11 33 | 34 | [[menu.shortcuts]] 35 | name = " Hugo Documentation" 36 | identifier = "hugodoc" 37 | url = "https://gohugo.io/" 38 | weight = 20 39 | 40 | [[menu.shortcuts]] 41 | name = " Credits" 42 | url = "/credits" 43 | weight = 30 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Altinn Hugo Theme 2 | This repository contains a theme for [Hugo](https://gohugo.io/), based on great [docdock](http://docdock.netlify.com/). A big thanks to Valere Jeantet. 3 | 4 | ![Example](https://raw.githubusercontent.com/Altinn/hugo-theme-altinn/master/example.png "Example") 5 | 6 | # Main features 7 | - Sticky sidebar inside resizable grid 8 | - Jumbotron on firstpage 9 | - Altinn design 10 | - Blue and gray theme variations 11 | - Clickable figures with caption using standard markdown image syntax 12 | - Attachments files 13 | - Search using [lunr.js](https://lunrjs.com/) 14 | - Unlimited menu levels 15 | - List child pages 16 | - Table of contents when enabled in front matter (toc: true) 17 | - [Reveal.js](https://github.com/hakimel/reveal.js) presentation from markdown (embededed or fullscreen page) 18 | - Include segment of content from one page in another (Excerpt) 19 | - [Mermaid](https://mermaidjs.github.io) diagrams 20 | - Icons, Buttons, Alerts, Panels, Tip/Note/Info/Warning boxes 21 | 22 | ## Installation 23 | Navigate to your themes folder in your Hugo site and use the following commands: 24 | ``` 25 | $ cd themes 26 | $ git clone https://github.com/altinn/hugo-theme-altinn.git 27 | ``` 28 | 29 | Check that your Hugo version is minimum `0.55` with `hugo version`. 30 | -------------------------------------------------------------------------------- /static/revealjs/lib/css/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } 81 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/sky.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Sky theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic); 17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainFont: 'Open Sans', sans-serif; 22 | $mainColor: #333; 23 | $headingFont: 'Quicksand', sans-serif; 24 | $headingColor: #333; 25 | $headingLetterSpacing: -0.08em; 26 | $headingTextShadow: none; 27 | $backgroundColor: #f7fbfc; 28 | $linkColor: #3b759e; 29 | $linkColorHover: lighten( $linkColor, 20% ); 30 | $selectionBackgroundColor: #134674; 31 | 32 | // Fix links so they are not cut off 33 | .reveal a { 34 | line-height: 1.3em; 35 | } 36 | 37 | // Background generator 38 | @mixin bodyBackground() { 39 | @include radial-gradient( #add9e4, #f7fbfc ); 40 | } 41 | 42 | 43 | 44 | // Theme template ------------------------------ 45 | @import "../template/theme"; 46 | // --------------------------------------------- 47 | -------------------------------------------------------------------------------- /static/js/stickysidebar/rAF.js: -------------------------------------------------------------------------------- 1 | // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 2 | // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating 3 | 4 | // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel 5 | 6 | // MIT license 7 | 8 | (function() { 9 | var lastTime = 0; 10 | var vendors = ['ms', 'moz', 'webkit', 'o']; 11 | for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { 12 | window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; 13 | window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] 14 | || window[vendors[x]+'CancelRequestAnimationFrame']; 15 | } 16 | 17 | if (!window.requestAnimationFrame) 18 | window.requestAnimationFrame = function(callback, element) { 19 | var currTime = new Date().getTime(); 20 | var timeToCall = Math.max(0, 16 - (currTime - lastTime)); 21 | var id = window.setTimeout(function() { callback(currTime + timeToCall); }, 22 | timeToCall); 23 | lastTime = currTime + timeToCall; 24 | return id; 25 | }; 26 | 27 | if (!window.cancelAnimationFrame) 28 | window.cancelAnimationFrame = function(id) { 29 | clearTimeout(id); 30 | }; 31 | }()); -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/white.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * White theme for reveal.js. This is the opposite of the 'black' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #fff; 20 | 21 | $mainColor: #222; 22 | $headingColor: #222; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #2a76dd; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-dark-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #fff; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/beige.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Beige theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(../../lib/font/league-gothic/league-gothic.css); 17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainColor: #333; 22 | $headingColor: #333; 23 | $headingTextShadow: none; 24 | $backgroundColor: #f7f3de; 25 | $linkColor: #8b743d; 26 | $linkColorHover: lighten( $linkColor, 20% ); 27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99); 28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 29 | 30 | // Background generator 31 | @mixin bodyBackground() { 32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) ); 33 | } 34 | 35 | 36 | 37 | // Theme template ------------------------------ 38 | @import "../template/theme"; 39 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/black.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. This is the opposite of the 'white' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #222; 20 | 21 | $mainColor: #fff; 22 | $headingColor: #fff; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #42affa; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-light-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #222; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/simple.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is darkblue. 4 | * 5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. 6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | 22 | // Override theme settings (see ../template/settings.scss) 23 | $mainFont: 'Lato', sans-serif; 24 | $mainColor: #000; 25 | $headingFont: 'News Cycle', Impact, sans-serif; 26 | $headingColor: #000; 27 | $headingTextShadow: none; 28 | $headingTextTransform: none; 29 | $backgroundColor: #fff; 30 | $linkColor: #00008B; 31 | $linkColorHover: lighten( $linkColor, 20% ); 32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99); 33 | 34 | section.has-dark-background { 35 | &, h1, h2, h3, h4, h5, h6 { 36 | color: #fff; 37 | } 38 | } 39 | 40 | 41 | // Theme template ------------------------------ 42 | @import "../template/theme"; 43 | // --------------------------------------------- -------------------------------------------------------------------------------- /layouts/partials/footer-content.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/css/featherlight.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Featherlight - ultra slim jQuery lightbox 3 | * Version 1.2.3 - http://noelboss.github.io/featherlight/ 4 | * 5 | * Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com) 6 | * MIT Licensed. 7 | **/ 8 | @media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;min-width:30%;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0}.featherlight iframe{border:0}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:10px;margin-right:10px;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}} -------------------------------------------------------------------------------- /static/revealjs/plugin/print-pdf/print-pdf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * phantomjs script for printing presentations to PDF. 3 | * 4 | * Example: 5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf 6 | * 7 | * @author Manuel Bieh (https://github.com/manuelbieh) 8 | * @author Hakim El Hattab (https://github.com/hakimel) 9 | */ 10 | 11 | // html2pdf.js 12 | var system = require( 'system' ); 13 | 14 | var probePage = new WebPage(); 15 | var printPage = new WebPage(); 16 | 17 | var inputFile = system.args[1] || 'index.html?print-pdf'; 18 | var outputFile = system.args[2] || 'slides.pdf'; 19 | 20 | if( outputFile.match( /\.pdf$/gi ) === null ) { 21 | outputFile += '.pdf'; 22 | } 23 | 24 | console.log( 'Export PDF: Reading reveal.js config [1/3]' ); 25 | 26 | probePage.open( inputFile, function( status ) { 27 | 28 | console.log( 'Export PDF: Preparing print layout [2/3]' ); 29 | 30 | var config = probePage.evaluate( function() { 31 | return Reveal.getConfig(); 32 | } ); 33 | 34 | printPage.paperSize = { 35 | width: config.width * ( 1 + config.margin ), 36 | height: config.height * ( 1 + config.margin ), 37 | border: 0 38 | }; 39 | 40 | printPage.open( inputFile, function( status ) { 41 | window.setTimeout( function() { 42 | console.log( 'Export PDF: Writing file [3/3]' ); 43 | printPage.render( outputFile ); 44 | console.log( 'Export PDF: Finished successfully!' ); 45 | phantom.exit(); 46 | }, 1000 ); 47 | } ); 48 | 49 | } ); 50 | 51 | 52 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/moon.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Dark theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | /** 19 | * Solarized colors by Ethan Schoonover 20 | */ 21 | html * { 22 | color-profile: sRGB; 23 | rendering-intent: auto; 24 | } 25 | 26 | // Solarized colors 27 | $base03: #002b36; 28 | $base02: #073642; 29 | $base01: #586e75; 30 | $base00: #657b83; 31 | $base0: #839496; 32 | $base1: #93a1a1; 33 | $base2: #eee8d5; 34 | $base3: #fdf6e3; 35 | $yellow: #b58900; 36 | $orange: #cb4b16; 37 | $red: #dc322f; 38 | $magenta: #d33682; 39 | $violet: #6c71c4; 40 | $blue: #268bd2; 41 | $cyan: #2aa198; 42 | $green: #859900; 43 | 44 | // Override theme settings (see ../template/settings.scss) 45 | $mainColor: $base1; 46 | $headingColor: $base2; 47 | $headingTextShadow: none; 48 | $backgroundColor: $base03; 49 | $linkColor: $blue; 50 | $linkColorHover: lighten( $linkColor, 20% ); 51 | $selectionBackgroundColor: $magenta; 52 | 53 | 54 | 55 | // Theme template ------------------------------ 56 | @import "../template/theme"; 57 | // --------------------------------------------- 58 | -------------------------------------------------------------------------------- /static/revealjs/lib/js/classList.js: -------------------------------------------------------------------------------- 1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ 2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p 29 | Looking for technical guidance on how to build your own services with our products? Go to [Altinn Digital - Development](https://altinn.github.io/docs/") 30 | {{% /panel %}}
    31 | 32 | Eksempel på bilde: 33 | 34 | ![Overordnet integrasjonsskisse](integrasjonsskisse.png "Overordnet integrasjonsskisse") 35 | 36 | ## Eksempel på fil som kan lastes ned: 37 | 38 | Filen må legges i en mappe som heter filnavn.files, f.eks: _index.files 39 | 40 | {{%attachments pattern=".*(pdf|docx)"/%}} 41 | 42 | ## Eksempel på ekspanderbare overskrifter: 43 | 44 | {{%expandlarge id="autentisering1" header="Titel 1" %}} 45 | Innhold 1 46 | {{% /expandlarge%}} 47 | 48 | {{%expandlarge id="autentisering2" header="Tittel 2" %}} 49 | Innhold 2 50 | {{% /expandlarge%}} 51 | 52 | {{%expandlarge id="autentisering3" header="Tittel 3" %}} 53 | Innhold 3 54 | {{% /expandlarge%}} 55 | 56 | 57 | -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('source-sans-pro-regular.eot'); 4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('source-sans-pro-regular.woff') format('woff'), 6 | url('source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('source-sans-pro-italic.eot'); 14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('source-sans-pro-italic.woff') format('woff'), 16 | url('source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('source-sans-pro-semibold.eot'); 24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('source-sans-pro-semibold.woff') format('woff'), 26 | url('source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('source-sans-pro-semibolditalic.eot'); 34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ partial "header.html" . }} 2 | 3 | {{T "Navigation"}} 4 | 5 | {{if .Site.Home.Content }} 6 | {{ $regExpIn := "

    \"([^\"]+)\"

    " }} 7 | {{ $regExpOut := "
    \"$2\"

    $3

    " }} 8 | {{ $finalContent := .Site.Home.Content | replaceRE $regExpIn $regExpOut | safeHTML }} 9 | {{ $finalContent }} 10 | {{else}} 11 | {{if eq .Site.Language.Lang "fr"}} 12 |

    Personaliser la page d'accueil

    13 |

    14 | Le site fonctionne. Ne pas oublier de personaliser cette page avec votre propre contenu. 2 façons de faire : 15 |

    16 |
      17 |
    • 1. Créer un fichier _index.md dans le dossier content
    • 18 |
    • 2. Configurer le serveur http pour rediriger automatiquement la homepage vers la page de votre choix dans le site
    • 19 |
    20 | {{else}} 21 |

    Customize your own home page

    22 |

    23 | The site is working. Don't forget to customize this homepage with your own. You typically have 2 choices : 24 |

    25 |
      26 |
    • 1. Create an _index.md document in the content folder
    • 27 |
    • 2. Configure your server to automatically redirect this home page to one of your documentation pages
    • 28 |
    29 | {{end}} 30 |

    31 | {{ end }} 32 | {{ partial "footer.html" . }} 33 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/README.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup 4 | 5 | ## Creating a Theme 6 | 7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`. 8 | 9 | Each theme file does four things in the following order: 10 | 11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)** 12 | Shared utility functions. 13 | 14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)** 15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3. 16 | 17 | 3. **Override** 18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please. 19 | 20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** 21 | The template theme file which will generate final CSS output based on the currently defined variables. 22 | -------------------------------------------------------------------------------- /static/revealjs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | 24 | 25 |
    26 |
    27 |
    Slide 1
    28 |
    Slide 2
    29 |
    30 |
    31 | 32 | 33 | 34 | 35 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ partial "meta.html" . }} 6 | 7 | {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} 8 | {{ .Scratch.Get "title" }} 9 | 10 | 11 | 12 | 13 | 28 | {{ partial "custom-head.html" . }} 29 | 30 | 31 | 32 | 33 | 34 | 35 |
    36 |
    37 |
    38 |
    39 |

    {{T "title-404"}}

    40 |

    41 |

    42 |

    {{T "message-404"}}

    43 |

    44 |

    {{T "Go-to-homepage"}}

    45 |

    46 |
    47 |
    48 | 49 |
    50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/solarized.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Light theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | 19 | /** 20 | * Solarized colors by Ethan Schoonover 21 | */ 22 | html * { 23 | color-profile: sRGB; 24 | rendering-intent: auto; 25 | } 26 | 27 | // Solarized colors 28 | $base03: #002b36; 29 | $base02: #073642; 30 | $base01: #586e75; 31 | $base00: #657b83; 32 | $base0: #839496; 33 | $base1: #93a1a1; 34 | $base2: #eee8d5; 35 | $base3: #fdf6e3; 36 | $yellow: #b58900; 37 | $orange: #cb4b16; 38 | $red: #dc322f; 39 | $magenta: #d33682; 40 | $violet: #6c71c4; 41 | $blue: #268bd2; 42 | $cyan: #2aa198; 43 | $green: #859900; 44 | 45 | // Override theme settings (see ../template/settings.scss) 46 | $mainColor: $base00; 47 | $headingColor: $base01; 48 | $headingTextShadow: none; 49 | $backgroundColor: $base3; 50 | $linkColor: $blue; 51 | $linkColorHover: lighten( $linkColor, 20% ); 52 | $selectionBackgroundColor: $magenta; 53 | 54 | // Background generator 55 | // @mixin bodyBackground() { 56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) ); 57 | // } 58 | 59 | 60 | 61 | // Theme template ------------------------------ 62 | @import "../template/theme"; 63 | // --------------------------------------------- 64 | -------------------------------------------------------------------------------- /exampleSite/content/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Eksempel på forside 3 | description: Ingress 4 | jumbotron: true 5 | --- 6 | 7 | # Eksempel på forside 8 | 9 | Eksempel på innhold og en [lenke til en eksempelside](/eksempel). 10 | 11 | Eksempel på fremhevet innhold: 12 | 13 |
    14 | Illustrasjon tilganger 15 |
    16 | 17 | Contributing to Altinn Studio 18 | 19 | 20 |

    We love your input! We want to make contributing to this project as easy as possible. 21 |

    22 |
    23 | 24 |
    25 | Illustrasjon utviklingsguider 26 |
    27 | 28 | Architecture 29 | 30 | 31 |

    Description of the Altinn Studio application architecture, build process, infrastructure and security.

    32 |
    33 |
    34 | 35 |
    36 | Illustrasjon API 37 |
    38 | 39 | Development handbook 40 | 41 | 42 |

    The development handbook should provide all basic information needed to get started with development on Altinn Studio.

    43 |
    44 |
    45 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/template/mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin vertical-gradient( $top, $bottom ) { 2 | background: $top; 3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); 4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); 5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); 6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% ); 7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); 8 | background: linear-gradient( top, $top 0%, $bottom 100% ); 9 | } 10 | 11 | @mixin horizontal-gradient( $top, $bottom ) { 12 | background: $top; 13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); 14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); 15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); 16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% ); 17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); 18 | background: linear-gradient( left, $top 0%, $bottom 100% ); 19 | } 20 | 21 | @mixin radial-gradient( $outer, $inner, $type: circle ) { 22 | background: $outer; 23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); 25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 29 | } -------------------------------------------------------------------------------- /static/css/hybrid.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid) 4 | 5 | */ 6 | 7 | /*background color*/ 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #1d1f21; 13 | } 14 | 15 | /*selection color*/ 16 | .hljs::selection, 17 | .hljs span::selection { 18 | background: #373b41; 19 | } 20 | 21 | .hljs::-moz-selection, 22 | .hljs span::-moz-selection { 23 | background: #373b41; 24 | } 25 | 26 | /*foreground color*/ 27 | .hljs { 28 | color: #c5c8c6; 29 | } 30 | 31 | /*color: fg_yellow*/ 32 | .hljs-title, 33 | .hljs-name { 34 | color: #f0c674; 35 | } 36 | 37 | /*color: fg_comment*/ 38 | .hljs-comment, 39 | .hljs-meta, 40 | .hljs-meta .hljs-keyword { 41 | color: #707880; 42 | } 43 | 44 | /*color: fg_red*/ 45 | .hljs-number, 46 | .hljs-symbol, 47 | .hljs-literal, 48 | .hljs-deletion, 49 | .hljs-link { 50 | color: #cc6666 51 | } 52 | 53 | /*color: fg_green*/ 54 | .hljs-string, 55 | .hljs-doctag, 56 | .hljs-addition, 57 | .hljs-regexp, 58 | .hljs-selector-attr, 59 | .hljs-selector-pseudo { 60 | color: #b5bd68; 61 | } 62 | 63 | /*color: fg_purple*/ 64 | .hljs-attribute, 65 | .hljs-code, 66 | .hljs-selector-id { 67 | color: #b294bb; 68 | } 69 | 70 | /*color: fg_blue*/ 71 | .hljs-keyword, 72 | .hljs-selector-tag, 73 | .hljs-bullet, 74 | .hljs-tag { 75 | color: #81a2be; 76 | } 77 | 78 | /*color: fg_aqua*/ 79 | .hljs-subst, 80 | .hljs-variable, 81 | .hljs-template-tag, 82 | .hljs-template-variable { 83 | color: #8abeb7; 84 | } 85 | 86 | /*color: fg_orange*/ 87 | .hljs-type, 88 | .hljs-built_in, 89 | .hljs-builtin-name, 90 | .hljs-quote, 91 | .hljs-section, 92 | .hljs-selector-class { 93 | color: #de935f; 94 | } 95 | 96 | .hljs-emphasis { 97 | font-style: italic; 98 | } 99 | 100 | .hljs-strong { 101 | font-weight: bold; 102 | } 103 | -------------------------------------------------------------------------------- /static/revealjs/plugin/math/math.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax. 4 | * 5 | * @author Hakim El Hattab 6 | */ 7 | var RevealMath = window.RevealMath || (function(){ 8 | 9 | var options = Reveal.getConfig().math || {}; 10 | options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'; 11 | options.config = options.config || 'TeX-AMS_HTML-full'; 12 | 13 | loadScript( options.mathjax + '?config=' + options.config, function() { 14 | 15 | MathJax.Hub.Config({ 16 | messageStyle: 'none', 17 | tex2jax: { 18 | inlineMath: [['$','$'],['\\(','\\)']] , 19 | skipTags: ['script','noscript','style','textarea','pre'] 20 | }, 21 | skipStartupTypeset: true 22 | }); 23 | 24 | // Typeset followed by an immediate reveal.js layout since 25 | // the typesetting process could affect slide height 26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] ); 27 | MathJax.Hub.Queue( Reveal.layout ); 28 | 29 | // Reprocess equations in slides when they turn visible 30 | Reveal.addEventListener( 'slidechanged', function( event ) { 31 | 32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 33 | 34 | } ); 35 | 36 | } ); 37 | 38 | function loadScript( url, callback ) { 39 | 40 | var head = document.querySelector( 'head' ); 41 | var script = document.createElement( 'script' ); 42 | script.type = 'text/javascript'; 43 | script.src = url; 44 | 45 | // Wrapper for callback to make sure it only fires once 46 | var finish = function() { 47 | if( typeof callback === 'function' ) { 48 | callback.call(); 49 | callback = null; 50 | } 51 | } 52 | 53 | script.onload = finish; 54 | 55 | // IE 56 | script.onreadystatechange = function() { 57 | if ( this.readyState === 'loaded' ) { 58 | finish(); 59 | } 60 | } 61 | 62 | // Normal browsers 63 | head.appendChild( script ); 64 | 65 | } 66 | 67 | })(); 68 | -------------------------------------------------------------------------------- /layouts/slide/single.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
    7 |
    8 |
    13 | {{ .RawContent }} 14 |
    15 |
    16 |
    17 | 18 | 19 | 38 | -------------------------------------------------------------------------------- /static/revealjs/test/test-pdf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test PDF exports 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    17 |
    18 | 19 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /static/revealjs/plugin/multiplex/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var crypto = require('crypto'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port: process.env.PORT || 1948, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | socket.on('multiplex-statechanged', function(data) { 20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return; 21 | if (createHash(data.secret) === data.socketId) { 22 | data.secret = null; 23 | socket.broadcast.emit(data.socketId, data); 24 | }; 25 | }); 26 | }); 27 | 28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { 29 | app.use('/' + dir, staticDir(opts.baseDir + dir)); 30 | }); 31 | 32 | app.get("/", function(req, res) { 33 | res.writeHead(200, {'Content-Type': 'text/html'}); 34 | 35 | var stream = fs.createReadStream(opts.baseDir + '/index.html'); 36 | stream.on('error', function( error ) { 37 | res.write('

    reveal.js multiplex server.

    Generate token'); 38 | res.end(); 39 | }); 40 | stream.on('readable', function() { 41 | stream.pipe(res); 42 | }); 43 | }); 44 | 45 | app.get("/token", function(req,res) { 46 | var ts = new Date().getTime(); 47 | var rand = Math.floor(Math.random()*9999999); 48 | var secret = ts.toString() + rand.toString(); 49 | res.send({secret: secret, socketId: createHash(secret)}); 50 | }); 51 | 52 | var createHash = function(secret) { 53 | var cipher = crypto.createCipher('blowfish', secret); 54 | return(cipher.final('hex')); 55 | }; 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset ); -------------------------------------------------------------------------------- /static/revealjs/plugin/notes-server/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var Mustache = require('mustache'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port : 1947, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | 20 | socket.on( 'new-subscriber', function( data ) { 21 | socket.broadcast.emit( 'new-subscriber', data ); 22 | }); 23 | 24 | socket.on( 'statechanged', function( data ) { 25 | delete data.state.overview; 26 | socket.broadcast.emit( 'statechanged', data ); 27 | }); 28 | 29 | socket.on( 'statechanged-speaker', function( data ) { 30 | delete data.state.overview; 31 | socket.broadcast.emit( 'statechanged-speaker', data ); 32 | }); 33 | 34 | }); 35 | 36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) { 37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) ); 38 | }); 39 | 40 | app.get('/', function( req, res ) { 41 | 42 | res.writeHead( 200, { 'Content-Type': 'text/html' } ); 43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res ); 44 | 45 | }); 46 | 47 | app.get( '/notes/:socketId', function( req, res ) { 48 | 49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) { 50 | res.send( Mustache.to_html( data.toString(), { 51 | socketId : req.params.socketId 52 | })); 53 | }); 54 | 55 | }); 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' ); 65 | 66 | console.log( brown + 'reveal.js - Speaker Notes' + reset ); 67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset ); 68 | console.log( '2. Click on the link in your JS console to go to the notes page' ); 69 | console.log( '3. Advance through your slides and your notes will advance automatically' ); 70 | -------------------------------------------------------------------------------- /static/revealjs/css/theme/source/blood.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Blood theme for reveal.js 3 | * Author: Walther http://github.com/Walther 4 | * 5 | * Designed to be used with highlight.js theme 6 | * "monokai_sublime.css" available from 7 | * https://github.com/isagalaev/highlight.js/ 8 | * 9 | * For other themes, change $codeBackground accordingly. 10 | * 11 | */ 12 | 13 | // Default mixins and settings ----------------- 14 | @import "../template/mixins"; 15 | @import "../template/settings"; 16 | // --------------------------------------------- 17 | 18 | // Include theme-specific fonts 19 | 20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); 21 | 22 | // Colors used in the theme 23 | $blood: #a23; 24 | $coal: #222; 25 | $codeBackground: #23241f; 26 | 27 | $backgroundColor: $coal; 28 | 29 | // Main text 30 | $mainFont: Ubuntu, 'sans-serif'; 31 | $mainColor: #eee; 32 | 33 | // Headings 34 | $headingFont: Ubuntu, 'sans-serif'; 35 | $headingTextShadow: 2px 2px 2px $coal; 36 | 37 | // h1 shadow, borrowed humbly from 38 | // (c) Default theme by Hakim El Hattab 39 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 40 | 41 | // Links 42 | $linkColor: $blood; 43 | $linkColorHover: lighten( $linkColor, 20% ); 44 | 45 | // Text selection 46 | $selectionBackgroundColor: $blood; 47 | $selectionColor: #fff; 48 | 49 | 50 | // Theme template ------------------------------ 51 | @import "../template/theme"; 52 | // --------------------------------------------- 53 | 54 | // some overrides after theme template import 55 | 56 | .reveal p { 57 | font-weight: 300; 58 | text-shadow: 1px 1px $coal; 59 | } 60 | 61 | .reveal h1, 62 | .reveal h2, 63 | .reveal h3, 64 | .reveal h4, 65 | .reveal h5, 66 | .reveal h6 { 67 | font-weight: 700; 68 | } 69 | 70 | .reveal p code { 71 | background-color: $codeBackground; 72 | display: inline-block; 73 | border-radius: 7px; 74 | } 75 | 76 | .reveal small code { 77 | vertical-align: baseline; 78 | } -------------------------------------------------------------------------------- /static/revealjs/plugin/notes-server/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // don't emit events from inside the previews themselves 4 | if( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var socket = io.connect( window.location.origin ), 7 | socketId = Math.random().toString().slice( 2 ); 8 | 9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId ); 10 | 11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId ); 12 | 13 | /** 14 | * Posts the current slide data to the notes window 15 | */ 16 | function post() { 17 | 18 | var slideElement = Reveal.getCurrentSlide(), 19 | notesElement = slideElement.querySelector( 'aside.notes' ); 20 | 21 | var messageData = { 22 | notes: '', 23 | markdown: false, 24 | socketId: socketId, 25 | state: Reveal.getState() 26 | }; 27 | 28 | // Look for notes defined in a slide attribute 29 | if( slideElement.hasAttribute( 'data-notes' ) ) { 30 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 31 | } 32 | 33 | // Look for notes defined in an aside element 34 | if( notesElement ) { 35 | messageData.notes = notesElement.innerHTML; 36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string'; 37 | } 38 | 39 | socket.emit( 'statechanged', messageData ); 40 | 41 | } 42 | 43 | // When a new notes window connects, post our current state 44 | socket.on( 'new-subscriber', function( data ) { 45 | post(); 46 | } ); 47 | 48 | // When the state changes from inside of the speaker view 49 | socket.on( 'statechanged-speaker', function( data ) { 50 | Reveal.setState( data.state ); 51 | } ); 52 | 53 | // Monitor events that trigger a change in state 54 | Reveal.addEventListener( 'slidechanged', post ); 55 | Reveal.addEventListener( 'fragmentshown', post ); 56 | Reveal.addEventListener( 'fragmenthidden', post ); 57 | Reveal.addEventListener( 'overviewhidden', post ); 58 | Reveal.addEventListener( 'overviewshown', post ); 59 | Reveal.addEventListener( 'paused', post ); 60 | Reveal.addEventListener( 'resumed', post ); 61 | 62 | // Post the initial state 63 | post(); 64 | 65 | }()); 66 | -------------------------------------------------------------------------------- /static/revealjs/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Tests 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /static/js/search.js: -------------------------------------------------------------------------------- 1 | var lunrIndex, pagesIndex; 2 | 3 | function endsWith(str, suffix) { 4 | return str.indexOf(suffix, str.length - suffix.length) !== -1; 5 | } 6 | 7 | // Initialize lunrjs using our generated index file 8 | function initLunr() { 9 | if (!endsWith(baseurl,"/")){ 10 | baseurl = baseurl+'/' 11 | }; 12 | 13 | // First retrieve the index file 14 | $.getJSON(baseurl +"lunr-index.json") 15 | .done(function(data) { 16 | pagesIndex = data.meta; 17 | lunrIndex = lunr.Index.load(data.index); 18 | }) 19 | .fail(function(jqxhr, textStatus, error) { 20 | var err = textStatus + ", " + error; 21 | console.error("Error getting lunr-index.json: ", err); 22 | }); 23 | } 24 | 25 | /** 26 | * Trigger a search in lunr and transform the result 27 | * 28 | * @param {String} query 29 | * @return {Array} results 30 | */ 31 | function search(query) { 32 | // Find the item in our index corresponding to the lunr one to have more info 33 | return lunrIndex.search(query).map(function(result) { 34 | return pagesIndex.filter(function(page) { 35 | return page.uri === result.ref; 36 | })[0]; 37 | }); 38 | } 39 | 40 | // Let's get started 41 | initLunr(); 42 | $( document ).ready(function() { 43 | var horseyList = horsey($("#search-by").get(0), { 44 | suggestions: function (value, done) { 45 | var query = $("#search-by").val(); 46 | var results = search(query); 47 | done(results); 48 | }, 49 | filter: function (q, suggestion) { 50 | return true; 51 | }, 52 | set: function (value) { 53 | location.href=value.uri; 54 | }, 55 | render: function (li, suggestion) { 56 | var uri = suggestion.uri.substring(1,suggestion.uri.length); 57 | 58 | suggestion.href = baseurl + uri; 59 | 60 | var query = $("#search-by").val(); 61 | var numWords = 2; 62 | var text = suggestion.content.match("(?:\\s?(?:[\\w]+)\\s?){0,"+numWords+"}"+query+"(?:\\s?(?:[\\w]+)\\s?){0,"+numWords+"}"); 63 | suggestion.context = text; 64 | var image = '
    ' + '» ' + suggestion.title + '
    ' + (suggestion.context || '') +'
    '; 65 | li.innerHTML = image; 66 | }, 67 | limit: 10 68 | }); 69 | horseyList.refreshPosition(); 70 | }); 71 | -------------------------------------------------------------------------------- /static/revealjs/test/examples/slide-transitions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Transitions 8 | 9 | 10 | 11 | 21 | 22 | 23 | 24 | 25 |
    26 | 27 |
    28 | 29 |
    30 |

    Default

    31 |
    32 | 33 |
    34 |

    Default

    35 |
    36 | 37 |
    38 |

    data-transition: zoom

    39 |
    40 | 41 |
    42 |

    data-transition: zoom-in fade-out

    43 |
    44 | 45 |
    46 |

    Default

    47 |
    48 | 49 |
    50 |

    data-transition: convex

    51 |
    52 | 53 |
    54 |

    data-transition: convex-in concave-out

    55 |
    56 | 57 |
    58 |
    59 |

    Default

    60 |
    61 |
    62 |

    data-transition: concave

    63 |
    64 |
    65 |

    data-transition: convex-in fade-out

    66 |
    67 |
    68 |

    Default

    69 |
    70 |
    71 | 72 |
    73 |

    data-transition: none

    74 |
    75 | 76 |
    77 |

    Default

    78 |
    79 | 80 |
    81 | 82 |
    83 | 84 | 85 | 86 | 87 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /static/js/hugo-learn.js: -------------------------------------------------------------------------------- 1 | // Get Parameters from some url 2 | var getUrlParameter = function getUrlParameter(sPageURL) { 3 | var url = sPageURL.split('?'); 4 | var obj = {}; 5 | if (url.length == 2) { 6 | var sURLVariables = url[1].split('&'), 7 | sParameterName, 8 | i; 9 | for (i = 0; i < sURLVariables.length; i++) { 10 | sParameterName = sURLVariables[i].split('='); 11 | obj[sParameterName[0]] = sParameterName[1]; 12 | } 13 | return obj; 14 | } else { 15 | return undefined; 16 | } 17 | }; 18 | 19 | // Execute actions on images generated from Markdown pages 20 | var images = $("div#body-inner img").not(".inline"); 21 | // Wrap image inside a featherlight (to get a full size view in a popup) 22 | images.wrap(function(){ 23 | var image =$(this); 24 | if (!image.parent("a").length) { 25 | return ""; 26 | } 27 | }); 28 | 29 | // Change styles, depending on parameters set to the image 30 | images.each(function(index){ 31 | var image = $(this) 32 | var o = getUrlParameter(image[0].src); 33 | if (typeof o !== "undefined") { 34 | var h = o["height"]; 35 | var w = o["width"]; 36 | var c = o["classes"]; 37 | image.css("width", function() { 38 | if (typeof w !== "undefined") { 39 | return w; 40 | } else { 41 | return "auto"; 42 | } 43 | }); 44 | image.css("height", function() { 45 | if (typeof h !== "undefined") { 46 | return h; 47 | } else { 48 | return "auto"; 49 | } 50 | }); 51 | if (typeof c !== "undefined") { 52 | var classes = c.split(','); 53 | for (i = 0; i < classes.length; i++) { 54 | image.addClass(classes[i]); 55 | } 56 | } 57 | } 58 | }); 59 | 60 | jQuery(document).ready(function() { 61 | // Add link button for every 62 | var text, clip = new Clipboard('.anchor'); 63 | $("h1~h2,h1~h3,h1~h4,h1~h5,h1~h6").append(function(index, html){ 64 | var element = $(this); 65 | var url = document.location.origin + document.location.pathname; 66 | var link = url + "#"+element[0].id; 67 | return " " + 68 | "" + 69 | "" 70 | ; 71 | }); 72 | 73 | $(".anchor").on('mouseleave', function(e) { 74 | $(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w'); 75 | }); 76 | 77 | clip.on('success', function(e) { 78 | e.clearSelection(); 79 | $(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s'); 80 | }); 81 | 82 | }); 83 | -------------------------------------------------------------------------------- /static/js/jquery.sticky-kit.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net 3 | */ 4 | (function(){var b,f;b=this.jQuery||window.jQuery;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k)); 5 | if(!g.length)throw"failed to find stick parent";v=m=!1;(h=null!=p?p&&a.closest(p):b("
    "))&&h.css("position",a.css("position"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),d=parseInt(g.css("padding-bottom"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q, 6 | u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom"))),eb&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+"px"})))):e>F&&(m=!0,b={position:"fixed",top:c},b.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(b).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+c>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}), 8 | a.css({position:"absolute",bottom:d,top:"auto"}).trigger("sticky_kit:bottom")},y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);b(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize", 9 | y),b(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,0)}};n=0;for(K=this.length;nsection>section' ).length, 4, 'found four slides' ); 9 | }); 10 | 11 | 12 | test( 'Attributes on element header in vertical slides', function() { 13 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' ); 14 | strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' ); 15 | }); 16 | 17 | test( 'Attributes on element paragraphs in vertical slides', function() { 18 | strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' ); 19 | }); 20 | 21 | test( 'Attributes on element list items in vertical slides', function() { 22 | strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' ); 23 | }); 24 | 25 | test( 'Attributes on element paragraphs in horizontal slides', function() { 26 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' ); 27 | }); 28 | test( 'Attributes on element list items in horizontal slides', function() { 29 | strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' ); 30 | }); 31 | test( 'Attributes on element list items in horizontal slides', function() { 32 | strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' ); 33 | }); 34 | 35 | test( 'Attributes on elements in vertical slides with default element attribute separator', function() { 36 | strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' ); 37 | }); 38 | 39 | test( 'Attributes on elements in single slides with default element attribute separator', function() { 40 | strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' ); 41 | }); 42 | 43 | } ); 44 | 45 | Reveal.initialize(); 46 | 47 | -------------------------------------------------------------------------------- /layouts/shortcodes/revealjs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | 6 | 7 | 8 |
    9 |
    10 |
    15 | {{ .Inner | safeHTML}} 16 |
    17 |
    18 |
    19 | 20 | 21 | 22 | 46 |
    47 |
  • See it fullscreen
  • 48 | 49 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-slide-attributes.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | Reveal.addEventListener( 'ready', function() { 4 | 5 | QUnit.module( 'Markdown' ); 6 | 7 | test( 'Vertical separator', function() { 8 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 6, 'found six vertical slides' ); 9 | }); 10 | 11 | test( 'Id on slide', function() { 12 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section#slide2' ).length, 1, 'found one slide with id slide2' ); 13 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section a[href="#/slide2"]' ).length, 1, 'found one slide with a link to slide2' ); 14 | }); 15 | 16 | test( 'data-background attributes', function() { 17 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A0C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 18 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#ff0000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 19 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C6916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 20 | }); 21 | 22 | test( 'data-transition attributes', function() { 23 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="zoom"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 24 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="fade"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 25 | strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="zoom"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 26 | }); 27 | 28 | test( 'data-background attributes with default separator', function() { 29 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A7C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 30 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#f70000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 31 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C7916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 32 | }); 33 | 34 | test( 'data-transition attributes with default separator', function() { 35 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="concave"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 36 | strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 37 | strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 38 | }); 39 | 40 | test( 'data-transition attributes with inline content', function() { 41 | strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' ); 42 | }); 43 | 44 | } ); 45 | 46 | Reveal.initialize(); 47 | 48 | -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-slide-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /static/js/html5shiv-printshiv.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed 3 | */ 4 | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=x.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=w[a[u]];return b||(b={},v++,a[u]=v,w[v]=b),b}function f(a,c,d){if(c||(c=b),p)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():t.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||s.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),p)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return x.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(x,b.frag)}function i(a){a||(a=b);var d=e(a);return!x.shivCSS||o||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||h(a,d),a}function j(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(k(b)));return g}function k(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(z+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function l(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+z+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function m(a){for(var b=a.length;b--;)a[b].removeNode()}function n(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,f,g=e(a),h=a.namespaces,i=a.parentWindow;return!A||a.printShived?a:("undefined"==typeof h[z]&&h.add(z),i.attachEvent("onbeforeprint",function(){b();for(var e,g,h,i=a.styleSheets,k=[],m=i.length,n=Array(m);m--;)n[m]=i[m];for(;h=n.pop();)if(!h.disabled&&y.test(h.media)){try{e=h.imports,g=e.length}catch(o){g=0}for(m=0;g>m;m++)n.push(e[m]);try{k.push(h.cssText)}catch(o){}}k=l(k.reverse().join("")),f=j(a),d=c(a,k)}),i.attachEvent("onafterprint",function(){m(f),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var o,p,q="3.7.0",r=a.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,t=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",v=0,w={};!function(){try{var a=b.createElement("a");a.innerHTML="",o="hidden"in a,p=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){o=!0,p=!0}}();var x={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:q,shivCSS:r.shivCSS!==!1,supportsUnknownElements:p,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=x,i(b);var y=/^$|\b(?:all|print)\b/,z="html5shiv",A=!p&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();x.type+=" print",x.shivPrint=n,n(b)}(this,document); -------------------------------------------------------------------------------- /static/revealjs/test/test-markdown-element-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Element Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
    16 |
    17 | 18 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /static/revealjs/css/print/pdf.css: -------------------------------------------------------------------------------- 1 | /** 2 | * This stylesheet is used to print reveal.js 3 | * presentations to PDF. 4 | * 5 | * https://github.com/hakimel/reveal.js#pdf-export 6 | */ 7 | 8 | * { 9 | -webkit-print-color-adjust: exact; 10 | } 11 | 12 | body { 13 | margin: 0 auto !important; 14 | border: 0; 15 | padding: 0; 16 | float: none !important; 17 | overflow: visible; 18 | } 19 | 20 | html { 21 | width: 100%; 22 | height: 100%; 23 | overflow: visible; 24 | } 25 | 26 | /* Remove any elements not needed in print. */ 27 | .nestedarrow, 28 | .reveal .controls, 29 | .reveal .progress, 30 | .reveal .playback, 31 | .reveal.overview, 32 | .fork-reveal, 33 | .share-reveal, 34 | .state-background { 35 | display: none !important; 36 | } 37 | 38 | h1, h2, h3, h4, h5, h6 { 39 | text-shadow: 0 0 0 #000 !important; 40 | } 41 | 42 | .reveal pre code { 43 | overflow: hidden !important; 44 | font-family: Courier, 'Courier New', monospace !important; 45 | } 46 | 47 | ul, ol, div, p { 48 | visibility: visible; 49 | position: static; 50 | width: auto; 51 | height: auto; 52 | display: block; 53 | overflow: visible; 54 | margin: auto; 55 | } 56 | .reveal { 57 | width: auto !important; 58 | height: auto !important; 59 | overflow: hidden !important; 60 | } 61 | .reveal .slides { 62 | position: static; 63 | width: 100% !important; 64 | height: auto !important; 65 | zoom: 1 !important; 66 | 67 | left: auto; 68 | top: auto; 69 | margin: 0 !important; 70 | padding: 0 !important; 71 | 72 | overflow: visible; 73 | display: block; 74 | 75 | -webkit-perspective: none; 76 | -moz-perspective: none; 77 | -ms-perspective: none; 78 | perspective: none; 79 | 80 | -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */ 81 | -moz-perspective-origin: 50% 50%; 82 | -ms-perspective-origin: 50% 50%; 83 | perspective-origin: 50% 50%; 84 | } 85 | 86 | .reveal .slides .pdf-page { 87 | position: relative; 88 | overflow: hidden; 89 | z-index: 1; 90 | } 91 | 92 | .reveal .slides section { 93 | page-break-after: always !important; 94 | 95 | visibility: visible !important; 96 | display: block !important; 97 | position: relative !important; 98 | 99 | margin: 0 !important; 100 | padding: 0 !important; 101 | box-sizing: border-box !important; 102 | min-height: 1px; 103 | 104 | opacity: 1 !important; 105 | 106 | -webkit-transform-style: flat !important; 107 | -moz-transform-style: flat !important; 108 | -ms-transform-style: flat !important; 109 | transform-style: flat !important; 110 | 111 | -webkit-transform: none !important; 112 | -moz-transform: none !important; 113 | -ms-transform: none !important; 114 | transform: none !important; 115 | } 116 | 117 | .reveal section.stack { 118 | margin: 0 !important; 119 | padding: 0 !important; 120 | page-break-after: avoid !important; 121 | height: auto !important; 122 | min-height: auto !important; 123 | } 124 | 125 | .reveal img { 126 | box-shadow: none; 127 | } 128 | 129 | .reveal .roll { 130 | overflow: visible; 131 | line-height: 1em; 132 | } 133 | 134 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */ 135 | .reveal .slide-background { 136 | display: block !important; 137 | position: absolute; 138 | top: 0; 139 | left: 0; 140 | width: 100%; 141 | height: 100%; 142 | z-index: auto !important; 143 | } 144 | 145 | /* Display slide speaker notes when 'showNotes' is enabled */ 146 | .reveal .speaker-notes-pdf { 147 | display: block; 148 | width: 100%; 149 | max-height: none; 150 | top: auto; 151 | right: auto; 152 | bottom: auto; 153 | left: auto; 154 | z-index: 100; 155 | } 156 | 157 | /* Layout option which makes notes appear on a separate page */ 158 | .reveal .speaker-notes-pdf[data-layout="separate-page"] { 159 | position: relative; 160 | color: inherit; 161 | background-color: transparent; 162 | padding: 20px; 163 | page-break-after: always; 164 | } 165 | 166 | /* Display slide numbers when 'slideNumber' is enabled */ 167 | .reveal .slide-number-pdf { 168 | display: block; 169 | position: absolute; 170 | font-size: 14px; 171 | } 172 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | {{ partial "meta.html" . }} 7 | {{if .IsHome}} 8 | Altinn digitalisering - Utvikling 9 | {{else}} 10 | {{ .Title }} :: Altinn digitalisering - Utvikling 11 | {{end}} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | {{with .Site.Params.themeStyle}} 20 | 21 | {{else}} 22 | 23 | {{end}} 24 | {{with .Site.Params.themeVariant}} 25 | 26 | {{end}} 27 | 28 | 29 | 30 | {{ partial "custom-head.html" . }} 31 | 32 | 37 | 38 | 39 | 40 | 41 | {{ partial "topbar.html" . }} 42 | 43 | {{ if and (.IsHome) (.Params.jumbotron) }} 44 | {{ partial "jumbotron.html" . }} 45 | {{end}} 46 | 47 |
    48 |
    49 |
    50 |
    51 | 52 | {{ partial "menu.html" . }} 53 |
    54 |
    55 |
    56 |
    57 | {{if not .IsHome}} 58 |
    59 | 60 | 61 | 75 |
    76 | {{end}} 77 | {{if .Params.tags }} 78 |
    79 | {{ range $index, $tag := .Params.tags }} 80 | {{ $tag }} 81 | {{ end }} 82 |
    83 | {{end}} 84 |
    85 | {{if not .IsHome}} 86 | {{if eq .Kind "taxonomy"}} 87 |

    Tag: {{.Title}}

    88 | {{else}} 89 |

    90 | {{.Title}} 91 | {{if .Params.titleSup }} 92 | {{.Params.titleSup}} 93 | {{end}} 94 |

    95 |

    {{.Description}}

    96 | {{end}} 97 | {{end}} 98 | 99 | {{ if and (gt .WordCount 100 ) (.Params.toc) }} 100 |

    På denne siden:

    101 | {{ .TableOfContents }} 102 | {{ end }} 103 | 104 | {{define "breadcrumb"}} 105 | {{ if .page.Parent}} 106 | {{$value := (printf "%s / %s" .page.Parent.URL .page.Parent.LinkTitle .value)}} 107 | {{ template "breadcrumb" dict "page" .page.Parent "value" $value }} 108 | {{else}} 109 | {{.value|safeHTML}} 110 | {{end}} 111 | {{end}} 112 | -------------------------------------------------------------------------------- /static/revealjs/lib/font/source-sans-pro/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License 2 | 3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 4 | 5 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 7 | 8 | —————————————————————————————- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | —————————————————————————————- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 14 | 15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 16 | 17 | DEFINITIONS 18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 19 | 20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s). 21 | 22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). 23 | 24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 25 | 26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 27 | 28 | PERMISSION & CONDITIONS 29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 30 | 31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 32 | 33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 34 | 35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 36 | 37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 38 | 39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 40 | 41 | TERMINATION 42 | This license becomes null and void if any of the above conditions are not met. 43 | 44 | DISCLAIMER 45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /layouts/shortcodes/children.html: -------------------------------------------------------------------------------- 1 | {{ $showhidden := .Get "showhidden"}} 2 | {{ $style := .Get "style" | default "li" }} 3 | {{ $depth := .Get "depth" | default 1 }} 4 | {{ $withDescription := .Get "description" | default false }} 5 | {{ $sortTerm := .Get "sort" | default "Weight" }} 6 | 7 | {{ .Scratch.Set "current" .Page }} 8 | 9 | {{if (.Get "page")}} 10 | {{ with .Site.GetPage "section" (.Get "page") }} 11 | {{ $.Scratch.Set "current" . }} 12 | {{ end }} 13 | {{ end }} 14 | 15 | {{ $cpage := (.Scratch.Get "current") }} 16 | 17 |
      18 | {{ .Scratch.Set "pages" $cpage.Pages }} 19 | {{ if $cpage.Sections}} 20 | {{ .Scratch.Set "pages" ($cpage.Pages | union $cpage.Sections) }} 21 | {{end}} 22 | {{ $pages := (.Scratch.Get "pages") }} 23 | 24 | {{if eq $sortTerm "Weight"}} 25 | {{template "childs" dict "menu" $pages.ByWeight "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 26 | {{else if eq $sortTerm "Name"}} 27 | {{template "childs" dict "menu" $pages.ByTitle "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 28 | {{else if eq $sortTerm "PublishDate"}} 29 | {{template "childs" dict "menu" $pages.ByPublishDate "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 30 | {{else if eq $sortTerm "Date"}} 31 | {{template "childs" dict "menu" $pages.ByDate "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 32 | {{else if eq $sortTerm "Length"}} 33 | {{template "childs" dict "menu" $pages.ByLength "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 34 | {{else}} 35 | {{template "childs" dict "menu" $pages "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}} 36 | {{end}} 37 |
    38 | 39 | {{.Inner|safeHTML}} 40 | 41 | {{ define "childs" }} 42 | {{ range .menu }} 43 | {{ if and .Params.hidden (not $.showhidden) }} 44 | {{else}} 45 | 46 | 47 | {{if hasPrefix $.style "h"}} 48 | {{$num := sub ( int (trim $.style "h") ) 1 }} 49 | {{$numn := add $num $.count }} 50 | 51 | {{(printf "" $numn)|safeHTML}} 52 | {{ .Title }} 53 | {{(printf "" $numn)|safeHTML}} 54 | 55 | {{else}} 56 | {{(printf "<%s>" $.style)|safeHTML}} 57 | {{ .Title }} 58 |

    {{.Description}}

    59 | {{(printf "" $.style)|safeHTML}} 60 | {{end}} 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | {{ if lt $.count $.depth}} 70 | {{if eq $.style "li"}} 71 |
      72 | {{end}} 73 | {{ .Scratch.Set "pages" .Pages }} 74 | {{ if .Sections}} 75 | {{ .Scratch.Set "pages" (.Pages | union .Sections) }} 76 | {{end}} 77 | {{ $pages := (.Scratch.Get "pages") }} 78 | 79 | {{if eq $.sortTerm "Weight"}} 80 | {{template "childs" dict "menu" $pages.ByWeight "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 81 | {{else if eq $.sortTerm "Name"}} 82 | {{template "childs" dict "menu" $pages.ByTitle "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 83 | {{else if eq $.sortTerm "PublishDate"}} 84 | {{template "childs" dict "menu" $pages.ByPublishDate "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 85 | {{else if eq $.sortTerm "Date"}} 86 | {{template "childs" dict "menu" $pages.ByDate "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 87 | {{else if eq $.sortTerm "Length"}} 88 | {{template "childs" dict "menu" $pages.ByLength "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 89 | {{else}} 90 | {{template "childs" dict "menu" $pages "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}} 91 | {{end}} 92 | {{if eq $.style "li"}} 93 |
    94 | {{end}} 95 | {{end}} 96 | 97 | {{end}} 98 | {{end}} 99 | {{end}} -------------------------------------------------------------------------------- /layouts/partials/menu.html: -------------------------------------------------------------------------------- 1 | 51 | 52 | 53 | {{ define "section-tree-nav" }} 54 | {{ $showvisitedlinks := .showvisitedlinks }} 55 | {{ $currentNode := .currentnode }} 56 | {{with .sect}} 57 | {{if .IsSection}} 58 | {{safeHTML .Params.head}} 59 |
  • 64 | 65 | {{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}} 66 | 67 | {{if .Params.titleSup }} 68 | {{.Params.titleSup}} 69 | {{end}} 70 | 71 | {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} 72 | {{ if ne $numberOfPages 0 }} 73 | 74 | {{if or (.IsAncestor $currentNode) (.Params.alwaysopen) }} 75 | 76 | {{else}} 77 | 78 | {{end}} 79 | 80 | {{ end }} 81 | 82 | {{ if $showvisitedlinks}}{{end}} 83 | 84 | {{ if ne $numberOfPages 0 }} 85 |
      86 | {{ .Scratch.Set "pages" .Pages }} 87 | {{ if .Sections}} 88 | {{ .Scratch.Set "pages" (.Pages | union .Sections) }} 89 | {{end}} 90 | {{ $pages := (.Scratch.Get "pages") }} 91 | 92 | {{if eq .Site.Params.ordersectionsby "title"}} 93 | {{ range $pages.ByTitle }} 94 | {{ if and .Params.hidden (not $.showhidden) }} 95 | {{else}} 96 | {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} 97 | {{end}} 98 | {{ end }} 99 | {{else}} 100 | {{ range $pages.ByWeight }} 101 | {{ if and .Params.hidden (not $.showhidden) }} 102 | {{else}} 103 | {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }} 104 | {{end}} 105 | {{ end }} 106 | {{end}} 107 |
    108 | {{ end }} 109 |
  • 110 | {{else}} 111 | {{ if not .Params.Hidden }} 112 |
  • 115 | 116 | {{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}} 117 | {{ if $showvisitedlinks}}{{end}} 118 |
  • 119 | {{ end }} 120 | {{end}} 121 | {{ end }} 122 | {{ end }} 123 | -------------------------------------------------------------------------------- /exampleSite/layouts/partials/topbar.html: -------------------------------------------------------------------------------- 1 | 7 | 8 |
    9 | 10 |
    11 |
    12 |
    13 | 14 | 15 | 62 | 74 |
    75 |
    76 |
    77 |
    78 | 79 | 80 | 81 |
    82 |
    83 |
    84 |
    85 |
    86 |
    87 |
    88 | 89 |
    90 | 91 |
    92 | 96 |
    97 |
    98 |
    99 |
    100 |
    101 |
    102 |
    103 |
    104 |
    -------------------------------------------------------------------------------- /static/revealjs/test/examples/slide-backgrounds.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Backgrounds 8 | 9 | 10 | 11 | 12 | 13 | 23 | 24 | 25 | 26 | 27 |
    28 | 29 |
    30 | 31 |
    32 |

    data-background: #00ffff

    33 |
    34 | 35 |
    36 |

    data-background: #bb00bb

    37 |
    38 | 39 |
    40 |

    data-background: lightblue

    41 |
    42 | 43 |
    44 |
    45 |

    data-background: #ff0000

    46 |
    47 |
    48 |

    data-background: rgba(0, 0, 0, 0.2)

    49 |
    50 |
    51 |

    data-background: salmon

    52 |
    53 |
    54 | 55 |
    56 |
    57 |

    Background applied to stack

    58 |
    59 |
    60 |

    Background applied to stack

    61 |
    62 |
    63 |

    Background applied to slide inside of stack

    64 |
    65 |
    66 | 67 |
    68 |

    Background image

    69 |
    70 | 71 |
    72 |
    73 |

    Background image

    74 |
    75 |
    76 |

    Background image

    77 |
    78 |
    79 | 80 |
    81 |

    Background image

    82 |
    data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"
    83 |
    84 | 85 |
    86 |

    Same background twice (1/2)

    87 |
    88 |
    89 |

    Same background twice (2/2)

    90 |
    91 | 92 |
    93 |

    Video background

    94 |
    95 | 96 |
    97 |

    Iframe background

    98 |
    99 | 100 |
    101 |
    102 |

    Same background twice vertical (1/2)

    103 |
    104 |
    105 |

    Same background twice vertical (2/2)

    106 |
    107 |
    108 | 109 |
    110 |

    Same background from horizontal to vertical (1/3)

    111 |
    112 |
    113 |
    114 |

    Same background from horizontal to vertical (2/3)

    115 |
    116 |
    117 |

    Same background from horizontal to vertical (3/3)

    118 |
    119 |
    120 | 121 |
    122 | 123 |
    124 | 125 | 126 | 127 | 128 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /static/revealjs/plugin/markdown/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Markdown Demo 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 |
    20 | 21 | 22 |
    23 | 24 | 25 |
    26 | 36 |
    37 | 38 | 39 |
    40 | 54 |
    55 | 56 | 57 |
    58 | 69 |
    70 | 71 | 72 |
    73 | 77 |
    78 | 79 | 80 |
    81 | 86 |
    87 | 88 | 89 |
    90 | 100 |
    101 | 102 |
    103 |
    104 | 105 | 106 | 107 | 108 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /static/images/adocs-logo-white.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /static/images/a-logo-white.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | altinn-logo-white 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /static/revealjs/plugin/notes/notes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Handles opening of and synchronization with the reveal.js 3 | * notes window. 4 | * 5 | * Handshake process: 6 | * 1. This window posts 'connect' to notes window 7 | * - Includes URL of presentation to show 8 | * 2. Notes window responds with 'connected' when it is available 9 | * 3. This window proceeds to send the current presentation state 10 | * to the notes window 11 | */ 12 | var RevealNotes = (function() { 13 | 14 | function openNotes( notesFilePath ) { 15 | 16 | if( !notesFilePath ) { 17 | var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path 18 | jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path 19 | notesFilePath = jsFileLocation + 'notes.html'; 20 | } 21 | 22 | var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' ); 23 | 24 | /** 25 | * Connect to the notes window through a postmessage handshake. 26 | * Using postmessage enables us to work in situations where the 27 | * origins differ, such as a presentation being opened from the 28 | * file system. 29 | */ 30 | function connect() { 31 | // Keep trying to connect until we get a 'connected' message back 32 | var connectInterval = setInterval( function() { 33 | notesPopup.postMessage( JSON.stringify( { 34 | namespace: 'reveal-notes', 35 | type: 'connect', 36 | url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search, 37 | state: Reveal.getState() 38 | } ), '*' ); 39 | }, 500 ); 40 | 41 | window.addEventListener( 'message', function( event ) { 42 | var data = JSON.parse( event.data ); 43 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) { 44 | clearInterval( connectInterval ); 45 | onConnected(); 46 | } 47 | } ); 48 | } 49 | 50 | /** 51 | * Posts the current slide data to the notes window 52 | */ 53 | function post(event) { 54 | 55 | var slideElement = Reveal.getCurrentSlide(), 56 | notesElement = slideElement.querySelector( 'aside.notes' ); 57 | 58 | var messageData = { 59 | namespace: 'reveal-notes', 60 | type: 'state', 61 | notes: '', 62 | markdown: false, 63 | whitespace: 'normal', 64 | state: Reveal.getState() 65 | }; 66 | 67 | // Look for notes defined in a fragment, if it is a fragmentshown event 68 | if (event && event.hasOwnProperty('fragment')) { 69 | var innerNotes = event.fragment.querySelector( 'aside.notes' ); 70 | 71 | if ( innerNotes) { 72 | notesElement = innerNotes; 73 | } 74 | } 75 | 76 | // Look for notes defined in a slide attribute 77 | if( slideElement.hasAttribute( 'data-notes' ) ) { 78 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 79 | messageData.whitespace = 'pre-wrap'; 80 | } 81 | 82 | // Look for notes defined in an aside element 83 | if( notesElement ) { 84 | messageData.notes = notesElement.innerHTML; 85 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string'; 86 | } 87 | 88 | notesPopup.postMessage( JSON.stringify( messageData ), '*' ); 89 | 90 | } 91 | 92 | /** 93 | * Called once we have established a connection to the notes 94 | * window. 95 | */ 96 | function onConnected() { 97 | 98 | // Monitor events that trigger a change in state 99 | Reveal.addEventListener( 'slidechanged', post ); 100 | Reveal.addEventListener( 'fragmentshown', post ); 101 | Reveal.addEventListener( 'fragmenthidden', post ); 102 | Reveal.addEventListener( 'overviewhidden', post ); 103 | Reveal.addEventListener( 'overviewshown', post ); 104 | Reveal.addEventListener( 'paused', post ); 105 | Reveal.addEventListener( 'resumed', post ); 106 | 107 | // Post the initial state 108 | post(); 109 | 110 | } 111 | 112 | connect(); 113 | 114 | } 115 | 116 | if( !/receiver/i.test( window.location.search ) ) { 117 | 118 | // If the there's a 'notes' query set, open directly 119 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) { 120 | openNotes(); 121 | } 122 | 123 | // Open the notes when the 's' key is hit 124 | document.addEventListener( 'keydown', function( event ) { 125 | // Disregard the event if the target is editable or a 126 | // modifier is present 127 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return; 128 | 129 | // Disregard the event if keyboard is disabled 130 | if ( Reveal.getConfig().keyboard === false ) return; 131 | 132 | if( event.keyCode === 83 ) { 133 | event.preventDefault(); 134 | openNotes(); 135 | } 136 | }, false ); 137 | 138 | // Show our keyboard shortcut in the reveal.js help overlay 139 | if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' ); 140 | 141 | } 142 | 143 | return { open: openNotes }; 144 | 145 | })(); 146 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 2 |
    3 |
    4 | 5 | 47 | 48 | 49 |
    50 | 51 | {{ if and (or .IsPage .IsSection) .Site.Params.editURL }} 52 | {{ $File := .File }} 53 | {{ $Site := .Site }} 54 | {{with $File.Path }} 55 | 61 | {{ end }} 62 | {{ end }} 63 | 64 |
    65 | 66 | 67 |
    68 |
    69 |
    70 |
    71 | 72 | {{ partial "footer-content.html" . }} 73 | 74 |
    75 |
    76 |
    77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 100 | 101 | 102 | 103 | 104 | 105 | {{ partial "custom-footer.html" . }} 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /static/mermaid/mermaid.css: -------------------------------------------------------------------------------- 1 | /* Flowchart variables */ 2 | /* Sequence Diagram variables */ 3 | /* Gantt chart variables */ 4 | .mermaid .label { 5 | color: #333; 6 | } 7 | .node rect, 8 | .node circle, 9 | .node ellipse, 10 | .node polygon { 11 | fill: #ECECFF; 12 | stroke: #CCCCFF; 13 | stroke-width: 1px; 14 | } 15 | .edgePath .path { 16 | stroke: #333333; 17 | } 18 | .edgeLabel { 19 | background-color: #e8e8e8; 20 | } 21 | .cluster rect { 22 | fill: #ffffde !important; 23 | rx: 4 !important; 24 | stroke: #aaaa33 !important; 25 | stroke-width: 1px !important; 26 | } 27 | .cluster text { 28 | fill: #333; 29 | } 30 | .actor { 31 | stroke: #CCCCFF; 32 | fill: #ECECFF; 33 | } 34 | text.actor { 35 | fill: black; 36 | stroke: none; 37 | } 38 | .actor-line { 39 | stroke: grey; 40 | } 41 | .messageLine0 { 42 | stroke-width: 1.5; 43 | stroke-dasharray: "2 2"; 44 | marker-end: "url(#arrowhead)"; 45 | stroke: #333; 46 | } 47 | .messageLine1 { 48 | stroke-width: 1.5; 49 | stroke-dasharray: "2 2"; 50 | stroke: #333; 51 | } 52 | #arrowhead { 53 | fill: #333; 54 | } 55 | #crosshead path { 56 | fill: #333 !important; 57 | stroke: #333 !important; 58 | } 59 | .messageText { 60 | fill: #333; 61 | stroke: none; 62 | } 63 | .labelBox { 64 | stroke: #CCCCFF; 65 | fill: #ECECFF; 66 | } 67 | .labelText { 68 | fill: black; 69 | stroke: none; 70 | } 71 | .loopText { 72 | fill: black; 73 | stroke: none; 74 | } 75 | .loopLine { 76 | stroke-width: 2; 77 | stroke-dasharray: "2 2"; 78 | marker-end: "url(#arrowhead)"; 79 | stroke: #CCCCFF; 80 | } 81 | .note { 82 | stroke: #aaaa33; 83 | fill: #fff5ad; 84 | } 85 | .noteText { 86 | fill: black; 87 | stroke: none; 88 | font-family: 'trebuchet ms', verdana, arial; 89 | font-size: 14px; 90 | } 91 | /** Section styling */ 92 | .section { 93 | stroke: none; 94 | opacity: 0.2; 95 | } 96 | .section0 { 97 | fill: rgba(102, 102, 255, 0.49); 98 | } 99 | .section2 { 100 | fill: #fff400; 101 | } 102 | .section1, 103 | .section3 { 104 | fill: white; 105 | opacity: 0.2; 106 | } 107 | .sectionTitle0 { 108 | fill: #333; 109 | } 110 | .sectionTitle1 { 111 | fill: #333; 112 | } 113 | .sectionTitle2 { 114 | fill: #333; 115 | } 116 | .sectionTitle3 { 117 | fill: #333; 118 | } 119 | .sectionTitle { 120 | text-anchor: start; 121 | font-size: 11px; 122 | text-height: 14px; 123 | } 124 | /* Grid and axis */ 125 | .grid .tick { 126 | stroke: lightgrey; 127 | opacity: 0.3; 128 | shape-rendering: crispEdges; 129 | } 130 | .grid path { 131 | stroke-width: 0; 132 | } 133 | /* Today line */ 134 | .today { 135 | fill: none; 136 | stroke: red; 137 | stroke-width: 2px; 138 | } 139 | /* Task styling */ 140 | /* Default task */ 141 | .task { 142 | stroke-width: 2; 143 | } 144 | .taskText { 145 | text-anchor: middle; 146 | font-size: 11px; 147 | } 148 | .taskTextOutsideRight { 149 | fill: black; 150 | text-anchor: start; 151 | font-size: 11px; 152 | } 153 | .taskTextOutsideLeft { 154 | fill: black; 155 | text-anchor: end; 156 | font-size: 11px; 157 | } 158 | /* Specific task settings for the sections*/ 159 | .taskText0, 160 | .taskText1, 161 | .taskText2, 162 | .taskText3 { 163 | fill: white; 164 | } 165 | .task0, 166 | .task1, 167 | .task2, 168 | .task3 { 169 | fill: #8a90dd; 170 | stroke: #534fbc; 171 | } 172 | .taskTextOutside0, 173 | .taskTextOutside2 { 174 | fill: black; 175 | } 176 | .taskTextOutside1, 177 | .taskTextOutside3 { 178 | fill: black; 179 | } 180 | /* Active task */ 181 | .active0, 182 | .active1, 183 | .active2, 184 | .active3 { 185 | fill: #bfc7ff; 186 | stroke: #534fbc; 187 | } 188 | .activeText0, 189 | .activeText1, 190 | .activeText2, 191 | .activeText3 { 192 | fill: black !important; 193 | } 194 | /* Completed task */ 195 | .done0, 196 | .done1, 197 | .done2, 198 | .done3 { 199 | stroke: grey; 200 | fill: lightgrey; 201 | stroke-width: 2; 202 | } 203 | .doneText0, 204 | .doneText1, 205 | .doneText2, 206 | .doneText3 { 207 | fill: black !important; 208 | } 209 | /* Tasks on the critical line */ 210 | .crit0, 211 | .crit1, 212 | .crit2, 213 | .crit3 { 214 | stroke: #ff8888; 215 | fill: red; 216 | stroke-width: 2; 217 | } 218 | .activeCrit0, 219 | .activeCrit1, 220 | .activeCrit2, 221 | .activeCrit3 { 222 | stroke: #ff8888; 223 | fill: #bfc7ff; 224 | stroke-width: 2; 225 | } 226 | .doneCrit0, 227 | .doneCrit1, 228 | .doneCrit2, 229 | .doneCrit3 { 230 | stroke: #ff8888; 231 | fill: lightgrey; 232 | stroke-width: 2; 233 | cursor: pointer; 234 | shape-rendering: crispEdges; 235 | } 236 | .doneCritText0, 237 | .doneCritText1, 238 | .doneCritText2, 239 | .doneCritText3 { 240 | fill: black !important; 241 | } 242 | .activeCritText0, 243 | .activeCritText1, 244 | .activeCritText2, 245 | .activeCritText3 { 246 | fill: black !important; 247 | } 248 | .titleText { 249 | text-anchor: middle; 250 | font-size: 18px; 251 | fill: black; 252 | } 253 | /* 254 | 255 | 256 | */ 257 | .node text { 258 | font-family: 'trebuchet ms', verdana, arial; 259 | font-size: 14px; 260 | } 261 | div.mermaidTooltip { 262 | position: absolute; 263 | text-align: center; 264 | max-width: 200px; 265 | padding: 2px; 266 | font-family: 'trebuchet ms', verdana, arial; 267 | font-size: 12px; 268 | background: #ffffde; 269 | border: 1px solid #aaaa33; 270 | border-radius: 2px; 271 | pointer-events: none; 272 | z-index: 100; 273 | } 274 | --------------------------------------------------------------------------------