copy click animation
This commit is contained in:
@@ -64,11 +64,10 @@ body {
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copybut:hover {
|
.noshadow {
|
||||||
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.16), 0 4px 20px 0 rgba(0, 0, 0, 0.12);
|
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#copyicon {
|
#copyicon {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
13
js/popup.js
13
js/popup.js
@@ -119,13 +119,22 @@ function updateConflicts() {
|
|||||||
/* Handle the button clicks */
|
/* Handle the button clicks */
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
|
||||||
|
$("#courseList").on('mouseover', '.copybut', function () {
|
||||||
|
$(this).addClass('noshadow');
|
||||||
|
}).on('mouseleave', '.copybut', function () {
|
||||||
|
$(this).removeClass('noshadow');
|
||||||
|
});
|
||||||
$("#courseList").on('click', '.copybut', function (e) {
|
$("#courseList").on('click', '.copybut', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var temp = $("<input>");
|
var temp = $("<input>");
|
||||||
$(this).find('i').text('check');
|
$(this).find('i').text('check');
|
||||||
$(this).find('i').css('box-shadow', 'none');
|
$(this).stop(true, false).removeAttr('style').removeClass('noshadow', {
|
||||||
$(this).find('i').delay(200).queue(function (n) {
|
duration: 200
|
||||||
|
});
|
||||||
|
$(this).find('i').delay(400).queue(function (n) {
|
||||||
$(this).text('content_copy');
|
$(this).text('content_copy');
|
||||||
|
$(this).parent().addClass('noshadow');
|
||||||
n();
|
n();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user