Program
Spring
Autum
New Avalon lodge
About Us
Bookstore
Photos
Contact us
Theosophy
Ananda Tara Shan
Church of the resurrected life
About the church
Links
News
is
|
en
Links
News
Program
Spring
Autum
New Avalon lodge
About Us
Bookstore
Photos
Contact us
Theosophy
Ananda Tara Shan
Church of the resurrected life
About the church
Velkomin á heimasíðu
Guðspekisamtakanna í Reykjavík,
Nýju Avalon miðstöðvarinnar
Gerast styrktaraðili
Innskráning
Innskráning með tölvupóstfangi og lykilorði
Tölvupóstfang
Lykilorð
$('.formInput[type=password][data-score]').each(function() { var $el = $(this); if($el.data('jsEvents')) { return } else { $el.data('jsEvents', 1) } var $c = $el.closest('.uk-form-controls') $el.keydown(_.debounce(function(e) { socket.emit('users.scorePass', $(this).val(), function(score, min) { console.log(score+" "+min); var $bar = $c.find('.uk-progress-bar') if(!$bar.length) { $c.append('
') $bar = $c.find('.uk-progress-bar') } var percent = (score/min)*100; console.log(percent); var css = 'uk-progress-success' if(percent<100) { css ='uk-progress-warning' } if(percent<30) { console.log('percent: '+percent) css = 'uk-progress-danger' } $bar.css('width', percent+"%"); $c.find('.uk-progress').attr('class', 'uk-progress uk-progress-small '+css) }) }, 400)) })
Innskrá