changedetection.io/changedetectionio/static/js/global-settings.js

27 wiersze
732 B
JavaScript
Czysty Zwykły widok Historia

2022-05-20 14:27:51 +00:00
$(document).ready(function () {
$("#api-key").hover(
function () {
$("#api-key-copy").html('copy').fadeIn();
},
function () {
$("#api-key-copy").hide();
}
).click(function (e) {
$("#api-key-copy").html('copied');
var range = document.createRange();
var n = $("#api-key")[0];
range.selectNode(n);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
});
$("#notification-token-toggle").click(function (e) {
e.preventDefault();
$('#notification-tokens-info').toggle();
});
});
2022-05-20 14:27:51 +00:00