Difference between revisions of "User:Mornsta/Sandbox10"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Mornsta-gpuser
Line 1: Line 1:
<includeonly><div id="modelViewer<!--{$secondModel}-->">
+
<iframe width="100%" height="480px" src="https://poly.google.com/view/2cyOWQoXvv2/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>
    <a href="">Load 3D Model</a>
 
</div></includeonly>
 
<script>
 
    document.querySelector("#modelViewer<!--{$secondModel}--> a").addEventListener("click", function(e) {
 
        document.querySelector("#modelViewer<!--{$secondModel}-->").innerHTML = '<iframe width="400px" height="400px" src="https://poly.google.com/view/<!--{$embedSrcLink}-->/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>';
 
    e.preventDefault();
 
  e.stopPropagation();
 
    }, false);
 
</script>
 

Revision as of 08:55, 3 February 2019

<iframe width="100%" height="480px" src="https://poly.google.com/view/2cyOWQoXvv2/embed" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>