').addClass ('ov_dialog_table_row_value').appendTo (colorRow);
let colorInput = $('
').attr ('type', 'color').addClass ('ov_dialog_color').appendTo (valueColumn);
+ $('
').addClass ('ov_dialog_table_row_comment').html ('(For surfaces with no material)').appendTo (valueColumn);
colorInput.val ('#' + OV.ColorToHexString (dialogSettings.defaultColor));
colorInput.change (function () {
let colorStr = colorInput.val ().substr (1);
diff --git a/website/o3dv/exportdialog.js b/website/o3dv/exportdialog.js
index f7616b0..a586a10 100644
--- a/website/o3dv/exportdialog.js
+++ b/website/o3dv/exportdialog.js
@@ -132,7 +132,7 @@ OV.ExportDialog = class
for (let i = 0; i < exportFormat.formats.length; i++) {
let format = exportFormat.formats[i];
let formatDiv = $('').addClass ('ov_dialog_table_row').appendTo (this.formatParameters.formatSettingsDiv);
- let formatInput = $(' ').addClass ('ov_dialog_table_radio').attr ('type', 'radio').attr ('id', format.name).attr ('name', 'format').appendTo (formatDiv);
+ let formatInput = $(' ').addClass ('ov_dialog_checkradio').attr ('type', 'radio').attr ('id', format.name).attr ('name', 'format').appendTo (formatDiv);
$('').attr ('for', format.name).html (format.name).appendTo (formatDiv);
if (i === 0) {
formatInput.prop ('checked', true);
diff --git a/website/o3dv/website.css b/website/o3dv/website.css
index 30d42fc..49bbf73 100644
--- a/website/o3dv/website.css
+++ b/website/o3dv/website.css
@@ -385,6 +385,12 @@ div.ov_dialog div.ov_dialog_title
font-weight: bold;
}
+div.ov_dialog div.ov_dialog_inner_title
+{
+ font-weight: bold;
+ margin-bottom: 10px;
+}
+
div.ov_dialog div.ov_dialog_content
{
padding: 20px 0px;
@@ -477,6 +483,7 @@ div.ov_dialog input.ov_dialog_color
{
width: 36px;
height: 18px;
+ margin-right: 10px;
}
div.ov_dialog div.ov_dialog_file_list
@@ -506,6 +513,39 @@ div.ov_dialog div.ov_dialog_file_link_text
float: left;
}
+div.ov_dialog div.ov_dialog_copyable_input
+{
+ padding: 3px;
+ border: 1px solid #dddddd;
+ border-radius: 5px;
+ overflow: auto;
+}
+
+div.ov_dialog div.ov_dialog_copyable_input input
+{
+ color: #666666;
+ width: 70%;
+ margin-top: 6px;
+ box-sizing: border-box;
+ outline: none;
+ float: left;
+ border: 0px;
+ box-sizing: border-box;
+}
+
+div.ov_dialog div.ov_dialog_copyable_input div.button
+{
+ color: #3393bd;
+ width: 28%;
+ text-align: center;
+ padding: 3px;
+ border: 1px solid #3393bd;
+ border-radius: 5px;
+ box-sizing: border-box;
+ cursor: pointer;
+ float: right;
+}
+
div.ov_dialog div.ov_dialog_inner_buttons
{
margin-bottom: 10px;
@@ -536,7 +576,13 @@ div.ov_dialog div.ov_dialog_table_row_value
float: left;
}
-div.ov_dialog input.ov_dialog_table_radio
+div.ov_dialog span.ov_dialog_table_row_comment
+{
+ color: #444444;
+ font-size: 15px;
+}
+
+div.ov_dialog input.ov_dialog_checkradio
{
margin-right: 10px;
}
diff --git a/website/o3dv/website.js b/website/o3dv/website.js
index 54487ae..2108949 100644
--- a/website/o3dv/website.js
+++ b/website/o3dv/website.js
@@ -287,8 +287,8 @@ OV.Website = class
});
exportDialog.Show (obj.model, obj.viewer);
});
- AddButton (this.toolbar, 'embed', 'Get embedding code', true, function () {
- obj.dialog = OV.ShowEmbeddingDialog (importer, obj.importSettings, obj.viewer.GetCamera ());
+ AddButton (this.toolbar, 'share', 'Share model', true, function () {
+ obj.dialog = OV.ShowSharingDialog (importer, obj.importSettings, obj.viewer.GetCamera ());
});
if (OV.FeatureSet.SetDefaultColor) {
AddSeparator (this.toolbar, true);