简体   繁体   中英

JSSOR Slider and Drupal 7 error

Newbie in Drupal

Ok I wrote up a script to intialize the jssor-slider which I include in my themes .js files.

Here is what I wrote this far.

jQuery(document).ready(function ($) {
    var options = { $AutoPlay: true };
    var jssor_slider1 = new $JssorSlider$('slider1_container', options);
    alert("nikos");
});

I also included the jssor.slider.js file in the theme's js files. Following that I edited the .info file to include the files in Drupal.

scripts[] = js/jssor.slider.js
scripts[] = js/jssor.slider-initializer.js

For some reason I keep getting this in Chrome:

Uncaught ReferenceError: $JssorEventManager$ is not defined

Please use the minified jssor.slider.mini.js instead.

jssor.slider.mini.js = (jssor.core.js + jssor.utils.js + jssor.slider.js)

For development, you can use jssor.core.js + jssor.utils.js + jssor.slider.js

For release, you need jssor.slider.mini.js only

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM