Difference between revisions of "Widget:3DModelNotteMoe"
Jump to navigation
Jump to search
>Eave m (removing extra trailing comment) |
>Eave m (add a discuss link for reporting missing models) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
<script> | <script> | ||
document.querySelector("#modelViewer<!--{$secondModel}--> a").addEventListener("click", function(e) { | document.querySelector("#modelViewer<!--{$secondModel}--> a").addEventListener("click", function(e) { | ||
| − | document.querySelector("#modelViewer<!--{$secondModel}-->").innerHTML = '<iframe width="400px" height="400px" src="https://mushymato.github.io/dl-fbx/#/<!--{$id}-->" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe><br/><span style="font-size:0.8em">Click <a href="https://mushymato.github.io/dl-fbx/#/<!--{$id}-->">here</a> if model fails to load.</span>'; | + | document.querySelector("#modelViewer<!--{$secondModel}-->").innerHTML = '<iframe width="400px" height="400px" src="https://mushymato.github.io/dl-fbx/#/<!--{$id}-->" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe><br/><span style="font-size:0.8em">Click <a href="https://mushymato.github.io/dl-fbx/#/<!--{$id}-->">here</a> if model fails to load. Report any missing models <a href="https://dragalialost.gamepedia.com/Widget_talk:3DModelNotteMoe">here</a>.</span>'; |
e.preventDefault(); | e.preventDefault(); | ||
e.stopPropagation(); | e.stopPropagation(); | ||
}, false); | }, false); | ||
</script> | </script> | ||
Latest revision as of 06:39, 19 April 2020
<script>
document.querySelector("#modelViewer a").addEventListener("click", function(e) {
document.querySelector("#modelViewer").innerHTML = '<iframe width="400px" height="400px" src="https://mushymato.github.io/dl-fbx/#/" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>
Click <a href="https://mushymato.github.io/dl-fbx/#/">here</a> if model fails to load. Report any missing models <a href="https://dragalialost.gamepedia.com/Widget_talk:3DModelNotteMoe">here</a>.';
e.preventDefault();
e.stopPropagation();
}, false);
</script>