This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal | |
WORKDIR /blog | |
RUN apt-get update | |
RUN apt install -y python3 pip | |
RUN pip install Jinja2==2.3 Sphinx==1.7.1 Babel==1.3 pyquery==1.2.8 tinkerer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function() { | |
var viewer = WALK.getViewer(); | |
viewer.onViewSwitchStarted(function(viewName) { | |
if (viewName === 'PUT-THE-NAME-OF-YOUR-VIEW-MENU-ITEM-HERE') { | |
viewer.openUrl('https://example.com', false); | |
} | |
}); | |
}()); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// The numbers below are in meters. | |
WALK.CLICK_MOVE_MIN_DISTANCE_TO_OBSTACLE = 0.7; | |
WALK.KEY_MOVE_MIN_DISTANCE_TO_OBSTACLE = 0.5; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
WALK.play(); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#input-section { | |
position: absolute; | |
top: 0px; | |
width: 256px; | |
z-index: 200; | |
} | |
</style> | |
<div id="input-section"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var viewer = WALK.getViewer(); | |
var button = viewer.addMenuButton( | |
'https://cdnjs.cloudflare.com/ajax/libs/webicons/2.0.0/webicons/webicon-facebook.png'); | |
button.addEventListener('click', function() { | |
viewer.openUrl( | |
'https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdemo.shapespark.com%2Fsofa-facebook-share', true) | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
navigator.getVRDisplays = undefined; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function() { | |
// This is in meters / seconds^2 (default is 4) | |
WALK.TELEPORT_TO_VIEW_ACCELERATION = 1; | |
// This is in seconds (default is 3) | |
WALK.TELEPORT_TO_VIEW_MAX_TIME = 100; | |
}()); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function() { | |
WALK.CAMERA_WALK_NEAR = 0.03; | |
}()); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
#banner { | |
position: absolute; | |
top: 30px; | |
text-align: center; | |
font-size: 3em; | |
width: 100%; | |
z-index: 10; | |
visibility: hidden | |
} |
NewerOlder