campagne-adhesion-2014-www/javascripts/site.js

23 lines
2.1 KiB
JavaScript

/*
@licstart The following is the entire license notice for the JavaScript code in this page.
campagne d'adhésion pour l'association de Logiciels Libre "April"
Copyright (C) 2013 April
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@licend The above is the entire license notice for the JavaScript code in this page.
*/
(function(){var t,n;jQuery(function(){return $("#radioAutreMontant").click(function(){return $("#autreMontant").focus()}),$("#autreMontant").focus(function(){return $("#radioAutreMontant").prop("checked",!0)}),$("#turingtest").val(Math.round(Date.now()/1e3)),t(),$.localScroll(),$(window).scroll(function(){var t;return t=$(this).scrollTop()+20,$(".zone").each(function(){var r,o;return r=$(this),o=$("nav a."+r.attr("id")),null==r.data("x")&&n(),r.data("x")<=t&&t<=r.data("x_to")?o.addClass("active"):o.removeClass("active")})})}),n=function(){var t;return t=null,$(".zone").each(function(){var n;return n=$(this),n.data("x",n.position().top),null!=t&&t.data("x_to",n.position().top),t=n}),t.data("x_to",$(document).height())},t=function(){return $("#soutiens").load("wiki.html #bodyContent div > ul li *",function(){return $(this).children("a").each(function(){var t,n;return t=$(this),n=t.next(),n.attr("alt",t.html()),t.attr("title",t.html()).html(n),/twitter/.test(t.attr("href"))?t.attr("title"," -- "+t.attr("title")+" -- \n\nNous encourageons l'usage de Pump.io plutot que Twitter, privateur. \nPour en savoir plus \xe0 propos des probl\xe8mes pos\xe9s par Twitter selon la FSF, \nallez sur https://www.fsf.org/twitter"):void 0})})}}).call(this);