-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPassages.js
More file actions
63 lines (55 loc) · 10.5 KB
/
Copy pathPassages.js
File metadata and controls
63 lines (55 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
function loadtext()
{
aliceinwonderland = "Alice was beginning to get very tired of sitting by her sister on the bank and of having nothing to do. Once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice, 'without pictures or conversations?' So she was considering in her own mind (as well as she could, for the day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.'Oh dear! Oh dear! I shall be too late!' But when the Rabbit actually took a watch out of its waistcoat-pocket and looked at it and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and, burning with curiosity, she ran across the field after it and was just in time to see it pop down a large rabbit-hole, under the hedge. In another moment, down went Alice after it! The rabbit-hole went straight on like a tunnel for some way and then dipped suddenly down, so suddenly that Alice had not a moment to think about stopping herself before she found herself falling down what seemed to be a very deep well. Either the well was very deep, or she fell very slowly, for she had plenty of time, as she went down, to look about her. First, she tried to make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs.";
torque = "Torque is a measure of the force that can cause an object to rotate about an axis. Just as force is what causes an object to accelerate in linear kinematics, torque is what causes an object to acquire angular acceleration. Torque is a vector quantity. The direction of the torque vector depends on the direction of the force on the axis. Anyone who has ever opened a door has an intuitive understanding of torque. When a person opens a door, they push on the side of the door farthest from the hinges. Pushing on the side closest to the hinges requires considerably more force. Although the work done is the same in both cases (the larger force would be applied over a smaller distance) people generally prefer to apply less force, hence the usual location of the door handle. Torque can be either static or dynamic. A static torque is one which does not produce an angular acceleration. Someone pushing on a closed door is applying a static torque to the door because the door is not rotating about its hinges, despite the force applied. Someone pedaling a bicycle at constant speed is also applying a static torque because they are not accelerating. The drive shaft in a racing car accelerating from the start line is carrying a dynamic torque because it must be producing an angular acceleration of the wheels given that the car is accelerating along the track. The terminology used when describing torque can be confusing. Engineers sometimes use the term moment, or moment of force interchangeably with torque. The radius at which the force acts is sometimes called the moment arm.";
ww1 = "World War I, also known as the First World War, was a global war centered in Europe that began on 28th July 1914 and lasted until 11th November 1918. The war lasted exactly four years, three months and 14 days. Before World War II began in 1939, World War I was called the Great War, the World War or the War to End all Wars. 135 countries took part in World War I, and more than 15 million people died. See the fact file below for more information about World War I. World War 1 was a military conflict lasting from 1914 to 1918 which involved nearly all the biggest powers of the world. It involved two opposing alliances – the Allies and the Central Powers. The countries of the Allies included Russia, France, British Empire, Italy, United States, Japan, Rumania, Serbia, Belgium, Greece, Portugal and Montenegro. The countries of the Central Powers included Germany, Austria-Hungary, Turkey and Bulgaria. World War I began on June 28, 1914. World War 1 was triggered on 28 June 1914 by the assassination of the Archduke Franz Ferdinand of Austria and his pregnant wife Sophie. Archduke Franz Ferdinand of Austria was the nephew of Emperor Franz Josef and heir to the throne of Austria and Hungary. The assassination was planned by a Serbian terrorist group, called The Black Hand and the man who shot Franz Ferdinand and his wife was a Bosnian revolutionary named Gavrilo Princip.A primary cause of WW1 was a difference over foreign policy. Although the assassination of Franz Ferdinand triggered WW1, that was only the immediate cause. Differences over foreign policy between the major world powers was the underlying cause of the war.";
nasajourneytomars = "NASA is on a journey to Mars, with a goal of sending humans to the Red Planet in the 2030s. That journey is already well under way. For decades, the agency and its partners have sent orbiters, landers and rovers, dramatically increasing our knowledge about the Red Planet and paving the way for future human explorers. The Curiosity rover has gathered radiation data to help us protect future astronauts, and the upcoming Mars 2020 rover will study the availability of Martian resources, including oxygen. There is more to learn as we expand humanity's presence into the solar system: Was Mars once home to microbial life or is it today? Can it be a safe home for humans? What can the Red Planet teach us about our own planet's past, present and future? Building on the robotic legacy, the human exploration of Mars crosses three thresholds, each with increasing challenges as humans move farther from Earth: Earth Reliant, the Proving Ground, and Earth Independent. Earth Reliant exploration is focused on research aboard the International Space Station. The orbiting microgravity laboratory serves as a world-class test bed for the technologies and communications systems needed for human missions to deep space. Astronauts are learning about what it takes to live and work in space for long periods of time, increasing our understanding of how the body changes in space and how to protect astronaut health. We're also working with our commercial crew and cargo partners to provide access to low-Earth orbit and eventually stimulate new economic activity, allowing NASA to continue using the station while preparing for missions beyond.";
historyoftokyo = "The history of the city of Tokyo stretches back some 400 years. Originally named Edo, the city started to flourish after Tokugawa Ieyasu established the Tokugawa Shogunate here in 1603. As the center of politics and culture in Japan, Edo grew into a huge city with a population of over a million by the mid-eighteenth century. Throughout this time, the Emperor resided in Kyoto, which was the formal capital of the nation. The Edo Period lasted for nearly 260 years until the Meiji Restoration in 1868, when the Tokugawa Shogunate ended and imperial rule was restored. The Emperor moved to Edo, which was renamed Tokyo. Thus, Tokyo became the capital of Japan. During the Meiji era (1868-1912), Japan began its avid assimilation of Western civilization. Buildings made of stone and bricks were built on the sites of the mansions of feudal lords, and the major roads were paved with round stones. In 1869 Japan’s first telecommunications line was opened between Tokyo and Yokohama, and the first steam locomotive started running in 1872 from Shimbashi to Yokohama. Western hairstyles replaced the traditional topknot worn by men, and bowler hats, high collars, and bustled skirts were the height of fashion. In 1882 Japan’s first zoological gardens were opened in Ueno. In 1885 the cabinet system of government was adopted and Ito Hirobumi became Japan’s first prime minister. With the promulgation of the Constitution of the Empire of Japan in 1889 Japan established the political system of a modern state. During the Taisho era (1912-1926), the number of people working in cities increased, and a growing proportion of citizens began to lead consumer lifestyles. Educational standards improved, and the number of girls going on to study at higher schools increased. Performing arts such as theater and opera thrived.";
digitalexplosion = "On September 19, 2007, while driving alone near Seattle on her way to work, Tanya Rider went off the road and crashed into a ravine. For eight days, she was trapped upside down in the wreckage of her car. Severely dehydrated and suffering from injuries to her leg and shoulder, she nearly died of kidney failure. Fortunately, rescuers ultimately found her. She spent months recuperating in a medical facility. Happily, she was able to go home for Christmas. Tanya’s story is not just about a woman, an accident, and a rescue. It is a story about bits—the zeroes and ones that make up all our cell phone conversations, bank records, and everything else that gets communicated or stored using modern electronics. Tanya was found because cell phone companies keep records of cell phone locations. When you carry your cell phone, it regularly sends out a digital 'ping,' a few bits conveying a 'Here I am!' message. Your phone keeps 'pinging' as long as it remains turned on. Nearby cell phone towers pick up the pings and send them on to your cellular service provider. Your cell phone company uses the pings to direct your incoming calls to the right cell phone towers. Tanya's cell phone company, Verizon, still had a record of the last location of her cell phone, even after the phone had gone dead. That is how the police found her."
}
function pick(passage)
{
if (passage == 0)
{
STRING = aliceinwonderland;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
if (passage == 1)
{
STRING = torque;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
if (passage == 2)
{
STRING = ww1;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
if (passage == 3)
{
STRING = nasajourneytomars;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
if (passage == 4)
{
STRING = historyoftokyo;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
if (passage == 5)
{
STRING = digitalexplosion;
sentence = STRING.split(" ");
wpmString = STRING.split("");
textBox.innerHTML = STRING;
}
userInput.disabled = false;
}