Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />


</head>

<body>

<h1>UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed </h1>
<img src="http://www.af.undp.org/content/dam/afghanistan/img/Health/Malaria/UNDP-Af-Malaria%20-%20Jalalabad%20-%20August%2015,%202016%20-%20465.jpg/_jcr_content/renditions/cq5dam.web.540.390.jpeg"></br>
<p class="malaria-story">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.</p>
<p class="malaria-story"><em>Sabawoon</em> had already been sick for <strong>two months</strong>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.</p>
<h2>Highlights</h2>
<ul>
<li>Afghanistan sees around 370,000 cases of malaria every year. </li>
<li>Thanks to new test kits, village health workers across Afghanistan can get test for malaria in just 30 minutes.</li>
<li>UNDP and the Global Fund are distributing 2.7 million anti-malaria bed nets and drugs for 14,500 clinics.</li>
<li>Global Fund experts predict that malaria cases will fall by 85% in 2017.</li>
</ul>


<iframe width="560" height="315" src="https://www.youtube.com/embed/K2kvf1Liqk0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>UNDP and the Global Fund Provide Malaria Tests and Drugs Where They Are Most Needed</iframe>

<p id="malaria-stat">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.</p>
<a href=http://www.af.undp.org/content/afghanistan/en/home/ourwork/Health/successstories/MalariaTestsandDrugs-WhereNeeded.html#>Read the full story here.</a>


</body>
<script src="main.js"></script>
</html>

20 changes: 20 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
@@ -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
}
40 changes: 40 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

let captchaArray = ["CC25l", "DDeF9", "qRSTu9", "55JjK", "TTl09", "66iUJ", "rSTU8", "Pgh2m", "Wfz5m", "werP8", "98EezJ","ZzYu6"];
let captcha = captchaArray[Math.floor(Math.random() * captchaArray.length)];

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);

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<malariaCountries.length; i++) {

confirm("Is " +malariaCountries[i]+ " one of the malaria countries?");
console.log(malariaCountries)

};

}

else{
let notHuman = alert("please reload the page and try again.");
console.log(notHuman)
};

let healthStat = ("Afghanistan has one physician for every 3,750 people")

if(healthStat) {
document.getElementById("malaria-stat").innerText = healthStat
console.log(healthstat)

};