You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
html(lang="en")
|
|
head
|
|
title= pageTitle || 'DTP Countdown Timer'
|
|
|
|
link(rel="stylesheet" href="/uikit/css/uikit.min.css")
|
|
link(rel="stylesheet" href="/css/countdown.css")
|
|
|
|
script(src="/uikit/js/uikit.min.js")
|
|
script(src="/moment/moment.min.js")
|
|
script(src="/numeral/numeral.min.js")
|
|
|
|
script.
|
|
window.dtp = window.dtp || { };
|
|
dtp.copyToClipboard = async (event) => {
|
|
const target = event.currentTarget || event.target;
|
|
|
|
const textSrcId = target.getAttribute('data-text');
|
|
const textSrc = document.getElementById(textSrcId);
|
|
const text = textSrc.textContent;
|
|
|
|
const message = target.getAttribute('data-message');
|
|
|
|
try {
|
|
await navigator.clipboard.writeText(text);
|
|
UIkit.modal.alert(message);
|
|
} catch (error) {
|
|
UIkit.modal.alert(`Failed to copy to clipboard: ${error.message}`);
|
|
}
|
|
};
|
|
|
|
body
|
|
block content-container
|
|
section.uk-section.uk-section-default
|
|
.uk-container
|
|
block content
|