You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today.
fantasoccer
FANTASOCCER
4302

Gli uomini assist da prendere al fantacalcio

340) { logoSmall.className = "show" } else { logoSmall.className = "hide" } }; window.addEventListener("scroll", myScrollFunc); $(document).ready(function () { $('.table').footable().on('ready.ft.table', function (e, ft) { $("[data-toggle='tooltip']").tooltip(); $(this).find('.footable-filtering-search').css('width', '100%'); $(this).find('.footable-filtering-search .input-group').css('width', '100%'); $('select.form-input').select2(); }).on('after.ft.paging', function (e) { $('[data-toggle="tooltip"]').tooltip(); $('select.form-input').select2(); }).on('after.ft.filtering', function (e) { $('[data-toggle="tooltip"]').tooltip(); $('select.form-input').select2(); }); $("a:has(span.flaticon-team-small)").addClass("link-dettaglio-partita"); }); var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(function () { $(document).ready(function () { $('div.tooltip').hide(); $("[data-toggle='tooltip']").tooltip(); $('.table').footable().on('ready.ft.table', function (e, ft) { $("[data-toggle='tooltip']").tooltip(); $(this).find('.footable-filtering-search').css('width', '100%'); $(this).find('.footable-filtering-search .input-group').css('width', '100%'); $('select.form-input').select2(); }).on('after.ft.paging', function (e) { $('[data-toggle="tooltip"]').tooltip(); $('select.form-input').select2(); }).on('after.ft.filtering', function (e) { $('[data-toggle="tooltip"]').tooltip(); $('select.form-input').select2(); }); $("a:has(span.flaticon-team-small)").addClass("link-dettaglio-partita"); //RIAPPLICO LO STILE ALLA CHECKBOX var checkbox = $("input[id='chkCompletamentoAutomatico'], input[id*='chkSeleziona'], input[id='chkPrivacy']"); if (checkbox.length) { for (var i = 0; i < checkbox.length; i++) { $(checkbox[i]).addClass("checkbox-custom").after("") } } //RIAPPLICO LO STILE ALLE COMBOBOX var combobox = $("select[id*='cmbFascia'], select[id*='cmbTermineConsegna'], select[id*='cmbDurata'], select[id*='cmbGiocatoreOfferto'], select[id*='cmbGiocatoreRichiesto'], select[id*='cmbSquadraDestinazione'], select[id*='cmbNumeroUtenti'], select[id*='cmbCampionato'], select[id*='cmbStagione'], select[id*='cmbElencoSquadre']"); for (var i = 0; i < combobox.length; i++) { var select = $(combobox[i]); select.select2({ placeholder: select.attr("data-placeholder") ? select.attr("data-placeholder") : false, minimumResultsForSearch: select.attr("data-minimum-results-search") ? select.attr("data-minimum-results-search") : -1, maximumSelectionSize: 3, selectOnBlur: false, dropdownCssClass: select.attr("data-dropdown-class") ? select.attr("data-dropdown-class") : '' }); } //RIAPPLICO LO STILE AI COUNTDOWN var countDown = $(".countdown"); for (var i = 0; i < countDown.length; i++) { var $countDownItem = $(countDown[i]), d = new Date(), type = $countDownItem.attr('data-type'), time = $countDownItem.attr('data-time'), format = $countDownItem.attr('data-format'), settings = []; // Classic style if ($countDownItem.attr('data-style') === 'short') { settings['labels'] = ['Anni', 'Mesi', 'Week', 'Gio', 'Ore', 'Min', 'Sec']; } d.setTime(Date.parse(time)).toLocaleString(); settings[type] = d; settings['format'] = format; $countDownItem.countdown(settings); } }); }); //Social share code $(document).ready(function (e) { $('.fb-share').click(function (e) { e.preventDefault(); var url = $(this).attr('fb-url'); if (url == null) url = $(location).attr('href'); FB.ui( { method: 'share', href: url, }, function (response) { } ); }); $('.tw-share').click(function (e) { e.preventDefault(); var factText = $(this).attr('tw-text'); var redirectUrl = $(this).attr('tw-url'); var hashTags = $(this).attr('tw-hashtags'); // Convert to string var factStr = factText.toString(); // Fact length var factLen = factText.length; // Formats "facts" that are too long... remove if not needed if (factLen > 103) { // max chacters allowed // trim, and allow space for '...'" var trimFact = factStr.substring(0, 70); var trimFact = trimFact.trim(); //<-- ensures the last character isnt ' ' factStr = trimFact + "..."; } // Update the link var linkRef = " https://twitter.com/intent/tweet?text= " + factStr + "&url=" + redirectUrl + "&hashtags=" + hashTags; var width = 500; var height = 500; var left = $(window).width() / 2 - 250; var top = $(window).height() / 2 - 250; window.open(linkRef, 'twwin', 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',toolbar=1,resizable=0'); }); }); $(document).ready(function () { var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elems.forEach(function (html) { var switchery = new Switchery(html); }); $('.input-group.date').datetimepicker({ locale: 'it' }); $('.info-tooltip').popover({ html: true, trigger: "hover", container: "body", //template: '

', content: function () { var element = $(this); if (element.is("[info-fbconnect]")) { return $("#PanelInfoFBConnect").html(); } else if (element.is("[data-inizio-asta]")) { return $("#PanelInfoDataInizioAsta").html(); } else if (element.is("[data-fine-asta]")) { return $("#PanelInfoDataFineAsta").html(); } else if (element.is("[prima-giornata-campionato]")) { return $("#PanelInfoPrimaGiornataCampionato").html(); } else if (element.is("[tipo-sostituzioni]")) { return $("#PanelInfoTipoSostituzioni").html(); } else if (element.is("[voti-ufficio]")) { return $("#PanelInfoVotiUfficio").html(); } else if (element.is("[modificatore-difesa]")) { return $("#PanelInfoModificatoreDifesa").html(); } else if (element.is("[modificatore-difesa-classico]")) { return $("#PanelInfoModificatoreDifesaClassico").html(); } else if (element.is("[modificatore-centrocampo]")) { return $("#PanelInfoModificatoreCentrocampo").html(); } else if (element.is("[modificatore-attacco]")) { return $("#PanelInfoModificatoreAttacco").html(); } else if (element.is("[malus-formazioneautomatica]")) { return $("#PanelInfoMalusFormazioneAutomatica").html(); } else if (element.is("[scarto-stessa-fascia]")) { return $("#PanelInfoScartoStessaFascia").html(); } else if (element.is("[scarto-fasce-diverse]")) { return $("#PanelInfoScartoFasceDiverse").html(); } else if (element.is("[riferimento-voti]")) { return $("#PanelInfoRiferimentoVoti").html(); } else if (element.is("[riferimento-assist]")) { return $("#PanelInfoRiferimentoAssist").html(); } else if (element.is("[riferimento-gol-autorete]")) { return $("#PanelInfoRiferimentoGolAutorete").html(); } else if (element.is("[riferimento-cartellini]")) { return $("#PanelInfoRiferimentoCartellini").html(); } else if (element.is("[tipo-mercato-pubblico]")) { return $("#PanelInfoTipoMercatoPubblico").html(); } else if (element.is("[apertura-anticipata]")) { return $("#PanelInfoAperturaAnticipata").html(); } else if (element.is("[descrizione-serviziopremium]")) { return element.attr("descrizione-serviziopremium"); } else if (element.is("[info-bonus-extra-gol]")) { return $("#PanelInfoBonusExtraGol").html(); } else if (element.is("[info-bonus-doppiette]")) { return $("#PanelInfoBonusDoppiette").html(); } else if (element.is("[info-bonus-triplette]")) { return $("#PanelInfoBonusTriplette").html(); } else if (element.is("[info-bonus-over-triplette]")) { return $("#PanelInfoBonusOverTriplette").html(); } else if (element.is("[info-bonus-cartellini]")) { return $("#PanelInfoBonusCartellini").html(); } else if (element.is("[info-squadra]")) { return $("#PanelInfoSquadra").html(); } else if (element.is("[tipo-formazione-automatica]")) { return $("#PanelTipoFormazioneAutomatica").html(); } else if (element.is("[durata-offerte]")) { return $("#PanelDurataOffertePubbliche").html(); } else if (element.is("[taglio-calciatore]")) { return $("#PanelTaglioCalciatore").html(); } else if (element.is("[offerta-base-mercato]")) { return $("#PanelOffertaBaseMercato").html(); } else if (element.is("[votoufficio-squadrariposa]")) { return $("#PanelInfoVotoUfficioSquadraRiposa").html(); } else if (element.is("[termine-consegna-formazione]")) { return $("#PanelTermineConsegnaFormazione").html(); } else if (element.is("[impegna-crediti-offerte]")) { return $("#PanelImpegnaCreditiOfferte").html(); } else if (element.is("[info-utente-premium]")) { return element.attr("info"); } else if (element.is("[numero-max-riserve]")) { return $('#PanelNumeroMaxRiserve').html(); } else if (element.is("[applica-scarto-fascia0]")) { return $('#PanelApplicaScartoFascia0').html(); } else if (element.is("[attivazione-automatica]")) { return $("#PanelInfoAttivazioneAutomatica").html(); } else if (element.is("[numero-max-operazioni]")) { return $('#PanelInfoNumeroMaxOperazioni').html(); } else if (element.is("[nascondi-formazione]")) { return $('#PanelInfoNascondiFormazione').html(); } else if (element.is("[modalita-calcolo]")) { return $('#PanelModalitaCalcolo').html(); } else if (element.is("[tipo-classifica]")) { return $('#PanelTipoClassifica').html(); } else { return element.attr("info"); } } }).on('click mousedown mouseup', 'a[data-toggle=popover],input[data-toggle=popover],img[data-toggle=popover]', function () { $('a[data-toggle=popover],input[data-toggle=popover],img[data-toggle=popover]').popover('destroy'); }); }) function DisplayMessageEsito(lang, operazione, esito) { $('#overlay_MessaggioEsito').fadeIn('fast'); $('#layer_MessaggioEsito').fadeIn('fast'); var imgIcoMsg = $('#layer_MessaggioEsito')[0].querySelector("div.msg_ico img"); var txtMessaggio = $('#layer_MessaggioEsito')[0].querySelector("div.msg_text"); $('div.chiudi').click( function () { $('#overlay_MessaggioEsito').fadeOut('fast'); $('#layer_MessaggioEsito').hide(); }); //chiusura emergenza $("#overlay_MessaggioEsito").click( function () { $(this).fadeOut('fast'); $('#layer_MessaggioEsito').hide(); }); var messaggio = ''; switch (operazione) { case "SetAttendiRecuperi": if (esito) { imgIcoMsg.src = '/Images/icona_ok.png'; messaggio = "L'operazione è stata eseguita correttamente per la giornata selezionata! "; } else { imgIcoMsg.src = '/Images/icona_ops.png'; messaggio = "Non si dispone dei permessi necessari per effettuare l'operazione oppure qualcosa è andato storto! "; messaggio += "Prova a ricaricare la pagina ed effettua nuovamente l'operazione."; } break; } txtMessaggio.innerHTML = messaggio; } //sticky sidebar window.optiload = window.optiload || {}; optiload.cmd = optiload.cmd || []; window.optiload.cmd.push(function () { window.optiload.addEventListener("ready", function () { if (optiload.$('.sticky').length) { // make sure "#sticky" element exists var el = optiload.$('.sticky').last(); var endItem = optiload.$('.infinite-item-end').last(); if (optiload.$(window).width() >= 768) { // dalla larghezza dell'ipad in su optiload.$(window).scroll(function () { // scroll event var stickyTop = el.closest(".sticky-wrapper").offset().top - 95; // returns number var stickyHeight = el.height(); el.closest(".sticky-wrapper").height(stickyHeight); var limit = endItem.offset().top - 40; var windowTop = optiload.$(window).scrollTop(); // returns number if (stickyTop < windowTop) { el.css({ position: 'fixed', top: 95 }); } else { el.css('position', 'static'); } if ((limit - stickyHeight) < windowTop + 95) { var diff = limit - stickyHeight - windowTop; el.css({ top: diff }); } }); } } }); });
chiudi