Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with VueJS #145

Open
eather009 opened this issue Apr 26, 2018 · 1 comment
Open

Issue with VueJS #145

eather009 opened this issue Apr 26, 2018 · 1 comment

Comments

@eather009
Copy link

I am getting error with VueJS project. I have bought Canvas html templates and got animsition as used plugin there. When I see demo, that works fine, but when implement with VueJS I am getting following error

Animsition: Element does not exist on page.
Animsition: Does not support this browser.

Following code gives the result

var support = __.supportCheck.call(this, options);

      if(!support && options.browser.length > 0){
        if(!support || !this.length){
          // If do not have a console object to object window
          if (!('console' in window)) {
            window.console = {};
            window.console.log = function(str){ return str; };
          }
          if(!this.length) console.log('Animsition: Element does not exist on page.');
          if(!support) console.log('Animsition: Does not support this browser.');
          return __.destroy.call(this);
        }
      }

Is there any solution for this? I have to prepare a project within short time to show demo. Please help

@eather009
Copy link
Author

eather009 commented Apr 26, 2018

Solved with

Vue.loadScript("../../static/js/jquery.js")
.then(() => {
Vue.loadScript("../../static/js/plugins.js")
.then(() => {
Vue.loadScript("../../static/js/functions.js")
.then(() => {})
.catch((ee) => {

                });
        })
        .catch((ee) => {});
})
.catch((ee) => {});

https://www.npmjs.com/package/vue-plugin-load-script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant