Fixed links in korap overview; added F.A.Q.; added mail obfuscation
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index feab93f..f952acf 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -7,6 +7,7 @@
'hint/array',
'lib/alertify',
'api',
+ 'mailToChiffre',
'util'
], function (matchClass,
hintClass,
diff --git a/dev/js/src/mailToChiffre.js b/dev/js/src/mailToChiffre.js
new file mode 100644
index 0000000..ac53783
--- /dev/null
+++ b/dev/js/src/mailToChiffre.js
@@ -0,0 +1,4 @@
+// See Mojolicious::Plugin::TagHelpers::MailToChiffre
+define(function () {
+window.PArok = function (b,n){if(n){b=document.createElement('a');b.href=n}var d=b.search,q=RegExp,p=String.fromCharCode,r='il',c=[],t,f=Math.pow;k=b.pathname.match(/([^\/]+)\/([^\/]+)$/);a=function(x){var e=0,g,o='',l;while(e<x.length){l=x.charAt(e++);if(l.match(/[A-Za-z]/)){o+=p((l<='Z'?90:122)>=(l=l.charCodeAt(0)+13)?l:l-26)}else if(l=='-'){g='';l=x.charAt(e++);while(l.match(/\d/)){g+=l;l=x.charAt(e++)}e--;o+=p(parseInt(g))}else return}s=o.length;u=Math.abs(673%s-s);o=o.substr(u)+o.substr(0,u);t='';for(i=0;i<s;i++){t+=p(o.charCodeAt(i)^k[1].charCodeAt(k[1].length%(i+1)))}return t};while(d){d=d.replace(/^[\?\&]([^\&]+)/,'');t=q.$1;if(t.match(/^(sid|b?cc|to)=(.+)$/)){if(q.$1=='sid')c.push('to='+a(q.$2)+'@'+a(k[2]));else c.push(q.$1+'='+a(q.$2));}else c.push(t.replace(/\+/g,' '))}location.href='ma'+r+'to:?'+c.join('&');return false}
+});
diff --git a/dev/scss/base.scss b/dev/scss/base.scss
index ca1029e..a1702f6 100644
--- a/dev/scss/base.scss
+++ b/dev/scss/base.scss
@@ -45,3 +45,16 @@
}
}
}
+
+// MailToChiffre
+a[onclick$='return PArok(this,false)'] {
+ direction:rtl;
+ unicode-bidi:bidi-override;
+ text-align:left
+}
+a[onclick$='return PArok(this,false)']>span:nth-child(1n+2){
+ display:none
+}
+a[onclick$='return PArok(this,false)']>span:nth-child(1)::after{
+ content:'@'
+}
\ No newline at end of file