Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dolsysmith authored Sep 9, 2024
1 parent b7d2015 commit 39018c1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/text_swap.css
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;
}
21 changes: 21 additions & 0 deletions docs/text_swap.js
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;

0 comments on commit 39018c1

Please sign in to comment.