mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 22:51:24 +08:00
18 lines
542 B
JavaScript
18 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);
|
||
|
});
|
||
|
}());
|