RM Resources

EL SISTEMA PREVENTIVO EN EL TIEMPO DE LA GLOBALIZACIÓN El rostro humano de la globalización

</div> </div> </div> </div> </div> <script src="/includes/tinysort.min.js"></script> <script> function loadContent(){ setTimeout(function(){ alturaArbolCat = $(".menuCatSDB").height(); //alturaScreen = $(window).height(); alturaScreen = screen.height; alturaContenido = $(".contentPage").height(); //alturaContenido = $(".contentPage > div").height(); //alert(alturaArbolCat + " - " + alturaContenido + " - " + alturaScreen); if(alturaContenido > alturaArbolCat && alturaContenido >= alturaScreen){ // ALTURA CONTENIDO ES MAYOR QUE CAT Y SCREEN if(alturaScreen > alturaArbolCat){ $(".contentPage").height(alturaScreen); $(".contentPage").css("overflow-y","scroll"); $(".contentPage").css("overflow-x","hidden"); $(".contentPage").addClass("contentScroll"); } else{ $(".contentPage").height(alturaArbolCat); $(".contentPage").css("overflow-y","scroll"); $(".contentPage").css("overflow-x","hidden"); } } if(alturaContenido > alturaArbolCat && alturaContenido < alturaScreen){ // ALTURA CONTENIDO ES MAYOR QUE CAT Y MENOR SCREEN if(alturaScreen > alturaArbolCat){ $(".contentPage").height(alturaScreen); } else{ $(".contentPage").height(alturaArbolCat); } } if(alturaContenido < alturaArbolCat && alturaContenido > alturaScreen){ // ALTURA CONTENIDO ES MAYOR QUE CAT Y SCREEN if(alturaScreen > alturaArbolCat){ $(".contentPage").height(alturaScreen); $(".contentPage").css("overflow-y","scroll"); $(".contentPage").css("overflow-x","hidden"); } else{ $(".contentPage").height(alturaArbolCat); } } if(alturaContenido < alturaArbolCat && alturaContenido < alturaScreen){ // ALTURA CONTENIDO ES MAYOR QUE CAT Y SCREEN //*ALTURA CONTENIDO ES MENOR QUE CAT Y SCREEN if(alturaScreen > alturaArbolCat){ $(".contentPage").height(alturaArbolCat); $(".contentPage").css("overflow-y","scroll"); $(".contentPage").css("overflow-x","hidden"); } else{ $(".contentPage").height(alturaArbolCat); } } }, 1000); } $(window).on("load", function () { if ($(".listDoc")[0]){ //alert("existe listado documentos"); //$(".listDoc").pagify(10, ".single-item"); } else { // No existe listado de documentos y no inicializo pagify. loadContent(); } }); $(document).ready(function() { if($('.single-item').length > 0 ){ $('.buscador').append('<i class="fa fa-search" aria-hidden="true"></i><input class="inBuscador form-control" type="search" id="inBuscador"/>'); } visiteAsc = 1; annoAsc = 1; TituloAsc = 1; /* ORDENAR TABLA DOCUMENTOS */ $('.ordenarVisitas').click(function(){ if(document.getElementsByClassName("ordenarVisitas").length == 1){ if(visiteAsc == 1){ tinysort('.single-item',{selector:'.visite',order:'asc'}); visiteAsc = 0; annoAsc = 1; TituloAsc = 1; }else{ tinysort('.single-item',{selector:'.visite',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); }else{ var idBloque = $(this).attr('id'); if(visiteAsc == 1){ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .visite',order:'asc'}); visiteAsc = 0; annoAsc = 1; TituloAsc = 1; }else{ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .visite',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); } backgroundListado(); }); $('.ordenarAnno').click(function(){ if(document.getElementsByClassName("ordenarAnno").length == 1){ if(annoAsc == 1){ tinysort('.single-item',{selector:'.anyo',order:'asc'}); visiteAsc = 1; annoAsc = 0; TituloAsc = 1; }else{ tinysort('.single-item',{selector:'.anyo',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); }else{ var idBloque = $(this).attr('id'); if(annoAsc == 1){ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .anyo',order:'asc'}); visiteAsc = 1; annoAsc = 0; TituloAsc = 1; }else{ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .anyo',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); } backgroundListado(); }); $('.ordenarTitulo').click(function(){ if(document.getElementsByClassName("ordenarTitulo").length == 1){ if(TituloAsc == 1){ tinysort('.single-item',{selector:'.titulo',order:'asc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 0; }else{ tinysort('.single-item',{selector:'.titulo',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); }else{ var idBloque = $(this).attr('id'); if(TituloAsc == 1){ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .titulo',order:'asc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 0; }else{ tinysort('.single-item',{selector:'.bloqueDocumenti'+idBloque +' .titulo',order:'desc'}); visiteAsc = 1; annoAsc = 1; TituloAsc = 1; } $(".listDoc").pagify(10, ".single-item"); } backgroundListado(); }); /* DESPLEGAR/CONTRAER MENU */ $('.desplegarMenu').on('click', function(e) { $('.menuCatSDB .nivelSot').addClass('menuCerrado'); if($(this).siblings("ul").css("display") == "none"){ $(this).removeClass("fa-caret-left"); $(this).addClass("fa-caret-down"); $(this).siblings("ul").slideDown(); $(this).parent().removeClass('menuCerrado'); }else{ $(this).removeClass("fa-caret-down"); $(this).addClass("fa-caret-left"); $(this).siblings("ul").slideUp(); $(this).parent().addClass('menuCerrado'); } $('.menuCatSDB .menuCerrado ul').slideUp(); $('.menuCatSDB .menuCerrado i').removeClass('fa-caret-down'); $('.menuCatSDB .menuCerrado i').addClass('fa-caret-left'); }); /* HISTORIAL TEXTO BUSCADOR */ if(window.location.pathname == Cookies.get('urlPaginador')){ Cookies.set('textoBuscador', '', {path: '/'}); }else{ Cookies.set('textoAnterior', Cookies.get('textoBuscador'), {path: '/'}); } selectListado(); }); (function($) { //NUEVO var pagify = { container: null, totalPages: 1, perPage: 3, currentPage: 0, createNavigation: function() { if(window.location.pathname == Cookies.get('urlPaginador')){ Cookies.set('paginaAnterior', Cookies.get('paginaLista'), {path: '/'}); } $('.paginador').empty(); this.totalPages = Math.ceil(this.items.length / this.perPage); var PuntoDibujado = false; var PuntoSupDibujado = false; $('.pagina', this.container.parent()).remove(); var pagination = ""; pagination = $('<ul class="pagina"></ul>'); if(this.currentPage == 0){ pagination.append('<li><a class="nav-list prev disabled" data-next="false">< </a></li>'); }else{ pagination.append('<li><a class="nav-list prev" data-next="false">< </a></li>'); } for (var i = 0; i < this.totalPages; i++) { var pageElClass = "page"; if (!i) pageElClass = "page current"; if((i == 0)){ var pageEl = '<li><a class="' + pageElClass + '" data-page="' + ( i + 1) + '">' + ( i + 1) + "</a></li>"; } else if(i >= this.totalPages -1){ var pageEl = '<li><a class="' + pageElClass + '" data-page="' + ( i + 1) + '">' + ( i + 1) + "</a></li>"; } else if(i >= this.currentPage-5 && i <= this.currentPage+5){ var pageEl = '<li><a class="' + pageElClass + '" data-page="' + ( i + 1) + '">' + ( i + 1) + "</a></li>"; }else if(i <= this.totalPages -1 && i >= this.currentPage+1){ if(!PuntoSupDibujado){ PuntoSupDibujado = true; var pageEl = '<li><a class="' + pageElClass + '" data-page="' + ( i + 1) + '"> ... ' + "</a></li>"; }else{ var pageEl = ""; } } else{ if(!PuntoDibujado){ PuntoDibujado = true; var pageEl = '<li><a class="' + pageElClass + '" data-page="' + ( i + 1) + '"> ... ' + "</a></li>"; }else{ var pageEl = ""; } } pagination.append(pageEl); } if(this.currentPage == this.totalPages-1){ pagination.append('<li><a class="nav-list next disabled" data-next="true"> ></a></li>'); }else{ pagination.append('<li><a class="nav-list next" data-next="true"> ></a></li>'); } if($('.single-item').length > 0 ){ $('.paginador').append(pagination); } var that = this; $("body").off("click", ".nav-list"); this.navigator = $("body").on("click", ".nav-list", function() { var el = $(this); that.navigate(el.data("next")); }); $("body").off("click", ".page"); this.pageNavigator = $("body").on("click", ".page", function() { var el = $(this); that.goToPage(el.data("page")); }); }, navigate: function(next) { // default perPage to 5 if (isNaN(next) || next === undefined) { next = true; } $(".pagination .nav-list").removeClass("disabled"); if (next) { this.currentPage++; if (this.currentPage > (this.totalPages - 1)) this.currentPage = (this.totalPages - 1); if (this.currentPage == (this.totalPages - 1)){ $(".pagina .nav-list.next").addClass("disabled"); } } else { this.currentPage--; if (this.currentPage < 0) this.currentPage = 0; if (this.currentPage == 0) $(".pagina .nav-list.prev").addClass("disabled"); } this.showItems(); }, updateNavigation: function() { var pages = $(".pagina .page"); pages.removeClass("current"); $('.pagina .page[data-page="' + ( this.currentPage + 1) + '"]').addClass("current"); if ($('.paginador').length){ var urlPaginador = window.location.pathname; Cookies.set('paginaLista', this.currentPage+1, {path: '/'}); Cookies.set('urlPaginador', urlPaginador, {path: '/'}); } }, goToPage: function(page) { this.currentPage = page - 1; $(".pagina .nav-list").removeClass("disabled"); if (this.currentPage == (this.totalPages - 1)) $(".pagina .nav-list.next").addClass("disabled"); if (this.currentPage == 0) $(".pagina .nav-list.prev").addClass("disabled"); this.showItems(); }, showItems: function() { this.items.hide(); var base = this.perPage * this.currentPage; this.items.slice(base, base + this.perPage).show(); this.createNavigation(); this.updateNavigation(); /*MOSTRAR FOTO Y CALCULAR ALTO*/ $(".listANSnot").each(function(){ if($(this).css("display")!="none"){ //Your code here //alert($(this).attr("id")); //alert($("#"+$(this).attr("id")+ " .imgListLink").attr("dir")); var imagenacargar = $("#"+$(this).attr("id")+ " .imgListLink").attr("dir"); $("#"+$(this).attr("id")+ " .imgListLink").css("background", "url(" + imagenacargar + ")"); } }); //alert("a"); //alert("b"); loadContent(); /*////*/ }, init: function(container, items, perPage, page) { //loadContent(); this.container = container; this.currentPage = page; this.totalPages = 1; this.perPage = perPage; this.items = items; this.createNavigation(); this.showItems(); } }; // stuff it all into a jQuery method! $.fn.pagify = function(perPage, itemSelector) { var el = $(this); var items = $(itemSelector, el); // default perPage to 5 if (isNaN(perPage) || perPage === undefined) { perPage = 3; } // don't fire if fewer items than perPage if (items.length <= perPage) { //return true; } pageselect=0; if (Cookies.get('paginaAnterior')=="" || Cookies.get('paginaAnterior')==null || isNaN(Cookies.get('paginaAnterior'))){ pageselect=0; pageselectclick=1; } else{ pageselect=Cookies.get('paginaAnterior')-1; pageselectclick=Cookies.get('paginaAnterior'); } //alert(pageselect); if (isNaN(pageselect)){ pageselect=0; } pagify.init(el, items, perPage, pageselect); //$('a[data-page='+pageselectclick+']').click(); }; })(jQuery); if ($(".listDoc")[0]){ //alert("existe listado documentos"); $(".listDoc").pagify(10, ".single-item"); } else { // No existe listado de documentos y no inicializo pagify. } /* Funcion para seleccionar la pagina del listado */ function selectListado(){ if(window.location.pathname == Cookies.get('urlPaginador')){ var textoBuscar = Cookies.get('textoAnterior'); if(textoBuscar =='undefined'){ textoBuscar = '' } $("#inBuscador").val(textoBuscar); buscarPorTexto(); Cookies.set('textoBuscador', Cookies.get('textoAnterior'), {path: '/'}); Cookies.set('textoAnterior', '', {path: '/'}); } } function backgroundListado(){ var j = 0; var lista = $('.rows-list'); for(var i = 0; i < lista.length; i++){ if((!$(lista[i]).hasClass("headerAree")) && (!$(lista[i]).hasClass("header-list"))){ if(j%2 == 0){ $(lista[i]).css("background", "rgb(249, 249, 249) none repeat scroll 0% 0%"); }else{ $(lista[i]).css("background", "rgb(255, 255, 255) none repeat scroll 0% 0%"); } j++; } } } function backgroundBusqueda(){ var j = 0; var lista = $('.single-item'); for(var i = 0; i < lista.length; i++){ if((!$(lista[i]).hasClass("headerAree")) && (!$(lista[i]).hasClass("header-list"))){ if(j%2 == 0){ $(lista[i]).css("background", "rgb(249, 249, 249) none repeat scroll 0% 0%"); }else{ $(lista[i]).css("background", "rgb(255, 255, 255) none repeat scroll 0% 0%"); } j++; } } } $(document).delegate("#inBuscador", 'keyup', function (){ _this = this; $.each($('.listDoc .rows-list'), function(){ if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) === -1){ $(this).hide(); $(this).removeClass('single-item'); }else{ $(this).show(); $(this).addClass('single-item'); } }); $(".listDoc").pagify(10, ".single-item"); backgroundBusqueda(); Cookies.set('textoAnterior', '', {path: '/'}); Cookies.set('textoBuscador', $(this).val(), {path: '/'}); //alert("a"); if ($("#inBuscador").val()==""){ } else{ Cookies.set('paginaAnterior', 1, {path: '/'}); } }); $( ".catListResponsive" ).click(function() { $( ".cat-item" ).slideToggle( "slow", function() { // Animation complete. }); }); function buscarPorTexto (){ _this = $("#inBuscador"); $.each($('.listDoc .rows-list'), function(){ if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) === -1){ $(this).hide(); $(this).removeClass('single-item'); }else{ $(this).show(); $(this).addClass('single-item'); } }); //var pag = Cookies.get('paginaAnterior'); //alert(pag); $(".listDoc").pagify(10, ".single-item"); backgroundBusqueda(); //$('a[data-page='+pag+']').click(); } </script> </body> <footer> <div class="footer-top"> <div class="container-fluid no-gutters footer-top-pick"> <div class="row"> <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 footer-top-pick-message1"> 2020 </div> <div class="col-lg-7 col-md-7 col-sm-7 col-xs-12 footer-top-pick-message2"> <a href="/en/Rector_Major/Strenna/Strenna_2020/Strenna_2020__Presentation">Strenna: GOOD CHRISTIANS AND UPRIGHT CITIZENS</a> </div> </div> </div> <div class="container footer-top-icons"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <ul> <li><a href='/en/Don_Bosco'><img class='lazy' src='//archive.sdb.org/images/icons/donbosco.png'/><p>Don Bosco</p></a></li><li><a href='/en/Rector_Major/'><img class='lazy' src='//archive.sdb.org/images/icons/rectormayor.png'/><p>Rector Major</p></a></li><li><a href='/en/Council/Vicar_of_the_RM'><img class='lazy' src='//archive.sdb.org/images/icons/vicario.png'/><p>Vicar of the RM</p></a></li><li><a href='/en/Departments/Formation'><img class='lazy' src='//archive.sdb.org/images/icons/formation.png'/><p>Formation</p></a></li><li><a href='/en/Departments/Youth_Ministry'><img class='lazy' src='//archive.sdb.org/images/icons/youthpastoral.png'/><p>Youth Ministry</p></a></li><li><a href='/en/Departments/Communication'><img class='lazy' src='//archive.sdb.org/images/icons/comunicacion.png'/><p>Social Comm.</p></a></li><li><a href='/en/Departments/Missions'><img class='lazy' src='//archive.sdb.org/images/icons/missions.png'/><p>Missions</p></a></li><li><a href='/en/Regions/'><img class='lazy' src='//archive.sdb.org/images/icons/regions.png'/><p>Regions</p></a></li><li><a href='/en/Salesian_Holiness/'><img class='lazy' src='//archive.sdb.org/images/icons/sanctity.png'/><p>Salesian Santity</p></a></li><li><a href='/en/Salesian_Family'><img class='lazy' src='//archive.sdb.org/images/icons/salesianfamily.png'/><p>Salesian Family</p></a></li> </ul> </div> </div> <div class="row linksExt"> <ul> <li><a href="https://www.infoans.org/" target="_blank">ANS</a></li> <li><a href="http://sdl.sdb.org/cgi-bin/library?a=p&p=home&l=IT&w=utf-8" target="_blank">SDL</a></li> <li><a href="http://agora.sdb.org/" target="_blank">AGORA</a></li> <li><a href="http://biesseonline.sdb.org" target="_blank">SALESIAN BULLETIN</a></li> <li><a href="http://iss.sdb.org/" target="_blank">ISS</a></li> <li><a href="http://abs.sdb.org/" target="_blank">ABS</a></li> <li><a href="https://ius-sdb.com/" target="_blank">IUS</a></li> <li><a href="https://www.cgfmanet.org/" target="_blank">FMA</a></li> </ul> </div> </div> </div> <div class="footer-middle"> <div class="container"> <div class="row text-center"> <div class="col-lg-6 col-md-4 col-sm-12 col-xs-12 my-auto"> <div class="logoFooter"> <img src="//archive.sdb.org/images/logos/logoSDB_en.png" /> </div> <div class="infoFooter"> <p>Sede Central Salesiana</p> <p>Vía Marsala, 42</p> <p>00185 Rome</p> <p>Italy</p> <a href="mailto:admin@sdb.org">admin@sdb.org</a> </div> </div> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 my-auto footer-newsletter"> <h5>STAY UPDATED</h5> <p>Sign up for our newsletter and information on events</p> <a href="http://eepurl.com/gmSTzP" class="btn btn-primary newsletter" target="_blank">Subscribe</a> </div> </div> <div class="row pt-4"> <div class="col-12"> <hr> </div> <div class ="col-lg-3 col-md-2 col-sm-12 col-xs-12 listaSezione"><ul><li class="nav-item menuSDB-itemFooter tituloSezione"><a href="#" role="button" aria-haspopup="true" aria-expanded="false">Salesians</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Who_are_we_/">Who are we?</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Don_Bosco/">Don Bosco</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Salesian_Holiness/">Salesian Holiness</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Educational_System/">Educational System</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Salesian_Family/">Salesian Family</a></li></ul></div><div class ="col-lg-3 col-md-2 col-sm-12 col-xs-12 listaSezione"><ul><li class="nav-item menuSDB-itemFooter tituloSezione"><a href="#" role="button" aria-haspopup="true" aria-expanded="false">Organization</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Rector_Major/">Rector Major</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Council/">Council</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Departments/">Departments</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Regions/">Regions</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Circumscriptions/">Circumscriptions</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/GC28/">GC28</a></li></ul></div><div class ="col-lg-2 col-md-2 col-sm-12 col-xs-12 listaSezione"><ul><li class="nav-item menuSDB-itemFooter tituloSezione"><a href="#" role="button" aria-haspopup="true" aria-expanded="false">Worldwide</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Map/">Map</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Focus/">Focus</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Links/">Links</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Statistical_Data/">Statistical Data</a></li></ul></div><div class ="col-lg-2 col-md-2 col-sm-12 col-xs-12 listaSezione"><ul><li class="nav-item menuSDB-itemFooter tituloSezione"><a href="#" role="button" aria-haspopup="true" aria-expanded="false">Resources</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Don_Bosco_Resources/">Don Bosco Resources</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/SDB_Resources/">SDB Resources</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/RM_Resources/">RM Resources</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Council_Resources/">Council Resources</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/SDL_Digital_Library/">SDL (Digital Library)</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/e_sdb/">E-sdb</a></li></ul></div><div class ="col-lg-2 col-md-2 col-sm-12 col-xs-12 listaSezione"><ul><li class="nav-item menuSDB-itemFooter tituloSezione"><a href="#" role="button" aria-haspopup="true" aria-expanded="false">Info</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/ANS/">ANS</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Site_Map/">Site Map</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/SDB_Guide/">SDB Guide</a><li class="menuSDB-itemFooterSezione"><a class="mega-menu-link" href="/en/Contact_Us/">Contact Us</a></li></ul></div> </div> </div> </div> <!-- <div class="footer-middle2"> <form id="suggestion"> <input type="hidden" name="footerSend" id="footerSend" value="1"> <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 titleFormSuggest"> <h5>Send your suggestion</h5> </div> </div> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="row"> <div class="form-group col-lg-6 col-md-6 col-sm-12 col-xs-12"> <input id="Nome" name="Nome" class="form-control" type="text" placeholder="Name" required> </div> <div class="form-group col-lg-6 col-md-6 col-sm-12 col-xs-12"> <input id="Cognome" name="Cognome" class="form-control" type="text" placeholder="Surname" required> </div> </div> <div class="form-group"> <input id="Email" name="Email" class="form-control" type="email" placeholder="Email" required> </div> </div> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="form-group messageForm"> <textarea class="form-control" id="Messagio" name="Messagio" rows="3" placeholder="Message" required></textarea> </div> </div> </div> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="form-group"> <div id="g-recaptcha-footer" name="g-recaptcha"></div> </div> </div> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="sdbCheckLegal" name="sdbCheckLegal" required> <label class="form-check-label" for="sdbCheckLegal"> <a href="#">I accept the privacy policy</a> </label> </div> <button id="enviarSugerencia" name="enviarSugerencia" type="submit" class="btn btn-primary" disabled>Send</button> </div> </div> </div> </form> </div> --> <div class="footer-bottom"> <div class="container"> <div class="row"> <div class="col-lg-7 col-md-7 col-sm-12 col-xs-12"> <ul> <li>Follow us</li> <li> <a href="https://www.facebook.com/agenziaans" target="_blank">Facebook</a> </li> <li> <a href="https://www.youtube.com/salesianmission" target="_blank">Youtube</a> </li> <li> <a href="https://www.flickr.com/photos/143804140@N06/" target="_blank">Flickr</a> </li> </ul> </div> <div class="col-lg-5 col-md-5 col-sm-12 col-xs-12"> Copyright © 2020 <a href="http://www.dosatic.com" target="_blank">Dosatic S.L. </a>Pte Ltd. All rights reserved. </div> </div> </div> </div> </div> <!-- <script src="https://www.google.com/recaptcha/api.js?hl=en&onload=onloadCallbackFooter&render=explicit" async defer></script> --> <script> /* var onloadCallbackFooter = function() { grecaptcha.render('g-recaptcha-footer', { 'sitekey' : '6Ld_zcMUAAAAAFqsNa1-PcQCVXx17EmMUt6akrWg', 'callback': 'activarEnvio', }); }; */ function activarEnvio(){ $('#enviarSugerencia').removeAttr("disabled"); } /* $('#newsletter').submit(function(e) { e.preventDefault(); $.ajax( { url: "/secciones/newsletter/add_user.php", method: "post", data: $("form").serialize(), dataType: "text", success: function(strMessage) { if(strMessage.indexOf("Creado") != -1){ alert("Registrado newsletter"); location.reload(); }else if(strMessage.indexOf("Aceptar-condiciones") != -1){ alert ("Debe aceptar las condiciones"); }else if(strMessage.indexOf("for key") != -1){ alert("Email ya subscrito"); }else{ alert("ERROR"); } } }); });*/ /* $('#suggestion').submit(function(e) { e.preventDefault(); $.ajax( { type: 'POST', url: "/funzioni/enviarCorreoContacto.php", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(strMessage) { if(strMessage.indexOf("1") != -1){ alert("Message sent"); }else if(strMessage.indexOf("NoCaptcha") != -1){ alert("Error ReCaptcha"); } else{ alert("ERROR"); } location.reload(); } }); });*/ </script> </footer> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-148964017-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-148964017-1'); </script> <script> function cycleBackgrounds() { $imageEls = $('.bannerWrapper .slide'); // Get the images to be cycled. //setInterval(function () { var banners = $(".banner").length; var idSlider = $(".show").attr('id'); numSlider = idSlider.split("_"); if(parseInt(numSlider[1]) == parseInt(banners)) { nextSlider = 1; } else nextSlider = parseInt(numSlider[1]) + 1; //alert($imageEls.eq(index).parent().html()); // Hide the previous //$imageEls.eq(index - 1).removeClass('show'); $('.bannerWrapper .slide').removeClass('show'); // Show the next //$imageEls.eq(index).addClass('show'); $("#slider_"+nextSlider).addClass("show"); //}, 4000); }; /*$(window).scroll(function (event) { var scroll = $(window).scrollTop(); $(".fixedHeader").addClass("fixedMenuSDB"); if($(window).scrollTop() == 0) $(".fixedHeader").removeClass("fixedMenuSDB"); });*/ $(document).ready(function() { $('.lazy').Lazy(); //cycleBackgrounds(); if($('.bannerWrapper').length > 0){ var myVarCycle = setInterval(cycleBackgrounds, 4000); $(".arrow-left").click(function(){ var banners = $(".banner").length; var idSlider = $(".show").attr('id'); numSlider = idSlider.split("_"); if(numSlider[1] == 1 || numSlider[1] == "1"){ prevSlider = banners; } else prevSlider = parseInt(numSlider[1]) - 1; $(".banner").removeClass("show"); $("#slider_"+prevSlider).addClass("show"); clearInterval(myVarCycle); }); $(".arrow-right").click(function(){ var banners = $(".banner").length; var idSlider = $(".show").attr('id'); numSlider = idSlider.split("_"); if(parseInt(numSlider[1]) == parseInt(banners)) { nextSlider = 1; } else nextSlider = parseInt(numSlider[1]) + 1; $(".banner").removeClass("show"); $("#slider_"+nextSlider).addClass("show"); clearInterval(myVarCycle); }); $('.lastPostsSliderPpal').show(1000); } /* MENU VERSIÓN RESPONSIVE*/ if($( window ).width() < 992) { $(".linkResponsive").css("display","block"); $(".pickResponsive").css("display","block"); } else{ $(".linkResponsive").css("display","none"); $(".pickResponsive").css("display","none"); $('#navbarSupportedContent').animate({ opacity: '1', block: 'block', }); } /* Every time the window is scrolled ... */ $(window).scroll( function(){ /* Check the location of each desired element */ $('.module_home').each( function(i){ var bottom_of_object = $(this).offset().top + $(this).outerHeight(); var bottom_of_window = $(window).scrollTop() + $(window).height()*2; /* If the object is completely visible in the window, fade it it */ if( bottom_of_window > bottom_of_object ){ $(this).animate({'opacity':'1'},1500); } }); }); /* scroll arrow home*/ $("#sectionArrow a").click(function(){ $(document).on('click', 'a[href^="#"]', function (event) { event.preventDefault(); var ancla=$(this).attr("href"); ancla=ancla.replace("#",""); $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top - 83 }, 500, 'linear'); }); }); //******************************************************************************************************************************************************// //******************************************************************************************************************************************************// // GALLERY COLORBOX // //******************************************************************************************************************************************************// //******************************************************************************************************************************************************// //Examples of how to assign the Colorbox event to elements $(".group1").colorbox({rel:'group1'}); //Example of preserving a JavaScript event for inline calls. $("#click").click(function(){ $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); return false; }); //Examples of how to assign the Colorbox event to elements $(".group2").colorbox({rel:'group2'}); //Example of preserving a JavaScript event for inline calls. $("#click").click(function(){ $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); return false; }); //Examples of how to assign the Colorbox event to elements $(".group3").colorbox({rel:'group3'}); //Example of preserving a JavaScript event for inline calls. $("#click").click(function(){ $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); return false; }); //Examples of how to assign the Colorbox event to elements $(".group4").colorbox({rel:'group4'}); //Example of preserving a JavaScript event for inline calls. $("#click").click(function(){ $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); return false; }); $.cookieBar({ message: '<h2>Your privacy is important for us</h2> <p>Both our partners and we use cookies on our website to personalize content and advertising, provide functionalities to social networks or analyze our traffic. By clicking you consent to the use of this technology on our website. You can change your mind and personalize your consent whenever you want by returning to this website.</p>', acceptButton: true, acceptText: 'I understand', acceptFunction: null, declineButton: false, declineText: 'Disable Cookies', declineFunction: null, policyButton: true, policyText: 'Cookies Policy', policyURL: '/en/sdb_guide/Cookies_Policy', autoEnable: true, acceptOnContinue: false, acceptOnScroll: false, acceptAnyClick: false, expireDays: 365, renewOnVisit: false, forceShow: false, effect: 'slide', element: 'body', append: false, fixed: true, bottom: true, zindex: '', domain: 'www.example.com', referrer: 'www.example.com' }); });/* $(document).on('click', 'a[href^="#"]', function (event) { event.preventDefault(); var ancla=$(this).attr("href"); ancla=ancla.replace("#",""); $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear'); });*/ /* $(document).on('click', 'a[href^="#"]', function (event) { event.preventDefault(); var ancla=$(this).attr("href"); ancla=ancla.replace("#",""); //alert("ancla: " + ancla); if(ancla == 'home'){ $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear'); } else{ if($("#"+ancla).length > 0){ //$('html, body').animate({ //marginTop: '-83px', //scrollTop: $("[id='"+ancla+"']").offset().top, //}, 500); $('.contentPage').animate({ scrollTop: $("[id='"+ancla+"']").offset().top, }, 500); } else{ //$('html, body').animate({ // scrollTop: $('.contentPage').offset().top, //}, 500); // var eTop = $('.contentPage').offset().top; //get the offset top of the element // log(eTop - $(window).scrollTop()); //position of the ele w.r.t window // $(window).scroll(function() { //when window is scrolled // log(eTop - $(window).scrollTop()); // }); //alert(eTop); $('.contentPage').animate({ scrollTop: $("[name='"+ancla+"']").offset().top, }, 500); //alert($("[name='"+ancla+"']").offset().top); } } });*/ </script> </html>