From bb38ce8c23ce1f414778352c2f1ddd645611aa5f Mon Sep 17 00:00:00 2001 From: Jalaluddin Kasaat Date: Sat, 23 Jun 2018 12:07:17 -0400 Subject: [PATCH 1/6] wrote a website --- index.html | 0 main.css | 0 main.js | 0 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 index.html create mode 100644 main.css create mode 100644 main.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..e69de29 diff --git a/main.css b/main.css new file mode 100644 index 0000000..e69de29 diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29 From 469d68c96bf66c18c6d887066fe659100b996f51 Mon Sep 17 00:00:00 2001 From: Jalaluddin Kasaat Date: Sat, 23 Jun 2018 12:11:53 -0400 Subject: [PATCH 2/6] slight change in HTLM --- index.html | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/index.html b/index.html index e69de29..1ed6389 100644 --- a/index.html +++ b/index.html @@ -0,0 +1,45 @@ + + + + + + UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed + + + + + + +

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed

+
+

14 November 2016, Jalalabad, Nangarhar – On a scorching July afternoon several years ago, a farmer rushed into a laboratory in downtown Jalalabad with his two-year-old son, Sabawoon, fainting in his arms. “I’m here to test him for malaria!” he blurted out.

+

Sabawoon had already been sick for two months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.

+ +
+ +

These days, things are different. Thanks to new testing kits provided by UNDP and the Global Fund to 14,500 clinics across Afghanistan, village health workers can now prick a villager’s finger and get an accurate blood test in just 30 minutes. In a country with only one physician for every 3,750 people, these kits save lives because they can be used even by local health workers with minimal training.

+ Read the full story here. + + + \ No newline at end of file From bf524c3c280fb68ce6f46284c3dbb24ca30def0b Mon Sep 17 00:00:00 2001 From: Jalaluddin Kasaat Date: Sat, 23 Jun 2018 12:33:03 -0400 Subject: [PATCH 3/6] slight change --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1ed6389..a237bdd 100644 --- a/index.html +++ b/index.html @@ -34,7 +34,7 @@

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed


14 November 2016, Jalalabad, Nangarhar – On a scorching July afternoon several years ago, a farmer rushed into a laboratory in downtown Jalalabad with his two-year-old son, Sabawoon, fainting in his arms. “I’m here to test him for malaria!” he blurted out.

-

Sabawoon had already been sick for two months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.

+

Sabawoon had already been sick for two monthstwo months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.


From 9d61ef53428f2121447cb10a286dcaa095f7d894 Mon Sep 17 00:00:00 2001 From: Jalaluddin Kasaat Date: Sat, 23 Jun 2018 13:38:47 -0400 Subject: [PATCH 4/6] added prompts --- index.html | 2 +- main.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index a237bdd..ad33f2f 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most

14 November 2016, Jalalabad, Nangarhar – On a scorching July afternoon several years ago, a farmer rushed into a laboratory in downtown Jalalabad with his two-year-old son, Sabawoon, fainting in his arms. “I’m here to test him for malaria!” he blurted out.

Sabawoon had already been sick for two monthstwo months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.

-
+

These days, things are different. Thanks to new testing kits provided by UNDP and the Global Fund to 14,500 clinics across Afghanistan, village health workers can now prick a villager’s finger and get an accurate blood test in just 30 minutes. In a country with only one physician for every 3,750 people, these kits save lives because they can be used even by local health workers with minimal training.

Read the full story here. diff --git a/main.js b/main.js index e69de29..96e5860 100644 --- a/main.js +++ b/main.js @@ -0,0 +1,8 @@ +let problem = prompt("How big a health problem is malaria?"); +let countries = prompt("What countries have the highest malaria cases?"); +let cases = prompt("How many cases of malaria are recoreded worldwide each year?"); +let casesAfg = prompt("How may malaria cases were recorded in 2016 in Afghanistan?"); +console.log(problem); +console.log(countries); +console.log(cases); +console.log(casesAfg); \ No newline at end of file From 0c69392f0c1e52685018871dc545af9f8a3234ec Mon Sep 17 00:00:00 2001 From: Jalaluddin Kasaat Date: Sat, 30 Jun 2018 10:02:51 -0400 Subject: [PATCH 5/6] added concantenations --- index.html | 42 +++++++++++++++++------------------------- main.css | 20 ++++++++++++++++++++ main.js | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index a237bdd..f776275 100644 --- a/index.html +++ b/index.html @@ -7,39 +7,31 @@ - + -

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed

+ + + + +

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed


14 November 2016, Jalalabad, Nangarhar – On a scorching July afternoon several years ago, a farmer rushed into a laboratory in downtown Jalalabad with his two-year-old son, Sabawoon, fainting in his arms. “I’m here to test him for malaria!” he blurted out.

Sabawoon had already been sick for two monthstwo months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.

+

+Highlights

