git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
9ecbc3324
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
rule-41
js
international.min.js
Minify JS and CSS
hiromipaw
commited
9ecbc3324
at 2017-07-03 09:05:56
international.min.js
Blame
History
Raw
$.fn.serializeObject=function(){var c={};var b=this.serializeArray();$.each(b,function(){if(c[this.name]){if(!c[this.name].push){c[this.name]=[c[this.name]]}c[this.name].push(this.value||"")}else{c[this.name]=this.value||""}});return c};$(".nandp-form").on("submit",function(g){var a=$(g.currentTarget);var e=a.serializeObject();var b=$("#userName",a);var c=$("#userEmail",a);var h=b.val();var d=c.val();var i=false;if(!isValidEmail(d)){i=true;rumbleEl(c)}if(h===""){i=true;rumbleEl(b)}if(i){return false}var f=new easyXDM.Rpc({remote:"https://email-congress.herokuapp.com/xdm/cors/"},{remote:{request:{}}});f.request({url:"https://email-congress.herokuapp.com/signature",method:"POST",data:e},function(j){});$(".international .rightside.top.before").addClass("animate flipOutX");window.setTimeout(function(){$(".international .rightside.top.before").addClass("hidden");$(".international .rightside.top.thanks").removeClass("hidden").addClass("flipInX")},1000);return false});function getParameterByName(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=new RegExp("[\\?&]"+a+"=([^&/#]*)"),b=c.exec(location.search);return b==null?"":decodeURIComponent(b[1].replace(/\+/g," "))}if(!Object.keys){Object.keys=function(c){if(c!==Object(c)){throw new TypeError("Object.keys called on a non-object")}var a=[],b;for(b in c){if(Object.prototype.hasOwnProperty.call(c,b)){a.push(b)}}return a}}(function(){var b={org:{name:"Open Rights Group",policy:"https://www.openrightsgroup.org/privacy/"},pi:{name:"Privacy International",policy:"https://www.privacyinternational.org/privacy-and-cookies-policy"},eff:{name:"EFF",policy:"https://www.eff.org/policy"},dc:{name:"Digital Courage",policy:"http://digitalcourage.de/ueber-uns/datenschutz-bei-digitalcourage"},dg:{name:"Digitale Gesellschaft",policy:"https://digitalegesellschaft.de/uber-uns/datenschutzerklaerung/"},sd:{name:"Share Defense",policy:"http://www.shareconference.net/sh/politika-privatnosti"},oa:{name:"Oficina Antivigilancia",policy:"http://www.antivigilancia.tk/wiki/politica"},om:{name:"Open Media",policy:"https://openmedia.ca/privacy"},efa:{name:"Electronic Frontiers Australia",policy:"https://www.efa.org.au/about/privacy-policy"}};var f=Object.keys(b);var c=getParameterByName("r");var d;var a;if(typeof alwaysSelected!=="undefined"){c=alwaysSelected}if(c in b){d=b[c];a=c}else{var e=Math.floor(Math.random()*f.length);d=b[f[e]];a=f[e]}$(".org-name").text(d.name);$(".org-slug").val(a);$(".org-privacy").attr("href",d.policy);if(a==="eff"){$("#subscriber-checkbox").removeAttr("checked")}})();$(document).on("ready",function(){var a=getQueryVariable("iso");$('#userCountry option[value="'+a+'"]').attr("selected","selected")});