From de5013de4163b3c2f3bc4b659e7eb4435bb67561 Mon Sep 17 00:00:00 2001 From: Miguel Rodriguez Date: Sat, 2 Mar 2024 22:38:41 +0100 Subject: [PATCH] first commit --- index.html | 37 +++++++++++++++++++++++++++++++++++++ reset.css | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ script.js | 23 +++++++++++++++++++++++ styles.css | 0 4 files changed, 108 insertions(+) create mode 100644 index.html create mode 100755 reset.css create mode 100644 script.js create mode 100644 styles.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..26bf15b --- /dev/null +++ b/index.html @@ -0,0 +1,37 @@ + + + + + + + + + Encriptador/Desencriptador + + + + + + + + +

Encriptador/Desencriptador

+ +
+ +

Solo letras minusculas y sin acentos

+ + +
+

+ +
+ + \ No newline at end of file diff --git a/reset.css b/reset.css new file mode 100755 index 0000000..af94440 --- /dev/null +++ b/reset.css @@ -0,0 +1,48 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..560edeb --- /dev/null +++ b/script.js @@ -0,0 +1,23 @@ +function encryptText() { + var inputText = document.getElementById('inputTextArea').value; + var resultTextArea = document.getElementById('result'); + var encryptedText = inputText + .replace(/e/g, 'enter') + .replace(/i/g, 'imes') + .replace(/a/g, 'ai') + .replace(/o/g, 'ober') + .replace(/u/g, 'ufat'); + resultTextArea.value = encryptedText; +} + +function decryptText() { + var inputText = document.getElementById('inputTextArea').value; + var resultTextArea = document.getElementById('result'); + var decryptedText = inputText + .replace(/ufat/g, 'u') + .replace(/ober/g, 'o') + .replace(/ai/g, 'a') + .replace(/imes/g, 'i') + .replace(/enter/g, 'e'); + resultTextArea.value = decryptedText; +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..e69de29