Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
f82317de
Commit
f82317de
authored
Jul 07, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache images
parent
cc2abc6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
playloop.js
js/playloop.js
+7
-1
No files found.
js/playloop.js
View file @
f82317de
...
@@ -61,6 +61,7 @@ function parseURL(){
...
@@ -61,6 +61,7 @@ function parseURL(){
var
index
=
0
;
var
index
=
0
;
var
interval
;
var
interval
;
var
imgs
=
[];
var
imgs
=
[];
var
images
=
[];
$
(
function
(){
$
(
function
(){
init
();
init
();
...
@@ -72,8 +73,12 @@ function init(){
...
@@ -72,8 +73,12 @@ function init(){
for
(
var
i
=
0
;
i
<
SETTINGS
.
n
;
i
++
){
for
(
var
i
=
0
;
i
<
SETTINGS
.
n
;
i
++
){
imgs
.
push
(
SETTINGS
.
path
+
"-0"
+
(
SETTINGS
.
order
[
i
])
+
"-"
+
SETTINGS
.
sufx
);
imgs
.
push
(
SETTINGS
.
path
+
"-0"
+
(
SETTINGS
.
order
[
i
])
+
"-"
+
SETTINGS
.
sufx
);
images
[
i
]
=
new
Image
();
images
[
i
].
src
=
imgs
[
i
];
}
}
//load images
index
=
SETTINGS
.
order
[
0
];
index
=
SETTINGS
.
order
[
0
];
init_rotator
(
document
.
getElementById
(
'rotator'
));
init_rotator
(
document
.
getElementById
(
'rotator'
));
...
@@ -127,7 +132,8 @@ function set_p(){
...
@@ -127,7 +132,8 @@ function set_p(){
}
}
function
seti
(
i
,
src
){
function
seti
(
i
,
src
){
rotator
.
src
=
imgs
[
i
];
//rotator.src = imgs[i];
rotator
.
src
=
images
[
i
].
src
;
if
(
src
!=
"radio"
){
if
(
src
!=
"radio"
){
$
(
"#flist-"
+
i
).
click
();
$
(
"#flist-"
+
i
).
click
();
}
else
{
}
else
{
...
...
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