From 109862994489cb13e97e5567901444a5b3b34a54 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Fri, 17 Dec 2021 10:38:47 +0100 Subject: [PATCH] Remove christmas challenge code. --- website/index.html | 3 --- website/o3dv/js/website.js | 43 -------------------------------------- 2 files changed, 46 deletions(-) diff --git a/website/index.html b/website/index.html index ac8daf8..0ba7512 100644 --- a/website/index.html +++ b/website/index.html @@ -194,9 +194,6 @@ Or you can use the browse button above.
- 🎄 Christmas Challenge 🎄 -
-
Example models:
logo diff --git a/website/o3dv/js/website.js b/website/o3dv/js/website.js index 6e19037..92cdcb7 100644 --- a/website/o3dv/js/website.js +++ b/website/o3dv/js/website.js @@ -155,14 +155,6 @@ OV.Website = class this.navigator.FillTree (importResult); this.UpdateSidebar (); this.FitModelToWindow (true); - - if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') { - this.dialog = OV.ShowMessageDialog ( - 'Christmas Challenge', - 'Click on the boxes and find the hidden surprise. 🎁', - null - ); - } } OnModelClicked (button, mouseCoordinates) @@ -171,41 +163,6 @@ OV.Website = class return; } - if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') { - this.eventHandler.HandleEvent ('christmas_challenge', { type : 'loaded' }); - let meshUserData = this.viewer.GetMeshUserDataUnderMouse (mouseCoordinates); - if (meshUserData !== null && meshUserData.originalMeshId.meshIndex === 0) { - this.navigator.ToggleMeshVisibility (meshUserData.originalMeshId); - if (meshUserData.originalMeshId.IsEqual (new OV.MeshInstanceId (59, 0))) { - this.eventHandler.HandleEvent ('christmas_challenge', { type : 'solved' }); - this.navigator.FitMeshToWindow (meshUserData.originalMeshId); - setTimeout (() => { - let dialog = new OV.ButtonDialog (); - let contentDiv = dialog.Init ('You did it!', [ - { - name : 'Close', - subClass : 'outline', - onClick () { - dialog.Hide (); - } - }, - { - name : 'Tweet!', - onClick () { - window.open ('https://twitter.com/intent/tweet?ref_src=twsrc%5Etfw&text=I%27ve%20just%20solved%20the%20@Online3DViewer%20Christmas%20Challenge.%20%E2%9D%A4%F0%9F%8E%84%F0%9F%8E%81%20%0a%0aGive%20it%20a%20try%20here:%20https://tinyurl.com/o3dvchristmas%0a%0a%233d%20%233dviewer%20%23threejs%20%23opensource%20%23christmas', '_blank'); - dialog.Hide (); - } - } - ]); - OV.AddDiv (contentDiv, null, 'You\'ve just solved the Christmas Challenge. ❤🎄🎁'); - dialog.Show (); - this.dialog = dialog; - }, 1500); - } - return; - } - } - if (this.measureTool.IsActive ()) { this.measureTool.Click (mouseCoordinates); this.sidebar.UpdateMeasureTool ();