var totpunti = 47;var gal; function galleria(){ //if (gal) {alert("distruggo"); gal.destroy();} $("#gallery").galleria({ width: 678, height: 250, /*initialTransition: 'flash',*/ transition: 'pulse', _showFullscreen: false, extend: function() { gal = $('#gallery').data('galleria'); this.play(4000);} }); // if ($("#gallery"))Galleria.loadTheme('galleria/themes/twelve/galleria.twelve.js'); } function sendContactToAz(){ var id = $("#messaggio").attr("rel"); var testomex = $("#messaggio").val(); var copyonemail = ($("#checkcopy").attr("checked") == "checked")?1:0; $.ajax({ type: "POST", url: "operator.php?area=candidato&azione=sendContact&id="+id+"&rnd="+Math.random(), data:{testo: encodeURIComponent(testomex), copyonemail:copyonemail}, success: function(result) { $.gritter.add({title: 'CONTATTA AZIENDA',text: ' '+result}); $.prettyPhoto.close(); } }); } function ELCVALL(){ $('.eliminaCVallegato').unbind(); $('.eliminaCVallegato').click(function(e){ e.preventDefault(); questo = $(this); idito = $(this).attr("rel"); filename = $(this).attr("filename"); $.ajax({ type: "POST", url: "operator.php?area=candidato&azione=eliminaCVallegato&id="+idito+"&filename="+filename+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##'); $.gritter.add({title: 'ELIMINA ALLEGATO CV',text: ' '+feedback[1]}); $('#regcurriculum').val(0); $(questo).parent().html(""); controllaREG(); } }); }) } function DELCAND(){ $(".icon_delcandfmaz").unbind(); $(".icon_delcandfmaz").click(function(e){ e.preventDefault(); var idcandidatura = $(this).attr("rel"); $.ajax({ type: "POST", url: "operator.php?area=azienda&azione=delcand&id="+idcandidatura+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##'); if (feedback[0] != 0){ $('#rigacandidature'+idcandidatura).remove(); } $.gritter.add({title: 'ELIMINA CANDIDATURA',text: ' '+feedback[1]}); } }); }); } function DELPREFCV(){ $(".icon_delprefcv").unbind(); $(".icon_delprefcv").click(function(e){ e.preventDefault(); var iddelprefcv = $(this).attr("rel"); var riga = $(this).attr("riga"); $.ajax({ type: "POST", url: "operator.php?area=azienda&azione=delpref&id="+iddelprefcv+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##'); if (feedback[0] != 0){ //alert("ID CURR:"+feedback[2]) $('#rigapreferiti'+riga).remove(); $('.salvato').each(function(){ if($(this).hasClass('cv'+feedback[2])){$(this).removeClass("off").removeClass("salvato").addClass("icon_salvacandidatura").attr("href","#").html("salva");} SALVACANDIDATURA() }) } $.gritter.add({title: 'ELIMINA PREFERITI',text: ' '+feedback[1]}); } }); }); } function VEDI(){ $("a.vediannuncio").unbind('click'); $().prettyPhoto({default_width:680,show_title: false,social_tools: '',changepicturecallback:function(){ICV();galleria(); ISALVA(); SEGUIAZ() }}); $("a.vediannuncio").click(function(e){ e.preventDefault(); $.prettyPhoto.open($(this).attr("href"), 'title') }); // $("a.vediannuncio[rel^='prettyPhoto']").unbind('click'); //$("a.vediannuncio[rel^='prettyPhoto']").prettyPhoto({default_width:680,show_title: false,social_tools: '',changepicturecallback:function(){galleria();}}); /* $(".vediannuncio").unbind('click'); $(".vediannuncio").click(function(e){ e.preventDefault(); //location.href='annuncio.php?id='+$(this).attr('id').replace("vedi","")+'&tipo='+$(this).attr('tipo') $.prettyPhoto.open('annuncio_view.php?id='+$(this).attr('id').replace("vedi","")+'&tipo='+$(this).attr('tipo')+'&ajax=true&width=680&rnd='+Math.random(),'Vedi Annuncio',''); }); */ } function SEGUIAZ(){ $("a.seguiaz").unbind('click'); $(".seguiaz").click(function(e){ e.preventDefault(); $.gritter.add({title: 'SEGUI AZIENDA', text: 'Questa funzione si può attivare dopo che avete eseguito il Login da utente Candidato'});}); } function dataodierna(){ var data = new Date(); var gg, mm, aaaa; gg = data.getDate() + "/"; mm = data.getMonth() + 1 + "/"; aaaa = data.getFullYear(); return (gg+mm+aaaa); } function SALVACANDIDATURA(){ $(".icon_salvacandidatura").unbind(); $(".icon_salvacandidatura").click(function(e){ e.preventDefault(); }); } function STAMPACV(){ $(".stampailmiocv").unbind(); $('.stampailmiocv').click(function(e){ e.preventDefault(); $('#stampa').html($('#CVcontent').html()); if($('.pp_pic_holder').size() > 0){$.prettyPhoto.close();} setTimeout(function(){window.print()},300); }); } function CV(){ $(".icon_cv").unbind(); $(".icon_cv").click(function(e){ e.preventDefault(); if($(this).attr("servicecounter") && $(this).attr("servicecounter") !=""){ elementi = $('#'+$(this).attr("servicecounter")).html().split('/') if (elementi[0] > 0) { elementi[0]-=1; $('#'+$(this).attr("servicecounter")).html( elementi[0]+"/"+elementi[1]); } } }); } function ISALVA(){ $("a.icon_salva").unbind('click') $("a.savefmannuncio").unbind('click'); $(".icon_salva, .savefmannuncio").click(function(e){ e.preventDefault(); $.gritter.add({title: 'SALVA',text: 'Per salvare gli annunci nei tuoi Preferiti è necessario effettuare il login o registrarsi.'}); }); } function ICV(){ // $(".icon_salva").unbind('click'); perchè c'era questo? $(".icon_inviacv").unbind('click'); $(".icon_inviacv").click(function(e){ e.preventDefault(); url=($(this).attr("href")); if($('.pp_pic_holder').size() > 0){$.prettyPhoto.close();} setTimeout(function(){ $.prettyPhoto.open(url, 'title');},300); }); //$("a.icon_inviacv[rel^='prettyPhoto']").prettyPhoto({default_width:680,show_title: false,social_tools: '',changepicturecallback:function(){AMICO();}}); } function TIPPING(){ $('.tip').unbind('hover'); $('.tip').hover(function(){$(this).SetBubblePopupInnerHtml($(this).attr("tip"))}); $('.tip').CreateBubblePopup({ position : 'top', align : 'center', distance : '26px', innerHtml: $(this).attr("tip"), innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); } function IOFF(){ $(".off").unbind('click'); $('.off').click(function(e){ e.preventDefault(); }); } function AMICO(){ $(".inviaamico").unbind('click'); $(".inviaamico").click(function(e){ e.preventDefault(); $.gritter.add({title: 'INVIA AD AMICO',text: 'Per inviare un annuncio ad un amico è necessario essere registrati ed aver effettuato il login'}); }); } function sendICV(id){ $.gritter.add({title: 'INVIA IL TUO CURRICULUM',text: 'Per inviare il tuo CV a questa azienda e candidarti per l\'offerta proposta è necessario effettuare il login o registrarsi come candidato.'}); } function isValidEmail(email){ var RegExp = /^((([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+(\.([a-z]|[0-9]|!|#|$|%|&|'|\*|\+|\-|\/|=|\?|\^|_|`|\{|\||\}|~)+)*)@((((([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.))*([a-z]|[0-9])([a-z]|[0-9]|\-){0,61}([a-z]|[0-9])\.)[\w]{2,4}|(((([0-9]){1,3}\.){3}([0-9]){1,3}))|(\[((([0-9]){1,3}\.){3}([0-9]){1,3})\])))$/ if(RegExp.test(email)){ return true; }else{ return false; } } function stacca(){ if ($('#mapcontainer').css('position') == "fixed"){ $('#mapcontainer').css('position', 'relative'); $('#mapcontainer').css('top', '0px'); $('#mapcontainer').css('left', '0px'); $('#handle').css('display', 'none'); $('#maptitle').css('display', 'block'); //$('#mapcontainer').css('padding', '0px'); }else{ $('#mapcontainer').css('position', 'fixed'); $('#mapcontainer').css('top', '10px'); $('#mapcontainer').css('left', '10px'); $('#maptitle').css('display', 'none'); $('#handle').css('display', 'block'); //$('#mapcontainer').css('padding', '10px'); } } function checkSearch(){ if (($('#cosa').val()=="" || $('#cosa').val()=="Cosa") && $('#Searchmansione0').val()==null && ($('#aziendaav').val()=="" || $('#aziendaav').val()=="Azienda") ){ $.gritter.add({title: 'Ricerca',text: 'E\' necessario che la tua ricerca sia più precisa, specificando:
- Cosa
oppure
- Reparto e Mansione
oppure
- Azienda' }); return false; } if ( $('#cosa').val().length<4 && $('#cosa').val()!="Cosa"){ $.gritter.add({title: 'Ricerca',text: 'Inserire un termine di ricerca di almeno 4 caratteri.'}); return false; } return true; } function animateNumber($input, num, duration, easing) { $input .data("start", Math.ceil($input.html())) .animate({"val":Math.ceil(num)}, { easing: easing == undefined ? "linear" : easing, duration: duration == undefined ? 500 : Math.ceil(duration), step: function(fin,obj) { var $this = jQuery(this); var start = Math.ceil($this.data("start")); $this.html(Math.ceil((fin-start)*obj.state) + start ); } }); } var punti = 0; var pesopunto = (19/40); var y = 40*punti/19; var arraypunti = new Array(0,19,8,6,3,3,6,2); var arrayperc = new Array(0,40,17,12,6,6,12,4); function controllaREG(){ cont = 0; punti = 0; elenco = ""; campireg = new Array(); $('.reg').each(function(){ campospecifico = $(this).attr('name').replace(/[^A-Za-z]/g, ""); if (campireg.indexOf(campospecifico) == -1 ){ campireg.push(campospecifico); if ($(this).attr('bak') !="" && $(this).attr('bak') !=undefined && $(this).val()!=$(this).attr('bak')){ punti=punti+1; elenco+="OK"; //alert($(this).attr('name')) //alert($(this).attr('name')+" : +1 bak") //alert($(this).attr('name')+" : 1"+"tipo1/bak:"+$(this).attr('bak')); } else if ($(this).attr('bak') == undefined && $(this).prop('tagName') != "SELECT"){ elenco+="
qui non dovrei esserci"; //alert("UNDEFINED:"+$(this).attr('name')+"/VAL:"+$(this).val()) //alert($(this).attr('name')+" : NO BAK, no select") //if ($(this).attr('name') == "pwd" && $(this).val() != "") {punti+=1;} //if ($(this).attr('name') == "privacy" && $(this).attr("checked") == "checked") {punti=punti+1;} } else if ($(this).prop('type') == "password" && $(this).val()!=""){ punti=punti+1; elenco+="OK"; } else if ($(this).prop('tagName') == "SELECT" && $(this).val() != "s" && $(this).val() != null && $(this).val() != 0 && $(this).prop('type') != "select-multiple") { punti=punti+1; elenco+="OK"; //alert($(this).attr('name')+"/"+$(this).val()) //alert($(this).attr('name')+" : SELECT") //alert($(this).attr('name')+" : 1"+"tipo3/bak:"+$(this).attr('bak')); } else if ($(this).prop('tagName') == "SELECT" && $(this).prop('type') == "select-multiple" && $(this).val() != null ) { selezionati = $(this).multiselect("getChecked").map(function(){return this.value;}).get(); if (selezionati!="" && selezionati!="s"){ punti=punti+1;elenco+="OK";} } else{ if ($(this).attr('name') == "pwd" && $(this).val()!="") punti=punti+1; if ( $(this).prop('type') == "checkbox" && $(this).attr("checked") == "checked") {punti=punti+1;elenco+="OK";} //alert($(this).attr('name')+"/"+$(this).prop('tagName')+" :NO") } }else{ //alert(campospecifico+" esiste"); } elenco+=$(this).attr('name')+ " - " +$(this).prop('tagName')+ " - "+ $(this).prop('type') + " - "+ $(this).val()+" - "+$(this).attr("checked") +"
"; cont++; }) //alert("TOT campi con reg:"+cont) // alert("peso:"+pesopunto+"/punti:"+punti+"/totpunti:"+totpunti) percentualerimanente = 0-0; //alert('-'); //y = Math.ceil(arrayperc[$('#tabgroup').val()]*punti/arraypunti[$('#tabgroup').val()]); y = Math.ceil((100*punti)/47); valorenormale = Math.ceil(percentualerimanente+y); if (valorenormale > 100) valorenormale = 100; x = Math.ceil( 217 * (valorenormale) /100 ); $('#cursore').animate({left : x+"px" }, 500, function() { // Animation complete. }); //$('#monitor').html(elenco); //$('#monitor').append("
"+cont+" / Y:"+y+" - rimanente:"+percentualerimanente); animateNumber($("#completitionperc"), valorenormale, 1500, "swing"); } function eliminaDiv(what){ a = confirm("Sei sicuro di voler eliminare questo elemento?") if (a) $("#"+what).remove(); //$(".reg").unbind('blur'); controllaREG(); } function multiInit(){ bakker(); $('.multis').multiselect({checkAllText: 'Seleziona Tutti',uncheckAllText: 'DEseleziona Tutti',noneSelectedText: 'Seleziona',selectedText: '# selezionati',selectedList: 10, height: 'auto'}); $(".multis").bind("multiselectclick", function(event, ui){ var array_of_checked_values = $(this).multiselect("getChecked").map(function(){ return this.value; }).get(); //$(".reg").unbind('blur'); if (ui.value == 0 && ui.checked){ $(this).multiselect('uncheckAll'); $(this).val(0); $(this).multiselect('refresh'); }else if (ui.value != 1){ $(this).multiselect("widget").find(":checkbox").each(function(){ if ($(this).attr('value') == 0) $(this).removeAttr("checked"); }); }else if (ui.value == 1 && ui.checked){ $(this).multiselect('uncheckAll'); $(this).val(1); $(this).multiselect('refresh'); } /* event: the original event object ui.value: value of the checkbox ui.text: text of the checkbox ui.checked: whether or not the input was checked or unchecked (boolean) */ controllaREG(); }); $('.ajaxChainFields').change(function() { chainato = $(this).attr('chainedTo') collegato = "#"+chainato $('#img-'+$(this).attr('chainedTo')).addClass("dispB"); $.ajax({ type: "GET", url: "operator.php?area=reparto&azione=getMansione&reparto="+$(this).val()+"&rnd="+Math.random(), dataType: "xml", success: function(xml) { var option = ""; $(collegato).empty() $(xml).find('voce').each(function(){ option= $('').attr("value", $(this).attr('id')).text(" "+$(this).text()); $(collegato).append(option); }); $(collegato).multiselect(state = 'enable'); $(collegato).multiselect('refresh'); $(collegato).multiselect('uncheckAll'); $('#img-'+chainato).removeClass("dispB").addClass("dispN"); } }); }); $('.ajaxChainFieldsNoMulti').change(function() { chainato = $(this).attr('chainedTo') collegato = "#"+chainato $('#img-'+$(this).attr('chainedTo')).addClass("dispB"); $.ajax({ type: "GET", url: "operator.php?area=reparto&azione=getMansione&reparto="+$(this).val()+"&scegli=1&rnd="+Math.random(), dataType: "xml", success: function(xml) { var option = ""; $(collegato).empty() $(xml).find('voce').each(function(){ option= $('').attr("value", $(this).attr('id')).text(" "+$(this).text()); $(collegato).append(option).removeAttr('disabled'); }); $('#img-'+chainato).removeClass("dispB").addClass("dispN"); } }); }); } var collegato; var chainato; function bakker(){ $('.bak').focus(function(){ if($(this).val() == $(this).attr('bak')) $(this).val("") }) $('.bak').blur(function(){ if($(this).val() == "") $(this).val($(this).attr('bak')) }) } $.fn.passwordStrength = function( options ){ return this.each(function(){ var that = this;that.opts = {}; that.opts = $.extend({}, $.fn.passwordStrength.defaults, options); that.div = $(that.opts.targetDiv); that.defaultClass = that.div.attr('class'); that.percents = (that.opts.classes.length) ? 100 / that.opts.classes.length : 100; v = $(this); if( typeof el == "undefined" ) this.el = $(this); var s = getPasswordStrength (this.value); var p = this.percents; var t = Math.floor( s / p ); if( 100 <= s ) t = this.opts.classes.length - 1; this.div .removeAttr('class') .addClass( this.defaultClass ) .addClass( this.opts.classes[ t ] ); v = $(this) .keyup(function(){ if( typeof el == "undefined" ) this.el = $(this); var s = getPasswordStrength (this.value); var p = this.percents; var t = Math.floor( s / p ); if( 100 <= s ) t = this.opts.classes.length - 1; this.div .removeAttr('class') .addClass( this.defaultClass ) .addClass( this.opts.classes[ t ] ); }) .after('Genera Password') .next() .click(function(){ x = randomPassword(); $("#rippwd").val(x); $("#pwd").focus(); $(this).prev().val(x).trigger('keyup'); return false; }); }); function getPasswordStrength(H){ var D=(H.length); if(D>5){ D=5 } var F=H.replace(/[0-9]/g,""); var G=(H.length-F.length); if(G>3){G=3} var A=H.replace(/\W/g,""); var C=(H.length-A.length); if(C>3){C=3} var B=H.replace(/[A-Z]/g,""); var I=(H.length-B.length); if(I>3){I=3} var E=((D*10)-20)+(G*10)+(C*15)+(I*10); if(E<0){E=0} if(E>100){E=100} return E } function randomPassword() { var chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$_+"; var size = 10; var i = 1; var ret = "" while ( i <= size ) { $max = chars.length-1; $num = Math.floor(Math.random()*$max); $temp = chars.substr($num, 1); ret += $temp; i++; } return ret; } }; $.fn.passwordStrength.defaults = { classes : Array('is10','is20','is30','is40','is50','is60','is70','is80','is90','is100'), targetDiv : '#passwordStrengthDiv', cache : {} } function sendContact() { var id = $("#messaggio").attr("rel"); var testomex = $("#messaggio").val(); var copyonemail = ($("#checkcopy").attr("checked") == "checked")?1:0; $.ajax({ type: "POST", url: "operator.php?area=azienda&azione=sendContact&id="+id+"&rnd="+Math.random(), data:{testo: testomex, copyonemail:copyonemail}, success: function(result) { $.gritter.add({title: 'CONTATTA CANDIDATO',text: ' '+result}); $.prettyPhoto.close(); } }); } function CVPDF(){ $('#CVPDF').unbind(); $('#CVPDF').click(function(e){ e.preventDefault(); location.href='openpdf_'+$(this).attr("rel")+".html"; }) } $(document).ready(function(){ DELPREFCV(); DELCAND(); ELCVALL(); CVPDF(); $("#gallery").galleria({ width: 678, height: 250, /*initialTransition: 'flash',*/ transition: 'pulse', _showFullscreen: false, extend: function() { gal = $('#gallery').data('galleria'); this.play(4000);} }); $("a[class^='disabilitata']").click(function(e){ e.preventDefault(); $('#expand').click(); $('html, body').animate({ scrollTop: 0 }, 600); }); if ($("#gallery"))Galleria.loadTheme('galleria/themes/twelve/galleria.twelve.js'); $(".toggle_container").hide(); $("#ricav").click(function(){ $(".toggle_container").slideToggle("fast"); if ($(this).attr("id") == "ricav"){ if ($('#cosadove input').attr("disabled") == "disabled") { $('#aziendaav').val('Azienda'); $('#doveav').val('Dove'); $('#contratto :nth-child(1)').attr('selected', 'selected'); $('#reparto :nth-child(1)').attr('selected', 'selected'); $('#Searchmansione0').empty(); $('#Searchmansione0').multiselect(state = 'disable'); $('#Searchmansione0').multiselect('refresh'); } ($('#cosadove input').attr("disabled") == "disabled") ? $('#cosadove input').removeAttr("disabled") : $('#cosadove input').attr("disabled","disabled"); $('#cosadove').toggleClass("deactive") } }); $('#close').click(function() { $('#login_bar').animate({ height: '30px' }, 'medium', function() { }); }); $('#expand').click(function() { if($('#login_bar').css("height")=="300px"){ $('#login_bar').animate({height:30},'medium'); }else{ $('#login_bar').animate({height:300},'medium'); } }) $('#logout').click(function() { location.href = 'index.php?logout'; }); $("a[rel^='prettyPhoto']").prettyPhoto({default_width:680,social_tools: '',changepicturecallback:function(){ if ($('.pp_overlay').css("height")<$('.pp_pic_holder').height()+$('.pp_pic_holder').position().top)$('.pp_overlay').css("height",$('.pp_pic_holder').height()+$('.pp_pic_holder').position().top); //alert($('.pp_content_container').height()+$('.pp_content_container').position().top); } }); $(".delcand").click(function(e){ e.preventDefault(); questo = $(this); a = confirm("Sei sicuro di voler eliminare questo elemento?\nConfermando verrà revocata la tua candidatura all'offerta in questione.\nVuoi procedere?") if (a) { var idito = $(this).attr('id').replace("delcand",""); $.ajax({ type: "GET", url: "operator.php?area=all&azione=delcand&id="+idito+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##') //if (feedback[0]) $("#rigadelcand"+idito).remove(); $(questo).removeClass("delcand").addClass("off"); if (feedback[0]) { cella = $("#rigadelcand"+idito).children("td.posizione"); $(cella).html( $(cella).html()+"
(Candidatura revocata)"); } $.gritter.add({title: 'ELIMINA CANDIDATURA',text: ' '+feedback[1]}); } }); } }); $(".delann").click(function(e){ e.preventDefault(); a = confirm("Sei sicuro di voler eliminare questo elemento?") if (a) { var idito = $(this).attr('id').replace("delann",""); $.ajax({ type: "GET", url: "operator.php?area=all&azione=delann&id="+idito+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##') if (feedback[0]) $("#rigadelann"+idito).remove(); $.gritter.add({title: 'ELIMINA ANNUNCIO',text: ' '+feedback[1]}); } }); } }); function DELAZSBYNAME(){ $(".delazsbyname").unbind('click'); $(".delazsbyname").click(function(e){ e.preventDefault(); a = confirm("Sei sicuro di voler eliminare questo elemento?") if (a) { var idito = $(this).attr('id').replace("delazsbyname",""); $.ajax({ type: "GET", url: "operator.php?area=candidato&azione=delazsbyname&id="+idito+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##') if (feedback[0]) $("#delazsbyname"+idito).remove(); $.gritter.add({title: 'ELIMINA AZIENDA SEGUITA',text: ' '+feedback[1]}); } }); } }); } $(".delazs").click(function(e){ e.preventDefault(); a = confirm("Sei sicuro di voler eliminare questo elemento?") if (a) { var idito = $(this).attr('id').replace("delazs",""); $.ajax({ type: "GET", url: "operator.php?area=candidato&azione=delazs&id="+idito+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##') if (feedback[0]) $("#rigadelazs"+idito).remove(); $.gritter.add({title: 'ELIMINA AZIENDA SEGUITA',text: ' '+feedback[1]}); } }); } }); $(".delart").click(function(e){ e.preventDefault(); a = confirm("Sei sicuro di voler eliminare questo elemento?") if (a) { var idito = $(this).attr('id').replace("delart",""); $.ajax({ type: "GET", url: "operator.php?area=all&azione=delart&id="+idito+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##') if (feedback[0]) $("#rigadelart"+idito).remove(); $.gritter.add({title: 'ELIMINA ARTICOLO',text: ' '+feedback[1]}); } }); } }); $("a.vediarticolo[rel^='prettyPhoto']").prettyPhoto({default_width:680,show_title: false,social_tools: '',changepicturecallback:function(){AMICO();}}); $(".icon_neutro").click(function(e){ //e.preventDefault(); }); $(".seguiazbyname").click(function(e){ e.preventDefault(); var a = prompt("Indica il nome dell'azienda che intendi seguire.","scrivi qui") if (a!="" && a!="scrivi qui" && a.length>2 && a!= null){ $.ajax({ type: "GET", url: "operator.php?area=candidato&azione=seguiazbyname&name="+a+"&rnd="+Math.random(), success: function(result) { feedback = result.split('##'); if (feedback[0] == 1){ $("#tabPreferiti").append(feedback[2]) DELAZSBYNAME(); VEDI(); AMICO(); } $.gritter.add({title: 'SEGUI AZIENDA',text: ' '+feedback[1]}); } }); }else{ $.gritter.add({title: 'SEGUI AZIENDA', text: 'Inserire un nominativo azienda superiore a 2 caratteri'}); } }); $(".saveart").click(function(e){ e.preventDefault(); $.gritter.add({title: 'SALVA', text: 'Gli articoli possono venire salvati solo dopo aver eseguito il Login'});}); CV(); IOFF(); VEDI(); AMICO(); ISALVA(); SEGUIAZ(); ICV(); DELAZSBYNAME(); $(".icon_inviacv").click(function(e){ e.preventDefault(); $.prettyPhoto.open($(this).attr("href"), 'title') }); $(".tipodata").mask("99/99/9999",{placeholder:" "}); multiInit(); $('#pwd').passwordStrength(); $('#email, #ripemail, #pwd, #rippwd').bind("cut copy paste",function(e) {e.preventDefault();}); $('.reg').blur(function() {controllaREG();}); $('#cosa').smartSuggest({ src: 'include/search_suggestions.php', fillBox: true, fillBoxWith: 'fill_text', executeCode: false }); $("#map-t").toggle(function(){ $("#mapcontainer").animate({height:400},200); },function(){ $("#mapcontainer").animate({height:200},200); }); $('#mapcontainer').draggable( { handle : '#handle', stop: function(event, ui) { var top = getTop(ui.helper); ui.helper.css('position', 'fixed'); ui.helper.css('top', top+"px"); } }); function getTop(ele) { var eTop = ele.offset().top; var wTop = $(window).scrollTop(); var top = eTop - wTop; return top; } $('.help_home').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Cerca tra gli annunci
\ l\'offerta di tuo interesse', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); TIPPING(); $('.help_vetrina').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Clicca sul logo per vedere le
\ posizioni ricercate dalle aziende', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_risid').CreateBubblePopup({ position : 'top', align : 'top', innerHtml: 'Clicca per vedere l\'offerta sulla mappa.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', divStyle : {'margin-top':'-6px'}, themePath: 'img/jquerybubblepopup-themes' }); $('.help_ct').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Tutte le informazioni necessarie
\ alla tua Carriera', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_news').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Ultime notizie dal
\ mondo del turismo', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_guide').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Qui trovi le ultime notizie
\ e gli ultimi articoli!', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_risultati').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Cerca tra gli annunci elencati
\ l\'offerta di tuo interesse', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_cv_mod').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Modifica il tuo CV', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_mercato').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Sezione riservata
\ agli annunci economici', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_risultato_estero').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Cerca tra gli annunci
\ l\'offerta di tuo interesse', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_profilo_azienda').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Gestisci da qui le funzioni riservate:
\ pubblica i tuoi annunci, salva le migliori
\ candidature, le news di tuo interesse,
\ modifica i tuoi dati.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_annunci_attuali').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco dei tuoi annunci attualmente
\ pubblicati e candidature ricevute.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_azienda_preferiti').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco delle candidature
\ salvate come preferite.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_azienda_servizi_acquistati').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco di tutti gli annunci
\ ed i servizi acquistati.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_azienda_annunci_disponibili').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco degli annunci acquistati
\ e non ancora pubblicati.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_azienda_archivio_annunci').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco degli annunci scaduti.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_azienda_candidature').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Elenco dei CV ricevuti in risposta
\ alle ricerche pubblicate.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_profilo').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Gestisci da qui il tuo profilo personale;
\ completalo per candidarti in modo efficace alle offerte di lavoro.', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.help_percentuale').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Attualmente il tuo profilo è completato nella percentuale indicata.
\ Ricordiamo che più alta è la percentuale di completamento,
\ più il CV risulta appetibile alle aziende', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.semaforo_green').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'On Line', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.semaforo_yellow').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Disponibile per la pubblicazione', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.semaforo_orange').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Disponibile ma composizione incompleta', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.semaforo_red').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Scaduto', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); $('.semaforo_off').CreateBubblePopup({ position : 'left', align : 'center', innerHtml: 'Disabilitato', innerHtmlStyle: { color:'#FFFFFF', 'text-align':'left' }, themeName: 'all-grey', themePath: 'img/jquerybubblepopup-themes' }); });