From 33462f7466c1616c22b77737896bd776c631ddb0 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 25 Sep 2014 14:22:32 -0700 Subject: [PATCH] handle permanent sidebar in setup page --- domain-server/resources/web/css/style.css | 9 +++ domain-server/resources/web/js/setup.js | 21 ++++++ domain-server/resources/web/setup/index.shtml | 67 ++++++++++++++++--- 3 files changed, 89 insertions(+), 8 deletions(-) create mode 100644 domain-server/resources/web/js/setup.js diff --git a/domain-server/resources/web/css/style.css b/domain-server/resources/web/css/style.css index 399315ce53..a77dc1aeab 100644 --- a/domain-server/resources/web/css/style.css +++ b/domain-server/resources/web/css/style.css @@ -46,4 +46,13 @@ span.port { .stale { color: red; +} + +#setup-sidebar.affix { + position: fixed; + top: 15px; +} + +#save-button { + width: 100%; } \ No newline at end of file diff --git a/domain-server/resources/web/js/setup.js b/domain-server/resources/web/js/setup.js new file mode 100644 index 0000000000..d92a35fb26 --- /dev/null +++ b/domain-server/resources/web/js/setup.js @@ -0,0 +1,21 @@ +$(document).ready(function(){ + /* + * Clamped-width. + * Usage: + *
This long content will force clamped width
+ * + * Author: LV + */ + + $('[data-clampedwidth]').each(function () { + var elem = $(this); + var parentPanel = elem.data('clampedwidth'); + var resizeFn = function () { + var sideBarNavWidth = $(parentPanel).width() - parseInt(elem.css('paddingLeft')) - parseInt(elem.css('paddingRight')) - parseInt(elem.css('marginLeft')) - parseInt(elem.css('marginRight')) - parseInt(elem.css('borderLeftWidth')) - parseInt(elem.css('borderRightWidth')); + elem.css('width', sideBarNavWidth); + }; + + resizeFn(); + $(window).resize(resizeFn); + }); +}); \ No newline at end of file diff --git a/domain-server/resources/web/setup/index.shtml b/domain-server/resources/web/setup/index.shtml index f1bb222b6f..b34bc22573 100644 --- a/domain-server/resources/web/setup/index.shtml +++ b/domain-server/resources/web/setup/index.shtml @@ -1,16 +1,18 @@
-
- +
+
-
+
@@ -35,6 +37,52 @@
+
+
+

Metaverse Registration

+
+
+
+ + + + This is an access token generated on the My Tokens page of your High Fidelity account.
+ Generate a token with the 'domains' scope and paste it here.
+ This is required to associate this domain-server with a domain in your. +
+
+
+ + + This is your High Fidelity domain ID. If you do not want your domain to be registered in the High Fidelity metaverse you can leave this blank. + +
+
+
+
+
+
+

Metaverse Registration

+
+
+
+ + + + This is an access token generated on the My Tokens page of your High Fidelity account.
+ Generate a token with the 'domains' scope and paste it here.
+ This is required to associate this domain-server with a domain in your. +
+
+
+ + + This is your High Fidelity domain ID. If you do not want your domain to be registered in the High Fidelity metaverse you can leave this blank. + +
+
+
+
@@ -60,6 +108,9 @@
+ + + \ No newline at end of file