Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cb3c45ab1 | ||
|
|
de68c2076e | ||
| 24350fe264 | |||
| 15e7abf0bc | |||
|
|
ac2918610b | ||
|
|
52aff02eb8 | ||
|
|
5a9d41193a | ||
| ac3c4fff42 | |||
| 8cc875dac8 | |||
| 737a47ce1e | |||
| bb13938cca | |||
| 96358bf61a | |||
| 24119fc714 | |||
| 96f65fa07c | |||
| d4576532e9 | |||
| 9f25e5698c | |||
| 1d62b89980 | |||
| ecadc6aac8 | |||
| 3f7bd12ea0 | |||
| 565792de33 | |||
| a08044bb64 | |||
| 254b0cd76c | |||
| b87940ccd5 | |||
| 02755c25e6 | |||
| 981f544690 | |||
| 6b5e3bee24 | |||
| f4937c46fc | |||
| ed12a7380d | |||
| 468fecdb03 | |||
| 3f1c76a174 | |||
| 80a42710e3 | |||
| ec1ef5a97d | |||
| 0ff1ea9623 | |||
| 327f7b7d14 | |||
| f9ab875457 | |||
| 108a2bc033 | |||
| 5c7da5850b | |||
| 9096a1b0d5 | |||
| 89f02dc72d | |||
| c36f83c205 | |||
| f6959e532a | |||
| 1d47d221f6 | |||
| f1b09dd4b7 | |||
| a6d5079473 | |||
| 9609e9f3f3 | |||
| 195f28466c | |||
| 74e6dfadc8 | |||
| 7f29ee8c3a | |||
| a3d80de33c | |||
| 7fa295b68c |
111
demo/.gitignore
vendored
111
demo/.gitignore
vendored
@ -1,111 +0,0 @@
|
||||
# Created by https://www.gitignore.io/api/node
|
||||
# Edit at https://www.gitignore.io/?templates=node
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# rollup.js default build output
|
||||
dist/
|
||||
|
||||
# Uncomment the public line if your project uses Gatsby
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
|
||||
# public
|
||||
|
||||
# Storybook build outputs
|
||||
.out
|
||||
.storybook-out
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# Temporary folders
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# End of https://www.gitignore.io/api/node
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
<h1>@title(inline)</h1>
|
||||
@content
|
||||
@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="@language">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
||||
<link rel="stylesheet" href="styles/style.css"/>
|
||||
<title>@title</title>
|
||||
</head>
|
||||
<body>
|
||||
@slides <!-- reserved keyword -->
|
||||
<script src="../onpoint.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,2 +0,0 @@
|
||||
<h1>@title(inline)</h1>
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
language: # available language options and their value for the html lang attribute
|
||||
de: de
|
||||
en: en
|
||||
title:
|
||||
de: Präsentation zur Demonstration
|
||||
en: Presentation for Demonstration Purposes
|
||||
2883
demo/package-lock.json
generated
2883
demo/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "onpoint-core",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"build": "babel scripts -d ../"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.26.0"
|
||||
}
|
||||
}
|
||||
@ -1,2 +0,0 @@
|
||||
- chapter1
|
||||
- chapter2
|
||||
@ -1,30 +0,0 @@
|
||||
@slide(layout=titlepage)
|
||||
|
||||
@title
|
||||
Wirklich auf den Punkt!
|
||||
|
||||
@slide
|
||||
|
||||
@title
|
||||
++ Wirklich auf den Punkt!
|
||||
|
||||
@content
|
||||
* ++ Stichpunkt 1
|
||||
* ++ Stichpunkt 2
|
||||
* ++ Stichpunkt 3
|
||||
* ++ Stichpunkt 4
|
||||
|
||||
|
||||
@slide
|
||||
|
||||
@title
|
||||
Folie mit Todo
|
||||
|
||||
@todo
|
||||
Das ist das Todo.
|
||||
|
||||
* Stichpunkt
|
||||
|
||||
@content
|
||||
Diese Folie ist noch nicht fertig.
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
@slide(layout=titlepage)
|
||||
|
||||
@title
|
||||
OnPoint for real!
|
||||
|
||||
@slide
|
||||
|
||||
@title
|
||||
OnPoint for real!
|
||||
|
||||
@content
|
||||
* bullet point 1
|
||||
* bullet point 2
|
||||
* bullet point 3
|
||||
* bullet point 4
|
||||
|
||||
|
||||
@slide
|
||||
|
||||
@title
|
||||
Slide with todo
|
||||
|
||||
@todo
|
||||
This is the todo.
|
||||
|
||||
* bullet point
|
||||
|
||||
@content
|
||||
This slide is not done yet.
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
@slide(layout=titlepage)
|
||||
|
||||
@title
|
||||
Ende
|
||||
@ -1,10 +0,0 @@
|
||||
@slide(layout=titlepage)
|
||||
|
||||
@title
|
||||
OnPoint for real!
|
||||
|
||||
@content
|
||||
* bullet point 1
|
||||
* bullet point 2
|
||||
* bullet point 3
|
||||
* bullet point 4
|
||||
@ -1,54 +0,0 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
font-size: 16pt;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
.fragment {
|
||||
opacity: 0;
|
||||
transition: .3s opacity ease-in-out;
|
||||
}
|
||||
|
||||
.fragment.visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
body.laser-pointer-active {
|
||||
cursor: url("../images/pointer.svg"), auto;
|
||||
}
|
||||
|
||||
@media screen {
|
||||
body {
|
||||
background: black;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
section {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
article {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
background: white;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
article:target {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
@ -43,7 +43,7 @@ def compile_slide(slide, root_directory):
|
||||
# contain them.
|
||||
def get_slide_metadata(slide):
|
||||
metadata = { 'layout': 'default' }
|
||||
metadata_attributes = re.search('^@slide\((.+)\)', slide.splitlines()[0])
|
||||
metadata_attributes = re.search(r'^@slide\((.+)\)', slide.splitlines()[0])
|
||||
if metadata_attributes:
|
||||
metadata_attributes = metadata_attributes.group(1).split(' ')
|
||||
for attribute in metadata_attributes:
|
||||
|
||||
27
touch-support.js
Normal file
27
touch-support.js
Normal file
@ -0,0 +1,27 @@
|
||||
// Reference: https://www.delftstack.com/howto/javascript/detect-finger-swipe-events-in-javascript/
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
document.body.addEventListener('touchstart', onTouchStart);
|
||||
document.body.addEventListener('touchmove', onTouchMove);
|
||||
document.body.addEventListener('touchend', onTouchEnd);
|
||||
})
|
||||
|
||||
var startX, startY, moveX, moveY;
|
||||
|
||||
function onTouchStart(e){
|
||||
startX = e.touches[0].clientX;
|
||||
startY = e.touches[0].clientY;
|
||||
}
|
||||
|
||||
function onTouchMove(e){
|
||||
moveX = e.touches[0].clientX;
|
||||
moveY = e.touches[0].clientY;
|
||||
}
|
||||
|
||||
function onTouchEnd(){
|
||||
if (startY+100 < moveY){
|
||||
goToPreviousSlide();
|
||||
} else if (startY-100 > moveY){
|
||||
goToNextSlide();
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user