Update shit

This commit is contained in:
Thomas Forgione 2020-07-18 14:31:56 +02:00
parent bb9709ee0d
commit 980826eb81
30 changed files with 11 additions and 8 deletions

3
.gitignore vendored Normal file → Executable file
View File

@ -31,3 +31,6 @@ openshift
# Private files
Private.js
log.txt
static/uploaded

0
LICENSE.md Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
lib/get.js Normal file → Executable file
View File

0
lib/log.js Normal file → Executable file
View File

0
lib/socket.js Normal file → Executable file
View File

0
package.json Normal file → Executable file
View File

0
routes/index/index.js Normal file → Executable file
View File

0
routes/index/urls.js Normal file → Executable file
View File

0
routes/index/views/index.pug Normal file → Executable file
View File

0
routes/speaker/index.js Normal file → Executable file
View File

0
routes/speaker/urls.js Normal file → Executable file
View File

4
routes/speaker/views/index.pug Normal file → Executable file
View File

@ -7,7 +7,7 @@ block append css
block content
.row
.col-md-8
.col-md-10
#canvases
canvas#canvas-pdf(style={"border" : "1px solid #000000", position:'absolute'})
canvas#canvas-paint.noselect(onmousedown="sio.onMouseDown(event);", onmousemove="sio.onMouseMove(event);", onmouseup="sio.onMouseUp(event);", onmouseout="sio.onMouseUp(event);", style={position:'absolute'})
@ -32,7 +32,7 @@ block content
.btn-group
button.btn.btn-default#viewer-laser(onclick="sio.switchAudienceLaser();") Audience laser is disabled
.col-md-4
.col-md-2
.btn-group
button.btn.btn-default#start(onclick="sio.startPresentation();")
span.glyphicon.glyphicon-play

0
routes/viewer/index.js Normal file → Executable file
View File

0
routes/viewer/urls.js Normal file → Executable file
View File

0
routes/viewer/views/index.pug Normal file → Executable file
View File

4
server.js Normal file → Executable file
View File

@ -13,7 +13,7 @@ var http = require('http').Server(app);
var io = require('socket.io')(http);
require('./lib/socket.js')(io);
var isDev = app.get('env') === 'development';
var isDev = false; // app.get('env') === 'development';
app.set('view engine', 'pug');
app.set('trust proxy', 1);
@ -62,7 +62,7 @@ if ( isDev ) {
serverIpAddress = 'localhost';
} else {
// Openhift conf
serverPort = process.env.OPENSHIFT_NODEJS_PORT || 8080;
serverPort = process.env.OPENSHIFT_NODEJS_PORT || 4001;
serverIpAddress = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';
}

0
static/css/signin.css Normal file → Executable file
View File

0
static/css/speaker.css Normal file → Executable file
View File

0
static/css/style.css Normal file → Executable file
View File

0
static/css/viewer.css Normal file → Executable file
View File

0
static/js/jquery.min.js vendored Normal file → Executable file
View File

0
static/js/pdf.js Normal file → Executable file
View File

0
static/js/pdf.worker.js vendored Normal file → Executable file
View File

2
static/js/speaker.js Normal file → Executable file
View File

@ -25,7 +25,7 @@ $(function() { sio = (function() {
var lasers = {};
var drawAudienceLasers = false;
PDFJS.getDocument('/static/uploaded/' + filename + '.pdf').then(function getPdf(_pdf) {
PDFJS.getDocument('/static/uploaded/' + filename + '.pdf?' + (Math.floor(Math.random() * 10000))).then(function getPdf(_pdf) {
pdf = _pdf;
updateUI();
});

2
static/js/viewer.js Normal file → Executable file
View File

@ -18,7 +18,7 @@ $(function() { sio = (function() {
var lasers = {};
PDFJS.getDocument('/static/uploaded/' + filename + '.pdf').then(function getPdfHelloWorld(_pdf) {
PDFJS.getDocument('/static/uploaded/' + filename + '.pdf?' + (Math.floor(Math.random() * 10000))).then(function getPdfHelloWorld(_pdf) {
pdf = _pdf;
update();

Binary file not shown.

Binary file not shown.

0
views/base.pug Normal file → Executable file
View File

4
views/main.pug Normal file → Executable file
View File

@ -4,7 +4,7 @@ block css
meta( name='viewport', content='width=device-width, initial-scale=1.0' )
meta( name='description', content='Baking Bootstrap Snippets with Jade' )
//- Bootswatch Theme
link(href="https://bootswatch.com/cerulean/bootstrap.min.css", rel="stylesheet")
link(href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css", rel="stylesheet")
block base_content
nav.navbar.navbar-default( role="navigation" )
@ -25,4 +25,4 @@ block base_content
block content
block prepend js
script( src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js' )
script( src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js' )