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
0c72c4f6
Commit
0c72c4f6
authored
Aug 31, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force-hide option for some elements
parent
e3625ec2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ui_init.js
js/ui_init.js
+2
-1
ui_menu.js
js/ui_menu.js
+5
-0
viewer.html
viewer.html
+2
-2
No files found.
js/ui_init.js
View file @
0c72c4f6
...
...
@@ -64,7 +64,8 @@ var SETTINGS = {
'files'
:
{
'x3d'
:
""
,
'kml'
:
""
}
},
'forcehide'
:[]
// 'kml' : "scene.kml"
}
...
...
js/ui_menu.js
View file @
0c72c4f6
...
...
@@ -182,6 +182,8 @@ function save_rating_init(){
var
value
=
parseInt
(
response
.
responseText
);
if
(
isNaN
(
value
)){
value
=
5
;
SETTINGS
.
forcehide
.
push
(
"#model_rating_tr"
);
SETTINGS
.
forcehide
.
push
(
"#kml_tr"
);
}
$
(
"#model_rating"
).
val
(
value
);
// bind onchange
...
...
@@ -232,6 +234,9 @@ function controls_showhide(){
$
(
".edit"
).
hide
();
}
else
{
$
(
".edit"
).
show
();
SETTINGS
.
forcehide
.
forEach
(
function
(
i
,
v
){
$
(
v
).
hide
();
});
align_position
();
}
...
...
viewer.html
View file @
0c72c4f6
...
...
@@ -165,7 +165,7 @@ Instructions:
<td
title=
'Adjust initial location and orientation'
>
Edit mode
</td>
<td><input
id=
'edit'
type=
'checkbox'
class=
'my-check-box donothide'
/></td>
</tr>
<tr
class=
'edit'
>
<tr
class=
'edit'
class=
'kml_tr'
>
<td
title=
'.kml:
* latitude and longitude,
* heading, tilt and roll angles
...
...
@@ -180,7 +180,7 @@ Instructions:
<div
id=
'kmlstatus'
></div>
</td>
</tr>
<tr
class=
'edit'
>
<tr
class=
'edit'
id=
'model_rating_tr'
>
<td>
Model rating:
</td>
<td><input
id=
'model_rating'
type=
'text'
class=
'input donothide'
value=
'0'
/></td>
<td
valign=
'middle'
>
...
...
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