From c469fc6a29a4ec727786c74005378e12f64284e9 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Fri, 12 Feb 2016 14:30:21 -0800 Subject: [PATCH] hide hyperlink property for web entities --- examples/html/entityProperties.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/examples/html/entityProperties.html b/examples/html/entityProperties.html index 71f2450da1..d8e5451ff8 100644 --- a/examples/html/entityProperties.html +++ b/examples/html/entityProperties.html @@ -308,6 +308,11 @@ allSections.push(elWebSections); var elWebSourceURL = document.getElementById("property-web-source-url"); + + var elHyperlinkHref = document.getElementById("property-hyperlink-href"); + var elHyperlinkDescription = document.getElementById("property-hyperlink-description"); + var elHyperlinkSections = document.querySelectorAll(".hyperlink-section"); + var elParticleSections = document.querySelectorAll(".particle-section"); allSections.push(elParticleSections); var elParticleIsEmitting = document.getElementById("property-particle-is-emitting"); @@ -370,9 +375,6 @@ var elYTextureURL = document.getElementById("property-y-texture-url"); var elZTextureURL = document.getElementById("property-z-texture-url"); - var elHyperlinkHref = document.getElementById("property-hyperlink-href"); - var elHyperlinkDescription = document.getElementById("property-hyperlink-description"); - var elPreviewCameraButton = document.getElementById("preview-camera-button"); if (window.EventBridge !== undefined) { @@ -492,8 +494,12 @@ for (var j = 0; j < allSections[i].length; j++) { allSections[i][j].style.display = 'none'; } + } + + for (var i = 0; i < elHyperlinkSections.length; i++) { + elHyperlinkSections[i].style.display = 'block'; } - + if (properties.type == "Box" || properties.type == "Sphere" || properties.type == "ParticleEffect") { elColorSection.style.display = 'block'; elColorRed.value = properties.color.red; @@ -526,6 +532,9 @@ for (var i = 0; i < elWebSections.length; i++) { elWebSections[i].style.display = 'block'; } + for (var i = 0; i < elHyperlinkSections.length; i++) { + elHyperlinkSections[i].style.display = 'none'; + } elWebSourceURL.value = properties.sourceUrl; } else if (properties.type == "Text") { @@ -1158,17 +1167,17 @@ -
+ -
+ -
+