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
23af6f4c
Commit
23af6f4c
authored
Jun 13, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zoom and hover
parent
88630829
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
index.css
js/index.css
+4
-0
index.js
js/index.js
+6
-6
No files found.
js/index.css
View file @
23af6f4c
...
@@ -45,3 +45,7 @@ body {
...
@@ -45,3 +45,7 @@ body {
.odd
{
.odd
{
background
:
rgba
(
120
,
120
,
220
,
1
);
background
:
rgba
(
120
,
120
,
220
,
1
);
}
}
.arow
:hover
td
{
background
:
rgba
(
220
,
220
,
220
,
0.4
);
}
\ No newline at end of file
js/index.js
View file @
23af6f4c
...
@@ -30,17 +30,17 @@ function parse_list(res){
...
@@ -30,17 +30,17 @@ function parse_list(res){
$
(
res
).
find
(
"model"
).
each
(
function
(){
$
(
res
).
find
(
"model"
).
each
(
function
(){
var
row
=
$
(
"<tr class='arow
odd
'>"
);
var
row
=
$
(
"<tr class='arow'>"
);
var
name
=
$
(
this
).
attr
(
"name"
);
var
name
=
$
(
this
).
attr
(
"name"
);
var
thumb
=
$
(
this
).
attr
(
"thumb"
);
var
thumb
=
$
(
this
).
attr
(
"thumb"
);
if
(
thumb
.
length
!=
""
){
if
(
thumb
.
length
!=
""
){
row
.
append
(
"<td valign='top'><img alt='n/a' src='models/"
+
name
+
"/thumb.jpeg'></img></td>"
);
row
.
append
(
"<td
class='acell'
valign='top'><img alt='n/a' src='models/"
+
name
+
"/thumb.jpeg'></img></td>"
);
}
else
{
}
else
{
row
.
append
(
"<td valign='top' align='center'>–</td>"
);
row
.
append
(
"<td
class='acell'
valign='top' align='center'>–</td>"
);
}
}
row
.
append
(
"<td valign='top'>"
+
name
+
"</td>"
);
row
.
append
(
"<td
class='acell'
valign='top'>"
+
name
+
"</td>"
);
var
vlist
=
""
;
var
vlist
=
""
;
$
(
this
).
find
(
"version"
).
each
(
function
(
i
,
v
){
$
(
this
).
find
(
"version"
).
each
(
function
(
i
,
v
){
...
@@ -56,7 +56,7 @@ function parse_list(res){
...
@@ -56,7 +56,7 @@ function parse_list(res){
vlist
=
vlist
.
slice
(
0
,
-
7
);
vlist
=
vlist
.
slice
(
0
,
-
7
);
row
.
append
(
"<td valign='top'><div>"
+
vlist
+
"</div></td>"
);
row
.
append
(
"<td
class='acell'
valign='top'><div>"
+
vlist
+
"</div></td>"
);
row
.
attr
(
"index"
,
index
);
row
.
attr
(
"index"
,
index
);
...
@@ -156,7 +156,7 @@ function init_maps(){
...
@@ -156,7 +156,7 @@ function init_maps(){
map
=
L
.
map
(
'leaflet_map'
,{
map
=
L
.
map
(
'leaflet_map'
,{
layers
:[
googleSat
],
layers
:[
googleSat
],
zoomControl
:
false
,
zoomControl
:
false
,
}).
setView
([
40.7233861
,
-
111.9328843
],
1
3
);
}).
setView
([
40.7233861
,
-
111.9328843
],
1
2
);
new
L
.
Control
.
Zoom
({
position
:
'topright'
}).
addTo
(
map
);
new
L
.
Control
.
Zoom
({
position
:
'topright'
}).
addTo
(
map
);
...
...
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