Add model-viewer script via MW php method

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-25 18:59:04 -07:00
parent 41354e2d70
commit 36c36dd16e
2 changed files with 5 additions and 8 deletions

View File

@@ -1,9 +1,3 @@
let modelLoad = document.createElement('script')
modelLoad.setAttribute('type','module')
modelLoad.setAttribute('src','https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js')
let headElem = document.getElementsByTagName('head')[0]
headElem.appendChild(modelLoad)
/**
* Sets listener and attributes on model-viewer to
* allow for click registering of a new hotspot