2018-03-03 15:00:43 +00:00
|
|
|
gstore.add('popup_click', function(){
|
2018-03-03 15:21:41 +00:00
|
|
|
|
|
|
|
/* (1) Open popup */
|
2018-03-03 15:25:39 +00:00
|
|
|
window.pop = window.open('https://sso.univ-pau.fr/cas/login?service='+window.api.target+'cas', '_blank', 'location=no,height=1024,width=1024,scrollbars=yes,status=no');
|
2018-03-03 15:21:41 +00:00
|
|
|
|
|
|
|
/* (2) If popup closed -> abort */
|
|
|
|
window.popint = setInterval(function(){ window.pop.closed && window.cas_callback(null); }, 500);
|
|
|
|
|
2018-03-03 15:00:43 +00:00
|
|
|
});
|
2018-03-03 15:21:41 +00:00
|
|
|
|
|
|
|
gstore.add('login_class', 'neutral');
|
2018-03-06 17:02:04 +00:00
|
|
|
gstore.add('login_error_text', '');
|
|
|
|
|
|
|
|
|
|
|
|
gstore.add('icon', { it: null, a: new Audio('https://cloud.xdrm.io/index.php/s/6oJe9GzzrwpqJgj/download') });
|
|
|
|
gstore.get.icon.start = (function(e){ this.stop().it=setInterval((function(){ this.play(); }).bind(this.a), 100*100); }).bind(gstore.get.icon);
|
|
|
|
gstore.get.icon.stop = (function(e){ !isNaN(parseInt(gstore.get.icon.it)) && clearInterval(gstore.get.icon.it); return this; }).bind(gstore.get.icon);
|
|
|
|
|