mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
添加focus动画
This commit is contained in:
parent
ff271afd5b
commit
833fa05f82
@ -26,13 +26,11 @@
|
|||||||
|
|
||||||
<div class="container" style="top:50%;margin-top:-300px">
|
<div class="container" style="top:50%;margin-top:-300px">
|
||||||
|
|
||||||
<form onsubmit="return false;" method="post" class="content layui-form">
|
<form onsubmit="return false;" data-auto="true" method="post" class="content layui-form">
|
||||||
<div class="people">
|
<div class="people">
|
||||||
<div class="tou"></div>
|
<div class="tou"></div>
|
||||||
<div class="initial_left_hand"
|
<div id="left-hander" class="initial_left_hand"></div>
|
||||||
data-ng-class="{false:'initial_left_hand', true:'left_hand'}[hideEye]"></div>
|
<div id="right-hander" class="initial_right_hand"></div>
|
||||||
<div class="initial_right_hand"
|
|
||||||
data-ng-class="{false:'initial_right_hand', true:'right_hand'}[hideEye]"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -64,5 +62,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="footer">{:sysconf('site_company')} © {:date('Y')}</div>
|
<div class="footer">{:sysconf('site_company')} © {:date('Y')}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
require(['jquery'], function ($) {
|
||||||
|
$('[name="password"]').on('focus', function () {
|
||||||
|
$('#left-hander').removeClass('initial_left_hand').addClass('left_hand');
|
||||||
|
$('#right-hander').removeClass('initial_right_hand').addClass('right_hand')
|
||||||
|
}).on('blur', function () {
|
||||||
|
$('#left-hander').addClass('initial_left_hand').removeClass('left_hand');
|
||||||
|
$('#right-hander').addClass('initial_right_hand').removeClass('right_hand')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
{/block}
|
{/block}
|
Loading…
x
Reference in New Issue
Block a user