diff --git a/proj/y2t/assets/js/main.js b/proj/y2t/assets/js/main.js index 3a438e3..de12f65 100644 --- a/proj/y2t/assets/js/main.js +++ b/proj/y2t/assets/js/main.js @@ -1,36 +1,13 @@ -Vue.component('copybox',{ +Vue.component('copbox',{ template : `
Copy to clipboard
-

{{ txt }}

-
-
- `, - props : { - txt : String - }, - methods : { - copyToClipboard() { - navigator.clipboard.writeText(this.txt).then(() => { - console.log('Text copied to clipboard'); - }, (err) => { - console.error('Failed to copy text: ', err); - }); - }, - } -}) - -Vue.component('copbox',{ - template : ` -
- - -
+
`,