Add model-viewer script via MW php method
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user