Difference between revisions of "Widget:3DModelNotteMoe"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
m
imported>Elaeagnifolia
Line 4: Line 4:
 
<script>
 
<script>
 
     document.querySelector("#modelViewer a").addEventListener("click", function(e) {
 
     document.querySelector("#modelViewer a").addEventListener("click", function(e) {
         document.querySelector("#modelViewer").innerHTML = '<iframe width="400px" height="400px" src="https://notte.moe/dl-fbx/c<!--{$id}-->_<!--{$variationId}-->" frameborder="0" style="border:none;"></iframe>';
+
         document.querySelector("#modelViewer").innerHTML = '<iframe width="400px" height="400px" src="https://notte.moe/dl-fbx/c<!--{$id}-->_<!--{$variationId}-->" frameborder="0" style="border:none;" allowvr="yes" allow="vr; xr; accelerometer; magnetometer; gyroscope; autoplay;" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel="" ></iframe>';
 
     e.preventDefault();
 
     e.preventDefault();
 
   e.stopPropagation();
 
   e.stopPropagation();
 
     }, false);
 
     }, false);
 
</script>
 
</script>

Revision as of 23:00, 3 February 2020

<script>

   document.querySelector("#modelViewer a").addEventListener("click", function(e) {
       document.querySelector("#modelViewer").innerHTML = '<iframe width="400px" height="400px" src="https://notte.moe/dl-fbx/c_" 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>