Difference between revisions of "Widget:3DModelNotteMoe"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Eave
m (allow the widget to just take 1 id instead of constructing it (construct at template level instead))
>Eave
m (allow the widget to just take 1 id instead of constructing it (construct at template level instead))
(No difference)

Revision as of 00:34, 18 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.'; e.preventDefault(); e.stopPropagation(); }, false);

</script>