Commit 8d0eecf1 authored by Neil Gershenfeld's avatar Neil Gershenfeld

zoom image in gallery

parent f5541c58
......@@ -4,7 +4,7 @@
// Neil Gershenfeld
// 10/8/17
//
// before running: ./clean; node make_index.js
// before running: ./init
// to run: node cams.js
// uses fswebcam for screen capture
// uses convert to make thumbnails
......@@ -83,7 +83,9 @@ function update() {
//
console.log('reindex day')
execSync("echo '<html><body>' > index/newindex.html")
execSync('ls images | awk \'/^'+year+'-'+month+'-'+day+'/ { print "<a href=../images/"$1 "><img src=../thumbnails/" $1 "></a>" }\' >> index/newindex.html')
execSync("echo '<script src=../image.js></script>' > index/newindex.html")
//execSync('ls images | awk \'/^'+year+'-'+month+'-'+day+'/ { print "<img src=../thumbnails/" $1 "id=\"" $1 "\" width=\"10%\"" "onmousedown=\"image(\'" $1 "\')\">" }\' >> 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=image(\\"" $1 "\\")>" }\' >> index/newindex.html')
execSync("mv index/newindex.html index/"+month+"-"+day+".html")
//
// delay before next image
......
var lastid
function image(id) {
var img = document.getElementById(lastid)
if (img != null) {
img.src = "../thumbnails/"+id
img.style.width = "10%"
}
var img = document.getElementById(id)
img.src = "../images/"+id
img.style.width = "100%"
lastid = id
}
This diff is collapsed.
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
<html><body>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
index/09-19.html 0 → 100644