+
    +
  • Afghanistan sees around 370,000 cases of malaria every year.
  • +
  • Thanks to new test kits, village health workers across Afghanistan can get test for malaria in just 30 minutes.
  • +
  • UNDP and the Global Fund are distributing 2.7 million anti-malaria bed nets and drugs for 14,500 clinics.
  • +
  • Global Fund experts predict that malaria cases will fall by 85% in 2017.
  • +
+

These days, things are different. Thanks to new testing kits provided by UNDP and the Global Fund to 14,500 clinics across Afghanistan, village health workers can now prick a villager’s finger and get an accurate blood test in just 30 minutes. In a country with only one physician for every 3,750 people, these kits save lives because they can be used even by local health workers with minimal training.

Read the full story here. - - \ No newline at end of file + + diff --git a/main.css b/main.css index e69de29..de81c8f 100644 --- a/main.css +++ b/main.css @@ -0,0 +1,20 @@ +body { + font-family: Arial, Helvetica, sans-serif; + background-color:cornsilk +} + + +h1 { + font-size:"50"; + color:black; +} + +#malaria-stat { + font-size:"20"; + color:dimgrey; +} + +.malaria-story { + color:darkviolet; + font-family:monospace +} \ No newline at end of file diff --git a/main.js b/main.js index e69de29..315a5f9 100644 --- a/main.js +++ b/main.js @@ -0,0 +1,50 @@ + + +let name = prompt("What's your name?"); +let problem = prompt("Thanks, " +name+ ". How big a health problem is malaria?"); +let country = prompt("What country do you think has the highest malaria cases?"); +let cases = prompt("How many cases of malaria are recored each year in " +country+ "?"); +let ending = alert("Thanks, " +name+ ", for your answers.") +console.log (name, problem, country, cases) + +// console.log(problem); +// console.log(country); +// console.log(cases); + + + + + +// let captcha = prompt("If you are a human, type this word:" + human); +// let human = ["car", "bike", "motorbike"]; + +// for (let i=0; i Date: Sat, 30 Jun 2018 16:56:09 -0400 Subject: [PATCH 6/6] feedback to Jalal --- index.html | 16 +++++++-------- main.js | 59 +++++++++++++++++++++++------------------------------- 2 files changed, 33 insertions(+), 42 deletions(-) diff --git a/index.html b/index.html index 548caae..6735c2f 100644 --- a/index.html +++ b/index.html @@ -6,20 +6,17 @@ UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed - + + - - - -

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed

+

UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed


14 November 2016, Jalalabad, Nangarhar – On a scorching July afternoon several years ago, a farmer rushed into a laboratory in downtown Jalalabad with his two-year-old son, Sabawoon, fainting in his arms. “I’m here to test him for malaria!” he blurted out.

Sabawoon had already been sick for two monthstwo months in his rural village, but no one knew what was wrong. Even though Afghanistan has the fourth-largest malaria burden outside of sub-Saharan Africa, diagnostic facilities were extremely limited. This laboratory in Jalalabad was the only place in the whole province with a track record of diagnosing the most severe form of malaria. Just one sharp-eyed technician and his ageing microscope meant the difference between diagnosis and disaster.

-

-Highlights

+

Highlights

  • Afghanistan sees around 370,000 cases of malaria every year.
  • Thanks to new test kits, village health workers across Afghanistan can get test for malaria in just 30 minutes.
  • @@ -28,10 +25,13 @@

- +

These days, things are different. Thanks to new testing kits provided by UNDP and the Global Fund to 14,500 clinics across Afghanistan, village health workers can now prick a villager’s finger and get an accurate blood test in just 30 minutes. In a country with only one physician for every 3,750 people, these kits save lives because they can be used even by local health workers with minimal training.

Read the full story here. + + + diff --git a/main.js b/main.js index 63feed2..ab6d441 100644 --- a/main.js +++ b/main.js @@ -1,47 +1,38 @@ +let captchaArray = ["CC25l", "DDeF9", "qRSTu9", "55JjK", "TTl09", "66iUJ", "rSTU8", "Pgh2m", "Wfz5m", "werP8", "98EezJ","ZzYu6"]; +let captcha = captchaArray[Math.floor(Math.random() * captchaArray.length)]; -let name = prompt("What's your name?"); -let problem = prompt("Thanks, " +name+ ". How big a health problem is malaria?"); -let country = prompt("What country do you think has the highest malaria cases?"); -let cases = prompt("How many cases of malaria are recored each year in " +country+ "?"); -let ending = alert("Thanks, " +name+ ", for your answers.") -console.log (name, problem, country, cases) +alert("We would appreciate if you can take this survey"); +let captchaResponse = prompt("Let’s check you are a human. Please type this below: "+ captcha); -// console.log(problem); -// console.log(country); -// console.log(cases); +if (captcha == captchaResponse){ + let name = prompt("What\’s your name?"); + let origin = prompt("Thanks, " + name + ". Where are you from?"); + console.log(name); + console.log(origin) + let malariaCountries = prompt(name + ", can you tell me where malaria is so common?"); + malariaCountries = ["Afghanistan", "Nigeria", "Uganda"]; + for (let i=0; i