Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cams
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
cams
Commits
6bc1358f
Commit
6bc1358f
authored
Dec 13, 2017
by
Neil Gershenfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
60de7f8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cams.js
cams.js
+2
-2
display.js
display.js
+1
-1
No files found.
cams.js
View file @
6bc1358f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
//
//
var
image_width
=
1600
var
image_width
=
1600
var
image_height
=
1200
var
image_height
=
1200
var
thumbnail_size
=
1
00
var
thumbnail_size
=
2
00
var
compression
=
50
var
compression
=
50
var
difference_threshold
=
.
05
var
difference_threshold
=
.
05
var
millisecond_image_delay
=
15000
var
millisecond_image_delay
=
15000
...
@@ -99,7 +99,7 @@ function update() {
...
@@ -99,7 +99,7 @@ function update() {
console
.
log
(
'
reindex day
'
)
console
.
log
(
'
reindex day
'
)
execSync
(
"
echo '<html><body>' > index/newindex.html
"
)
execSync
(
"
echo '<html><body>' > index/newindex.html
"
)
execSync
(
"
echo '<script src=../display.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:
1
0%;height:auto;cursor:pointer;
\\
" onmousedown=display(
\\
"" $1 "
\\
")>" }
\'
>> index/newindex.html
'
)
execSync
(
'
ls images | awk
\'
/^
'
+
year
+
'
-
'
+
month
+
'
-
'
+
day
+
'
/ { print "<img src=
\\
"../thumbnails/" $1 "
\\
" id=
\\
"" $1 "
\\
" style=
\\
"width:
2
0%;height:auto;cursor:pointer;
\\
" onmousedown=display(
\\
"" $1 "
\\
")>" }
\'
>> index/newindex.html
'
)
execSync
(
"
mv index/newindex.html index/
"
+
month
+
"
-
"
+
day
+
"
.html
"
)
execSync
(
"
mv index/newindex.html index/
"
+
month
+
"
-
"
+
day
+
"
.html
"
)
//
//
// delay before next image
// delay before next image
...
...
display.js
View file @
6bc1358f
...
@@ -3,7 +3,7 @@ function display(id) {
...
@@ -3,7 +3,7 @@ function display(id) {
var
img
=
document
.
getElementById
(
lastid
)
var
img
=
document
.
getElementById
(
lastid
)
if
(
img
!=
null
)
{
if
(
img
!=
null
)
{
img
.
src
=
"
../thumbnails/
"
+
id
img
.
src
=
"
../thumbnails/
"
+
id
img
.
style
.
width
=
"
1
0%
"
img
.
style
.
width
=
"
2
0%
"
}
}
var
img
=
document
.
getElementById
(
id
)
var
img
=
document
.
getElementById
(
id
)
img
.
src
=
"
../images/
"
+
id
img
.
src
=
"
../images/
"
+
id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment