You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
735 B

$(document).ready(()=>{
const compatibility = $('.compatibility')
const sheets = compatibility.find('.sheet-container')
const values = sheets.find('.value')
const confirm = compatibility.find('.button.confirm')
const loading = $('#dropLoading')
values.each((index,elem)=>{
const el = $(elem)
const percent = el.find('.percent')
const value = percent.data('percent')+'%'
percent.animate({'width': value},500)
})
confirm.on('click', ()=>{
loading.find('.text').text('Personalizzazione della formazione in corso ...')
loading.fadeIn()
timeout_trigger()
setTimeout(()=>{
loading.fadeOut(()=>{
window.location='plans'
})
},6500)
})
})