-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully rewritten codes for the link tree.
- Loading branch information
Showing
11 changed files
with
305 additions
and
308 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
const shareButtons = document.querySelectorAll('.share,.share-button') | ||
console.log(shareButtons) | ||
var loader = document.getElementById("preloader"); | ||
|
||
async function copyText(e) { | ||
window.addEventListener("load", function() { | ||
loader.style.display = "none"; | ||
}) | ||
|
||
//prevent button going to the site | ||
const copyBtn = document.querySelectorAll('.copy'); | ||
|
||
async function copyText(e) { | ||
e.preventDefault() | ||
const link = this.getAttribute('link') | ||
console.log(link) | ||
let link = this.getAttribute('link') | ||
console.log(`The link: "${link}"`) | ||
try { | ||
await navigator.clipboard.writeText(link) | ||
alert("Copied the link") | ||
alert("Link copied to clipboard") | ||
} catch (err) { | ||
console.error(err) | ||
console.error(err) | ||
} | ||
} | ||
|
||
shareButtons.forEach(shareButton => | ||
shareButton.addEventListener('click', copyText)) | ||
|
||
|
||
copyBtn.forEach(copyBtn => | ||
copyBtn.addEventListener('click', copyText)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters