From 9d2c650d7cadf57ecef3d5a1d39f5f98e298ec64 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 9 Nov 2020 17:39:05 +0100 Subject: Trying to DRY the html with templates --- utils/rot13/index.ejs | 14 ++++++++++++++ utils/rot13/index.html | 35 ----------------------------------- utils/rot13/style.css | 7 +++++++ 3 files changed, 21 insertions(+), 35 deletions(-) create mode 100644 utils/rot13/index.ejs delete mode 100644 utils/rot13/index.html create mode 100644 utils/rot13/style.css (limited to 'utils/rot13') diff --git a/utils/rot13/index.ejs b/utils/rot13/index.ejs new file mode 100644 index 0000000..27b3a20 --- /dev/null +++ b/utils/rot13/index.ejs @@ -0,0 +1,14 @@ +

rot13

+ +

Implementation of the rot13 encryption

+ +
Shift size:
+ + +

Input

+ + +

Output

+ + + diff --git a/utils/rot13/index.html b/utils/rot13/index.html deleted file mode 100644 index 525e14f..0000000 --- a/utils/rot13/index.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - cacharle - rot13 - - - - - - -
-

rot13

- -

Implementation of the rot13 encryption

- -
Shift size:
- - -

Input

- - -

Output

- - -
- - diff --git a/utils/rot13/style.css b/utils/rot13/style.css new file mode 100644 index 0000000..c8046b9 --- /dev/null +++ b/utils/rot13/style.css @@ -0,0 +1,7 @@ +textarea { + resize: none; +} + +input { + width: 50%; +} -- cgit From 3ebcd66cd17741ec7dc7793f9f0121e2ee025fdf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 24 Nov 2020 12:10:40 +0100 Subject: Fixing templating (without ejs) --- utils/rot13/index.ejs | 14 -------------- utils/rot13/index.template.html | 12 ++++++++++++ 2 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 utils/rot13/index.ejs create mode 100644 utils/rot13/index.template.html (limited to 'utils/rot13') diff --git a/utils/rot13/index.ejs b/utils/rot13/index.ejs deleted file mode 100644 index 27b3a20..0000000 --- a/utils/rot13/index.ejs +++ /dev/null @@ -1,14 +0,0 @@ -

rot13

- -

Implementation of the rot13 encryption

- -
Shift size:
- - -

Input

- - -

Output

- - - diff --git a/utils/rot13/index.template.html b/utils/rot13/index.template.html new file mode 100644 index 0000000..64fffdf --- /dev/null +++ b/utils/rot13/index.template.html @@ -0,0 +1,12 @@ +

rot13

+ +

Implementation of the rot13 encryption

+ +
Shift size:
+ + +

Input

+ + +

Output

+ -- cgit