diff --git a/README.md b/README.md index 8701fd8..c5f9c0b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ -# Essais -Be well-written +#
Essais
+ +To be well-written The source code was adapted from [this project](https://github.com/Manuel-Suarez-Abascal/translator-vuejs) -## Demo -Check the [demo here](https://vn-essais.web.app/) +## Demo +Check here for [the demo](https://vn-essais.web.app/) +![](src/assets/example.png) ## Project Setup ### Dependencies diff --git a/public/index.html b/public/index.html index fb1b279..11f49e9 100644 --- a/public/index.html +++ b/public/index.html @@ -16,6 +16,7 @@
+ diff --git a/src/assets/example.png b/src/assets/example.png new file mode 100644 index 0000000..8c45692 Binary files /dev/null and b/src/assets/example.png differ diff --git a/src/components/Translator.vue b/src/components/Translator.vue index 8117ee4..de6430c 100644 --- a/src/components/Translator.vue +++ b/src/components/Translator.vue @@ -317,6 +317,9 @@ export default { this.tmp = 'Here is a (maybe) better version of it. '; } + if (e.key == "Backspace" || e.key == "Delete"){ + this.htmlTranslated = ""; + } }, updateNativeLang(index) {