Remove christmas challenge code.
This commit is contained in:
parent
6d281dc938
commit
1098629944
@ -194,9 +194,6 @@
|
||||
Or you can use the browse button above.
|
||||
</div>
|
||||
<div class="intro_section">
|
||||
<a href="index.html#model=assets/models/christmas_challenge.gltf,assets/models/christmas_challenge.bin">🎄 Christmas Challenge 🎄</a>
|
||||
</div>
|
||||
<div class="intro_section only_full_height">
|
||||
<div>Example models:</div>
|
||||
<div class="example_models">
|
||||
<a href="index.html#model=assets/models/logo.obj,assets/models/logo.mtl">logo</a>
|
||||
|
||||
@ -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 ();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user