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();
|
|
|
|
|
|
|
|
});
|
2023-09-14 12:16:08 +00:00
|
|
|
|
2024-09-06 12:33:06 +00:00
|
|
|
$(".toggle-show").click(function (e) {
|
2023-09-14 12:16:08 +00:00
|
|
|
e.preventDefault();
|
2024-09-06 12:33:06 +00:00
|
|
|
let target = $(this).data('target');
|
|
|
|
$(target).toggle();
|
2023-09-14 12:16:08 +00:00
|
|
|
});
|
2024-09-06 12:33:06 +00:00
|
|
|
|
2022-05-17 16:35:33 +00:00
|
|
|
});
|
2022-05-20 14:27:51 +00:00
|
|
|
|