Compare commits
3 commits
05b765c6f0
...
a033ab15db
Author | SHA1 | Date | |
---|---|---|---|
a033ab15db | |||
0f5fa02fc5 | |||
4de45c1672 |
2 changed files with 12 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jeff-downloader2",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./bin/www"
|
||||
|
|
|
@ -143,7 +143,7 @@ Come take a look here https://git.namejeff.xyz/Supositware/jeff-downloader for a
|
|||
<div class="control">
|
||||
<div class="tags has-addons">
|
||||
<span class="tag">Download date</span>
|
||||
<span class="tag is-primary"><%= file.date %></span>
|
||||
<span class="tag is-primary"><%= file.date.toLocaleString() %></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -274,6 +274,16 @@ Come take a look here https://git.namejeff.xyz/Supositware/jeff-downloader for a
|
|||
});
|
||||
}
|
||||
|
||||
function toClipboard(text) {
|
||||
if (navigator.clipboard)
|
||||
navigator.clipboard.writeText(text)
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
});
|
||||
else
|
||||
console.error('Could not access the clipboard.');
|
||||
}
|
||||
|
||||
function uuidv4() {
|
||||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
|
||||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
||||
|
|
Loading…
Reference in a new issue