From da16f1771e4a60067a2b24bfdbb69128d2835bae Mon Sep 17 00:00:00 2001 From: xaoccc <114498517+xaoccc@users.noreply.github.com> Date: Sun, 22 Sep 2024 08:58:27 +0300 Subject: [PATCH 01/13] option Ruse added --- README.md | 1 + towns.html | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 4abcf1f..96d5daa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Towns for SoftUni Code for the Git and GitHub Exercise + diff --git a/towns.html b/towns.html index d7a7960..3be42a1 100644 --- a/towns.html +++ b/towns.html @@ -16,6 +16,7 @@

Towns

+
From dbf731728ca76648b5756a0aecbed9c0698a2a26 Mon Sep 17 00:00:00 2001 From: Bobby Blagov <123829514+techfrapi@users.noreply.github.com> Date: Sun, 22 Sep 2024 09:02:06 +0100 Subject: [PATCH 02/13] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4abcf1f..78ae398 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# Towns for SoftUni -Code for the Git and GitHub Exercise +# Roles + +Tashev(xaoccc) takes the role "Editor" +name takes the role "Shuffler" +name takes the role "Styler" + + + From 65147643212343181584f62abf984ff45dbd1e45 Mon Sep 17 00:00:00 2001 From: Bobby Blagov <123829514+techfrapi@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:26:37 +0100 Subject: [PATCH 03/13] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 78ae398..4067b8e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Roles Tashev(xaoccc) takes the role "Editor" -name takes the role "Shuffler" +Ivan (shadow-develop) takes the role "Shuffler" name takes the role "Styler" From f28a28f38a872b2c8e45cd8d4c896020efa22682 Mon Sep 17 00:00:00 2001 From: Bobby Blagov <123829514+techfrapi@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:28:21 +0100 Subject: [PATCH 04/13] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4067b8e..151529e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # Roles -Tashev(xaoccc) takes the role "Editor" -Ivan (shadow-develop) takes the role "Shuffler" -name takes the role "Styler" - +- Tashev (xaoccc) takes the role "Editor" +- Ivan (shadow-develop) takes the role "Shuffler" +- Name takes the role "Styler" From ad9cc7989a793c01f951ac6d6f27fa5bc65a6828 Mon Sep 17 00:00:00 2001 From: Bobby Blagov <123829514+techfrapi@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:37:30 +0100 Subject: [PATCH 05/13] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 151529e..51ecd5d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Roles -- Tashev (xaoccc) takes the role "Editor" +- Bobby (techfrapi) takes the role "Editor" - Ivan (shadow-develop) takes the role "Shuffler" -- Name takes the role "Styler" +- Tashev (xaoccc) takes the role "Styler" From be1cc782174809e98a308a49cd8a820fce3f6694 Mon Sep 17 00:00:00 2001 From: techfrapi Date: Sun, 22 Sep 2024 15:00:01 +0100 Subject: [PATCH 06/13] Implemented functionality to add a new town --- towns.html | 4 ++++ towns.js | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/towns.html b/towns.html index d7a7960..949d56f 100644 --- a/towns.html +++ b/towns.html @@ -22,6 +22,10 @@

Towns

+
+ + +
diff --git a/towns.js b/towns.js index 6f50af6..4e8571c 100644 --- a/towns.js +++ b/towns.js @@ -1,7 +1,9 @@ $(document).ready(function() { - $('#btnDelete').click(deleteTown) + $('#btnDelete').click(deleteTown); + $('#btnAdd').click(addTown); }); + function deleteTown() { let townName = $('#townName').val(); $('#townName').val(''); @@ -17,3 +19,11 @@ function deleteTown() { else $('#result').text(townName + " not found."); } + +function addTown() { + let townName = $('#townNameForAdd').val(); + $('#townNameForAdd').val(''); + $('#towns').append($('