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
cec02b95
Commit
cec02b95
authored
Jun 14, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. made a button to play model's src files
parent
522acbce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
2 deletions
+32
-2
baseline_photo_library_black_48dp.png
js/images/baseline_photo_library_black_48dp.png
+0
-0
baseline_slideshow_black_48dp.png
js/images/baseline_slideshow_black_48dp.png
+0
-0
ui.css
js/ui.css
+14
-0
ui_init.js
js/ui_init.js
+16
-1
viewer.html
viewer.html
+2
-1
No files found.
js/images/baseline_photo_library_black_48dp.png
0 → 100755
View file @
cec02b95
540 Bytes
js/images/baseline_slideshow_black_48dp.png
0 → 100755
View file @
cec02b95
376 Bytes
js/ui.css
View file @
cec02b95
...
@@ -195,6 +195,7 @@ html, body, #x3d_wrapper {
...
@@ -195,6 +195,7 @@ html, body, #x3d_wrapper {
#align_button_location
,
#align_button_location
,
#align_tr_button
,
#align_tr_button
,
#download_button
,
#download_button
,
#view_src_images_button
,
#extra_models_button
{
#extra_models_button
{
background-size
:
32px
32px
;
background-size
:
32px
32px
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
...
@@ -217,6 +218,11 @@ html, body, #x3d_wrapper {
...
@@ -217,6 +218,11 @@ html, body, #x3d_wrapper {
background-size
:
26px
26px
;
background-size
:
26px
26px
;
}
}
#view_src_images_button
{
background-image
:
url('images/baseline_photo_library_black_48dp.png')
;
background-size
:
26px
26px
;
}
#align_button
{
#align_button
{
background-image
:
url('images/ic_explore_black_48dp_1x.png')
;
background-image
:
url('images/ic_explore_black_48dp_1x.png')
;
}
}
...
@@ -238,6 +244,7 @@ html, body, #x3d_wrapper {
...
@@ -238,6 +244,7 @@ html, body, #x3d_wrapper {
#align_button_location
:hover
,
#align_button_location
:hover
,
#align_tr_button
:hover
,
#align_tr_button
:hover
,
#download_button
:hover
,
#download_button
:hover
,
#view_src_images_button
:hover
,
#extra_models_button
:hover
{
#extra_models_button
:hover
{
/* background-image:url('images/align.png'); */
/* background-image:url('images/align.png'); */
background-color
:
rgba
(
240
,
240
,
240
,
1
);
background-color
:
rgba
(
240
,
240
,
240
,
1
);
...
@@ -408,6 +415,13 @@ html, body, #x3d_wrapper {
...
@@ -408,6 +415,13 @@ html, body, #x3d_wrapper {
/* margin-right:2px; */
/* margin-right:2px; */
}
}
#download_button
,
#view_src_images_button
{
display
:
block
;
/* float:right; */
/* margin-right:2px; */
}
#model_name
{
#model_name
{
width
:
200px
;
width
:
200px
;
padding
:
0px
5px
;
padding
:
0px
5px
;
...
...
js/ui_init.js
View file @
cec02b95
...
@@ -175,7 +175,22 @@ function title_init(){
...
@@ -175,7 +175,22 @@ function title_init(){
$("body").append(html);
$("body").append(html);
*/
*/
$
(
"#lpl"
).
attr
(
"href"
,
"playloop.php?interval=200&sufx=D0.0.jpeg&path="
+
SETTINGS
.
basepath
+
"/"
+
SETTINGS
.
path
+
"/"
+
SETTINGS
.
version
+
"/"
+
SETTINGS
.
path
).
css
({
color
:
"white"
});
var
title_url
=
"playloop.php?interval=200&sufx=D0.0.jpeg&path="
+
SETTINGS
.
basepath
+
"/"
+
SETTINGS
.
path
+
"/"
+
SETTINGS
.
version
+
"/"
+
SETTINGS
.
path
;
//$("#lpl").attr("href",title_url).css({color:"white"});
$
(
"#view_src_images_button"
).
on
(
'click'
,
function
(){
window
.
open
(
title_url
,
'_blank'
);
});
var
pos
=
$
(
"#download_button"
).
position
();
var
width
=
$
(
"#download_button"
).
width
();
$
(
"#view_src_images_button"
).
css
({
position
:
"absolute"
,
top
:
pos
.
top
+
"px"
,
left
:
-
(
width
+
2
)
+
"px"
});
}
}
...
...
viewer.html
View file @
cec02b95
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
<div
id=
'exit_button'
title=
'Exit to models index'
></div>
<div
id=
'exit_button'
title=
'Exit to models index'
></div>
<div
id=
'help_button'
title=
'Help'
>
?
</div>
<div
id=
'help_button'
title=
'Help'
>
?
</div>
<div
id=
'download_button'
title=
'Download 3d model (.obj & .x3d formats)'
></div>
<div
id=
'download_button'
title=
'Download 3d model (.obj & .x3d formats)'
></div>
<div
id=
'view_src_images_button'
title=
'View/slideshow source images (processed)'
></div>
<div
id=
'menu_button'
title=
'Menu'
></div>
<div
id=
'menu_button'
title=
'Menu'
></div>
<div
id=
'extra_models_button'
title=
'Load extra models'
class=
'experimental'
></div>
<div
id=
'extra_models_button'
title=
'Load extra models'
class=
'experimental'
></div>
<div
id=
'align_button'
title=
'Run least squares fitting algorithm (Gauss-Newton) for camera heading and location using markers.
<div
id=
'align_button'
title=
'Run least squares fitting algorithm (Gauss-Newton) for camera heading and location using markers.
...
@@ -182,7 +183,7 @@ Instructions:
...
@@ -182,7 +183,7 @@ Instructions:
<tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</tr>
<tr>
<!-- class='experimental'> -->
<tr
hidden
>
<!-- class='experimental'> -->
<td><a
id=
'lpl'
title=
'Viewer for the almost raw image set used to generate the 3d model'
>
Set of 4 images
</a></td>
<td><a
id=
'lpl'
title=
'Viewer for the almost raw image set used to generate the 3d model'
>
Set of 4 images
</a></td>
</tr>
</tr>
<tr>
<!-- class='experimental'> -->
<tr>
<!-- class='experimental'> -->
...
...
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