the actual implementation of swiper.jquery.min.js works with fixed path only.
With the following proposal, the library will also load from other paths relative to the ftui.config.basedir.
The modification for the css file will also take care to load it before an fhem-tablet-ui-user.css
function depends_uwz() {
var deps = [];
if (!$.fn.swiper) {
var userCSS = $('head').find("[href$='fhem-tablet-ui-user.css']");
if (userCSS.length)
userCSS.before('');
else
$('head').append('');
Hi Chris,
the actual implementation of swiper.jquery.min.js works with fixed path only. With the following proposal, the library will also load from other paths relative to the ftui.config.basedir. The modification for the css file will also take care to load it before an fhem-tablet-ui-user.css
function depends_uwz() { var deps = []; if (!$.fn.swiper) { var userCSS = $('head').find("[href$='fhem-tablet-ui-user.css']"); if (userCSS.length) userCSS.before('');
else $('head').append('');
};