-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7d2015
commit 39018c1
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
body { | ||
margin: 25px; | ||
} | ||
h2 { | ||
font-size: 1.5em; | ||
font-weight: lighter; | ||
} | ||
|
||
#text { | ||
padding-left: 25px; | ||
padding-right: 25px; | ||
font-size: 1.25em; | ||
text-align: justify; | ||
font-family: sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
TEXT = ` | ||
An organization that connects African leaders to cybersecurity education announced a partnership with the GW School of Business last month, aiming to enhance leaders’ understanding of cybersecurity and cyber diplomacy practices. | ||
Pape Cissé, an adjunct professor of information technology and cofounder of the Center for Cyber Diplomacy and Leadership, said the partnership between the CCDL and GWSB will include conferences and seminars about cybersecurity and policymaking with African leaders and GWSB community members during the academic year. Cissé said as technology rapidly advances, the partnership aims to help African heads of state, ambassadors, ministers and government officials shape policy, prepare and defend against cyberattacks, while also providing GWSB students the opportunity to help solve real-world problems. | ||
` | ||
TOKENIZED_TEXT = ` | ||
African African African An Business CCDL Center Cissé Cissé Cyber Diplomacy GW GWSB GWSB GWSB Leadership Pape School a about academic adjunct advances against aiming aims also ambassadors an and and and and and and and and and announced as between cofounder community conferences connects cyber cyberattacks cybersecurity cybersecurity cybersecurity defend diplomacy during education enhance for government heads help help include information last leaders leaders leaders members ministers month of of of of of officials opportunity organization partnership partnership partnership policy policymaking practices prepare problems professor providing rapidly real said said seminars shape solve state students technology technology that the the the the the the the to to to to understanding while will with with world year | ||
` | ||
|
||
function randomDisplay() { | ||
let randIndex = Math.floor(Math.random() * (2 - 0) + 0); | ||
let displayText = [TEXT, TOKENIZED_TEXT][randIndex]; | ||
let textDiv = document.getElementById('text'); | ||
displayText.split('\n\n').forEach(paragraph => { | ||
let p = document.createElement('p'); | ||
p.innerHTML = paragraph; | ||
textDiv.appendChild(p); | ||
}); | ||
} | ||
|
||
window.onload = randomDisplay; |