helloworldhellwoorldeofoehfafihuofijoahfgyioafjpafhzguirg uvuizerurg_ozerygvoiuhrgreqiogrehh
This commit is contained in:
parent
3379242f31
commit
c00a301523
79 changed files with 1614 additions and 3 deletions
13
themes/vmems-theme/static/js/main.js
Normal file
13
themes/vmems-theme/static/js/main.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
document.addEventListener('DOMContentLoaded',function(){
|
||||
if($('.carousel').length>1){
|
||||
$('.carousel').each(i=>{
|
||||
let toslick = $(i).attr('data-to-slick')
|
||||
console.log(toslick)
|
||||
$(i).slick(JSON.parse(toslick));
|
||||
});
|
||||
}else{
|
||||
let toslick = $('.carousel').attr('data-to-slick')
|
||||
console.log(toslick)
|
||||
$('.carousel').slick(JSON.parse(toslick));
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue