Im trying to load a bunch of scripts one of them (marzipano.js) is local (public/js/marzipano.js) and I’m having problems on loading it. Any help would be appreciated
\imports\ui\pages\demo.js
import React from 'react';
export default class Login extends React.Component {
componentDidMount() {
$.getScript('http://www.marzipano.net/demos/common/es5-shim.js', function() {
$.getScript('http://www.marzipano.net/demos/common/eventShim.js', function() {
$.getScript('http://www.marzipano.net/demos/common/requestAnimationFrame.js', function() {
$.getScript('js/marzipano.js', function(data, textStatus, jqxhr) {
console.log(data); // Data returned
console.log(textStatus); // Success
console.log(jqxhr.status); // 200
console.log("Load was performed.");
});
});
});
});
}
render() {
return ( <
div id = "pano" > </div>
);
}
}