function setupShepherd() { var shepherd = new Shepherd.Tour({ defaultStepOptions: { cancelIcon: { enabled: true }, classes: 'shadow-md bg-purple-dark', scrollTo: { behavior: 'smooth', block: 'center' } }, useModalOverlay: true }); shepherd.addStep({ title: 'Welcome', text: 'In questo Box è possibile visionare i dati di Login. In caso di dati non congruenti, comunicare la variazione ad un Consigliere o all\'Amministratore o alla casella di posta info@giardinivilloresi.it la richiesta di variazione dati.', attachTo: { element: '#SHP_WELCOME', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_0', showOn() { var shMe=false; if ($('#SHP_WELCOME').length ) { if($('#SHP_WELCOME').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Profilo Utente', text: 'Questo è il profilo utente a Lei collegato.', attachTo: { element: '#SHP_PROFILE', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_1', showOn() { var shMe=false; if ($('#SHP_PROFILE').length ) { if($('#SHP_PROFILE').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Ultimo Aggiornamento', text: 'Questa è la data e l\'ora di aggiornamento dei dati.', attachTo: { element: '#SHP_AGGIO', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_2', showOn() { var shMe=false; if ($('#SHP_AGGIO').length ) { if($('#SHP_AGGIO').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Coordinate Bancarie del Condominio', text: 'Questo Box contiene i dati da utilizzare per effettuare un Bonifico al Conto di Condominio.', attachTo: { element: '#SHP_COORD', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_3', showOn() { var shMe=false; if ($('#SHP_COORD').length ) { if($('#SHP_COORD').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Interpreta Utente', text: 'Questa funzione consente di accedere al Sito con le credenziali di qualsiasi condomino.', attachTo: { element: '#SHP_INTER', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_4', showOn() { var shMe=false; if ($('#SHP_INTER').length ) { if($('#SHP_INTER').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Login Box', text: 'Compilando questo Form è possibile accedere ai Servizi Personali del Condominio.', attachTo: { element: '#SHP_LOGIN', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_5', showOn() { var shMe=false; if ($('#SHP_LOGIN').length ) { if($('#SHP_LOGIN').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'E\' la prima volta?', text: 'Non hai mai richiesto l\'accesso a questo sito? Inizia da qui. Dovremo verificare alcuni Tuoi dati prima di abilitarti ed inviarti la Password di accesso.', attachTo: { element: '#SHP_PRIMO', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_6', showOn() { var shMe=false; if ($('#SHP_PRIMO').length ) { if($('#SHP_PRIMO').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Recupera la Password', text: 'Non è la prima volta che accedi ma non ti ricordi la Password? Clicca qui per reimpostarla.', attachTo: { element: '#SHP_RECPWD', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_7', showOn() { var shMe=false; if ($('#SHP_RECPWD').length ) { if($('#SHP_RECPWD').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Home', text: 'E\' la pagina Dashboard dove sono racchiuse le informazioni più rilevanti.', attachTo: { element: '#SHPM_HOME', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_8', showOn() { var shMe=false; if ($('#SHPM_HOME').length ) { if($('#SHPM_HOME').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Documenti', text: 'In questa funzione sono racchiusi tutti i Documenti comuni del Condominio. I Consiglieri e l\'Amministratore sono abilitati alla gestione della Documentazione comune di Condominio.', attachTo: { element: '#SHPM_DOCS', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_9', showOn() { var shMe=false; if ($('#SHPM_DOCS').length ) { if($('#SHPM_DOCS').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'La Mia Situazione', text: 'La funzione La Mia Situazione consente la visualizzazione della situazione scadenze delle varie gestioni di Condominio.', attachTo: { element: '#SHPM_SITU', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_10', showOn() { var shMe=false; if ($('#SHPM_SITU').length ) { if($('#SHPM_SITU').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Detrazioni', text: 'La funzione Detrazioni consente l\'accesso alla consultazione delle Detrazioni Fiscali, suddivise per Proprietà e Gestione.', attachTo: { element: '#SHPM_DETR', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_11', showOn() { var shMe=false; if ($('#SHPM_DETR').length ) { if($('#SHPM_DETR').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Anagrafiche', text: 'La funzione Anagrafiche consente l\'accesso alla Gestione delle Anagrafiche del Sito.', attachTo: { element: '#SHPM_ANAG', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_12', showOn() { var shMe=false; if ($('#SHPM_ANAG').length ) { if($('#SHPM_ANAG').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Gestione Documenti', text: 'La funzione Gestione Documenti consente di operare nell\'area documentale, permettendo quindi il caricamento, l\'organizzazione e l\'eliminazione dei Documenti Comuni di Condominio.', attachTo: { element: '#SHPM_GESDOC', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_13', showOn() { var shMe=false; if ($('#SHPM_GESDOC').length ) { if($('#SHPM_GESDOC').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); shepherd.addStep({ title: 'Cambio Password', text: 'La funzione Cambio Password consente di modificare la password di accesso al Sito.', attachTo: { element: '#SHPM_PROFILO', on: 'right' }, buttons: [ { action: function() { return this.cancel(); }, secondary: true, text: 'Esci' }, { action: function() { return this.back(); }, secondary: true, text: 'Precedente' }, { action: function() { return this.next(); }, secondary: false, text: 'Prossimo' } ], id: 'shep_14', showOn() { var shMe=false; if ($('#SHPM_PROFILO').length ) { if($('#SHPM_PROFILO').is(":visible")){ shMe=true; } } if($(".ui-dialog").is(":visible")){ shMe=false; } return shMe; }, }); return shepherd; }