diff --git a/README.md b/README.md index d514728..df11378 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,3 @@ Listen 8888 ``` requires `a2enmod rewrite proxy proxy_http proxy_wstunnel` - - -s \ No newline at end of file diff --git a/scanimation/interfaces/animation/script.js b/scanimation/interfaces/animation/script.js index 75fecee..8ed9a37 100644 --- a/scanimation/interfaces/animation/script.js +++ b/scanimation/interfaces/animation/script.js @@ -1,288 +1,79 @@ - - - - - - - - - - - - - - - - - - - -Sign in ยท GitLab - - - - - - - - - - - +let cnv = document.getElementById('cnv'), + ctx = cnv.getContext('2d') - - - - - - - - - - - - - +let frames_folder = '../frames/', + imgs = [], + new_imgs = [] - +// SOCKET ////////////////////////////////////////////////////////////////////// - + let socket = io.connect('/') - + socket.on('connection', function(){ + console.log('connected to node server') + socket.emit('animationInit') + makeAnimation() + }) - -
- -
+// ANIMATION /////////////////////////////////////////////////////////////////// -
- - - - -
- - + function timeStamp(){ return window.performance && window.performance.now ? window.performance.now() : new Date().getTime() }