Define Javascript Path

3 replies · opened Jan 22, 2018

GGlorinsJan 22, 2018

Hi,

I need know what the file responsible for set the javascripts path.
Using the default theme, everything works nice.

But if I change the default structure for another one, its get broken...

And does not matter load the javascript files like the original html...

In console I got:

``TypeError: window.Laravel is undefined

responsiveClasses: jRespond not Defined.
functions.js:1:2108
lightbox: Magnific Popup not Defined.
functions.js:1:6074
pageTransition: Animsition not Defined.
functions.js:1:10029
sliderRun: Swiper not Defined.
functions.js:1:29627
tabs: Tabs not Defined.
functions.js:1:46765
tabs: Tabs not Defined.
functions.js:1:47598
tabs: Tabs not Defined.
functions.js:1:48082
roundedSkill: EasyPieChart not Defined.
functions.js:1:50747
twitterFeed: sm_format_twitter() not Defined.
functions.js:1:52377
Instafeed not Defined.
functions.js:1:53705
contactForm: Form Validate not Defined.
functions.js:1:60440
subscription: Form Validate not Defined.
functions.js:1:61633
quickContact: Form Validate not Defined.
functions.js:1:62874
cookieNotify: Cookie Function not defined.
functions.js:1:64447
extras: Bootstrap Tooltip not defined.
functions.js:1:64851
extras: Bootstrap Popover not defined.
functions.js:1:64954
gridInit: Isotope not Defined.
functions.js:1:37950
filterInit: Isotope not Defined.
functions.js:1:38502
shuffleInit: Isotope not Defined.
functions.js:1:38741
modal: Magnific Popup not Defined.`

Thanks in advice!!!

SSemicolon WebSTAFFJan 23, 2018

Hello,

According to the Issue you have mentioned, the js/plugins.js has not been loaded on your Page which consists of all the required plugins. All the JS are in the js/ Folder and loaded in the same way. Make sure you are using the correct path for the JS in Laravel.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

GGlorinsJan 24, 2018

Thanks for the reply, the js/plugin.js was loaded, but, I have changed the default path to others .js files, example, instead:

js/jquery.js

I have:

js/jquery/3.3.1/jquery.js

So the file responsible to load all other java scripts is: plugin.js???

I will gonna try find the variables to change the default path so.

Thanks!!!

SSemicolon WebSTAFFJan 25, 2018

Hello,

Yes! The js/jquery.js, js/plugins.js and js/functions.js Files are required for all the JS to work properly. You can combine them into 1 File which would also work. The paths are not defined inside the JS Files so even if you use different paths for these JS Files everything should work normally.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard