From 5ae7c22764530f84359a3414ced331c9cd08a17e Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Wed, 14 Aug 2024 14:40:28 -0400 Subject: final touches --- about.html | 29 ++++++++++++++++++----------- audio/western-cover.m4a | Bin 663447 -> 0 bytes audio/western-cover.mp3 | Bin 0 -> 435945 bytes images/pink-panther-lasso-rope.gif | Bin 756199 -> 0 bytes index.html | 7 +++++-- style.css | 19 ++++++++++++++++++- 6 files changed, 41 insertions(+), 14 deletions(-) delete mode 100644 audio/western-cover.m4a create mode 100644 audio/western-cover.mp3 delete mode 100644 images/pink-panther-lasso-rope.gif diff --git a/about.html b/about.html index c0536e2..138d1e9 100644 --- a/about.html +++ b/about.html @@ -13,23 +13,30 @@ Pixel art of a cowboy lassoing a dragon.

- This site uses word similarity to score all dragon names in terms of its - "closeness" to the given name. - The dragon name that is the "closest" is the one selected as the user's dragon.

+ This site uses word similarity to score all dragon names from George R.R. Martin's + A Song of Ice and Fire + universe in terms of their "closeness" to the given name. + The dragon name that is the "closest" is the one selected as the user's dragon. +

- It uses three popular techniques to calculate similarity scores - - these are the Levenshtein Distance, - Cosine Similarity, - and Jaccard Similarity. + It uses three popular techniques in + NLP + to calculate similarity scores - these are the + Levenshtein Distance, + Cosine Similarity, + and Jaccard Similarity.

- The final result shown to the user uses cosine similarity only, - but top ranking dragons from each of the other two techniques are - also shown as alternatives. + The final result shown to the user uses cosine similarity only, + but top ranking dragons from each of the other two techniques are + also shown as alternatives.

- Home + diff --git a/audio/western-cover.m4a b/audio/western-cover.m4a deleted file mode 100644 index 193a465..0000000 Binary files a/audio/western-cover.m4a and /dev/null differ diff --git a/audio/western-cover.mp3 b/audio/western-cover.mp3 new file mode 100644 index 0000000..c735513 Binary files /dev/null and b/audio/western-cover.mp3 differ diff --git a/images/pink-panther-lasso-rope.gif b/images/pink-panther-lasso-rope.gif deleted file mode 100644 index 538ff06..0000000 Binary files a/images/pink-panther-lasso-rope.gif and /dev/null differ diff --git a/index.html b/index.html index 785667b..3e445c5 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@

Name my Dragon

@@ -39,7 +39,10 @@

See a comparison of all the dragons here:

Comparison chart for all the dragons
- How it works +
diff --git a/style.css b/style.css index 9445212..9e664c4 100644 --- a/style.css +++ b/style.css @@ -3,8 +3,25 @@ src: url('fonts/gameofthrones.ttf'); } +html { + --s: 60px; /* control the size*/ + --c1: #b09f79; + --c2: #000000; + + --_g: #0000 83%,var(--c1) 85% 99%,#0000 101%; + background: + radial-gradient(27% 29% at right ,var(--_g)) calc(var(--s)/ 2) var(--s), + radial-gradient(27% 29% at left ,var(--_g)) calc(var(--s)/-2) var(--s), + radial-gradient(29% 27% at top ,var(--_g)) 0 calc(var(--s)/ 2), + radial-gradient(29% 27% at bottom,var(--_g)) 0 calc(var(--s)/-2) + var(--c2); + background-size: calc(2*var(--s)) calc(2*var(--s)); +} + body { - background: #faf0e5 + background: #faf0e5; + opacity: 0.97; + padding: 10px; } h1 { -- cgit v1.2.3