ul class nav nav-tabs role tablist li role presentation class active h

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#login">Вход</a></li>
<li role="presentation"><a href="#signup">Регистрация</a></li>
<li role="presentation"><a href="#forgot">Забыли пароль ?</a></li>
</ul>
<br/>
@include('forms.auth.login')
@include('forms.auth.signup')
@include('forms.auth.forgot')
<script>
$('#forgot').hide();
$('#signup').hide();
$('#login').show();
$('#login').addClass('animated bounceInRight');
var unionSelector = '#forgot, #signup, #login';
var $forms = $(unionSelector);
window.addEventListener('hashchange', function () {
$forms.each(function () {
var $form = $(this);
if ($form.is(location.hash)) {
$form.show();
$form.addClass('animated bounceInRight');
$('li.active').removeClass('active');
$('a[href="' + location.hash + '"]').parent().addClass('active');
} else {
$form.hide();
}
});
}, false);
</script>