mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
c28f86d46d
Refactor inline events in task results [SCI-8434]
17 lines
542 B
JavaScript
17 lines
542 B
JavaScript
(function() {
|
|
const linkedinSignInButton = $('.linkedin-signin-button');
|
|
const hoverSrc = linkedinSignInButton.data('hover-src');
|
|
const defaultSrc = linkedinSignInButton.data('default-src');
|
|
const clickSrc = linkedinSignInButton.data('click-src');
|
|
|
|
linkedinSignInButton
|
|
.on('mouseover', () => {
|
|
linkedinSignInButton.attr('src', hoverSrc);
|
|
})
|
|
.on('mouseout', () => {
|
|
linkedinSignInButton.attr('src', defaultSrc);
|
|
})
|
|
.on('click', () => {
|
|
linkedinSignInButton.attr('src', clickSrc);
|
|
});
|
|
}());
|