Commit 46b68466 authored by Neil Gershenfeld's avatar Neil Gershenfeld

display bug

parent eb50c38a
......@@ -20,7 +20,7 @@ var image_width = 1920
var image_height = 1080
var thumbnail_size = 100
var compression = 50
var difference_threshold = .1
var difference_threshold = .05
var millisecond_image_delay = 15000
var days_to_save = 150
//
......@@ -85,7 +85,7 @@ function update() {
//
console.log('reindex day')
execSync("echo '<html><body>' > index/newindex.html")
execSync("echo '<script src=../image.js></script>' > index/newindex.html")
execSync("echo '<script src=../display.js></script>' > index/newindex.html")
execSync('ls images | awk \'/^'+year+'-'+month+'-'+day+'/ { print "<img src=\\"../thumbnails/" $1 "\\" id=\\"" $1 "\\" style=\\"width:10%;height:auto;cursor:pointer;\\" onmousedown=display(\\"" $1 "\\")>" }\' >> index/newindex.html')
execSync("mv index/newindex.html index/"+month+"-"+day+".html")
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment