diff --git a/.gitignore b/.gitignore index c05d955..ff64dd1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ HRdept0819/HRstyle.css HRdept0819/index.html images/penrose.png +k-graphing/words.txt diff --git a/data/kData.json b/data/kData.json index d4f07e8..56ab819 100644 --- a/data/kData.json +++ b/data/kData.json @@ -3,34 +3,32 @@ { "name": "rock", - "attack": [ + "attack": { "past": "bludgeoned", "present": "bludgeon", "pastpart": "bludgeoned", "prespart": "bludgeoning" - } - ], + }, "strength": "heavy", "weakness": "brittle", - "image": "images/rock.png", + "image": "url('../images/k/rock.png')", "alt": "A pretty sharp and deadly looking rock.", "credit": "Metropolitan Museum of Art, CC0, via Wikimedia Commons" }, { "name": "paper", - "attack": [ + "attack": { "past":"paper cut", "present":"paper cut", "pastpart":"paper cut", "prespart":"paper cutting" - } - ], + }, "strength": "sneaky", "weakness": "floppy", - "image": "images/paper.png", + "image": "url('../images/k/paper.png')", "alt": "A crumpled ball of paper.", "credit": "found on PublicDomainPictures.net but fairly certain the original photo was taken by Porjai after some research: https://www.shutterstock.com/g/porjai+kittawornrat" }, @@ -38,17 +36,16 @@ { "name": "scissors", - "attack": [ + "attack": { "past":"stabbed", "present":"stab", "pastpart":"stabbed", "prespart":"stabbing" - } - ], + }, "strength": "pointy", "weakness": "exclusionary", - "image": "images/scissors.png", + "image": "url('../images/k/scissors.png')", "alt": "A pair of orange-handled right-handed Fiskars scissors", "credit": "Evan-amos, Public domain, via Wikimedia Commons" }, @@ -56,51 +53,47 @@ { "name": "cookie", "attack": - [ { "past": "tempted", "present": "tempt", "pastpart": "tempted", "prespart": "tempting" - } - ], + }, "strength": "delicious", "weakness": "crumbly", - "image": "images/cookie.png", + "image": "url('../images/k/cookie.png')", "alt": "A single Nantucket Pepperidge Farm chocolate chip cookie", "credit": "Evan-Amos, CC0, via Wikimedia Commons" }, { "name": "pollution", - "attack": [ + "attack": { "past": "contaminated", "present": "contaminate", "pastpart": "contaminated", "prespart": "contaminating" - } - ], + }, "strength": "omnipresent", "weakness": "toxic af", - "image": "images/pollution.png", + "image": "url('../images/k/pollution.png')", "alt": "Pink polluting smoke stacks.", "credit": "LeRoy Woodson, Public domain, via Wikimedia Commons" }, { "name": "village", - "attack": [ + "attack": { "past": "swarmed", "present": "swarm", "pastpart": "swarmed", "prespart": "swarming" - } - ], + }, "strength": "united", "weakness": "vulnerable", - "image": "images/village.png", + "image": "url('../images/k/village.png')", "alt": "A circular cropped photo of a village with red roofed houses and a spire.", "credit":"David Marcu davidmarcu, CC0, via Wikimedia Commons" @@ -108,17 +101,16 @@ { "name": "ladder", - "attack": [ + "attack": { "past": "struck", "present": "strike", "pastpart": "struck", "prespart": "striking" - } - ], + }, "strength": "elevating", "weakness": "flimsy", - "image": "images/ladder.png", + "image": "url('../images/k/ladder.png')", "alt": "The top of a yellow step ladder.", "credit":"Video Girl: https://www.publicdomainpictures.net/en/view-image.php?image=264820&picture=window-cleaners-step-ladders" }, @@ -126,45 +118,136 @@ { "name": "computer", - "attack": [ + "attack": { "past": "processed", "present": "process", "pastpart": "processed", "prespart": "processing" - } - ], + }, "strength": "efficient", "weakness": "fragile", - "image": "images/computer.png", + "image": "url('../images/k/computer.png')", "alt": "A white Apple eMac, a computer and a CRT monitor all in one.", "credit":"Evan-Amos, Public domain, via Wikimedia Commons" }, { "name": "history", - "attack": [ + "attack": { "past": "documented", "present": "document", "pastpart": "documented", "prespart": "documenting" - } - ], + }, "strength": "insightful", "weakness": "biased", - "image": "images/history.png", + "image": "url('../images/k/history.png')", "alt": "A black and white photo of a cat with a mostly obscured birthday cake.", "credit":"Frees, H. W., photographer. (ca. 1914) The Birthday Cake. , ca. 1914. June 24. [Photograph] Retrieved from the Library of Congress, https://www.loc.gov/item/2013648266/." - } + }, - ], + { + "name": "beer", + + "attack": + { + "past": "splashed", + "present": "splash", + "pastpart": "splashed", + "prespart": "splashing" + }, + + "strength": "satisfying", + "weakness": "impairing", + + "image": "url('../images/k/beer.png')", + "alt": "A yellow frothy beer in a clear glass.", + "credit": "Len Rizzi (photographer), Public domain, via Wikimedia Commons" + + }, + + { + "name": "tooth", + + "attack": + { + "past": "chomped", + "present": "chomp", + "pastpart": "chomped", + "prespart": "chomping" + }, + + "strength": "sharp", + "weakness": "sensitive", + + "image": "url('../images/k/tooth.png')", + "alt": "A giant megalodon tooth.", + "credit": "First uploader (User:TomCatX) is the author by using an image from User:Lonfat, Public domain, via Wikimedia Commons" + + }, + + { + "name": "signature", + + "attack": + { + "past": "signed away", + "present": "sign away", + "pastpart": "signed away", + "prespart": "signing away" + }, + + "strength": "binding", + "weakness": "forgeable", + + "image": "url('../images/k/signature.png')", + "alt": "Leonhard Euler's signature, but broken up into two lines.", + "credit": "Leonhard Euler, Public domain, via Wikimedia Commons" + + }, + + { + "name": "coffee", + + "attack": + { + "past": "scalded", + "present": "scald", + "pastpart": "scalded", + "prespart": "scalding" + }, + + "strength": "energizing", + "weakness": "addictive", + + "image": "url('../images/k/coffee.png')", + "alt": "A bluish white round cup full of coffee with foam art.", + "credit": "MarkJFernandes, CC0, via Wikimedia Commons" + + }, + + { + "name": "poem", + + "attack": + { + "past": "provoked", + "present": "provoke", + "pastpart": "provoked", + "prespart": "provoking" + }, + + "strength": "expressive", + "weakness": "abstract", + + "image": "url('../images/k/poem.png')", + "alt": "A rose on a cream background with illegible words taken from a postcard of James Whitcomb Riley poem.", + "credit": "Indiana State Library and Historical Bureau, Public domain, via Wikimedia Commons" + + } - "outcomes": [ - { - "win":"Your clever choice of {userWeapon} allows you to triumph over your opponent. A quick {userAttackPresent} exploits the {computerWeakness} nature of your opponent's {computerWeapon}. The {userStrength} always prevail.", - "lose":"You shouldn't have chosen a {userWeapon}. Its {userWeakness} was quickly exploited by your opponent {computerAttackPresPart} in a a quick and {computerStrength} victory.", - "tie": "... {userWeapon} ... more like a {userStrength} and {userWeakness} Spiderman meme." - } ] + } \ No newline at end of file diff --git a/images/k/beer.png b/images/k/beer.png new file mode 100644 index 0000000..86371e8 Binary files /dev/null and b/images/k/beer.png differ diff --git a/images/k/coffee.png b/images/k/coffee.png new file mode 100644 index 0000000..368d18a Binary files /dev/null and b/images/k/coffee.png differ diff --git a/k-graphing/images/computer.png b/images/k/computer.png similarity index 100% rename from k-graphing/images/computer.png rename to images/k/computer.png diff --git a/k-graphing/images/cookie.png b/images/k/cookie.png similarity index 100% rename from k-graphing/images/cookie.png rename to images/k/cookie.png diff --git a/k-graphing/images/history.png b/images/k/history.png similarity index 100% rename from k-graphing/images/history.png rename to images/k/history.png diff --git a/k-graphing/images/ladder.png b/images/k/ladder.png similarity index 100% rename from k-graphing/images/ladder.png rename to images/k/ladder.png diff --git a/k-graphing/images/paper.png b/images/k/paper.png similarity index 100% rename from k-graphing/images/paper.png rename to images/k/paper.png diff --git a/images/k/poem.png b/images/k/poem.png new file mode 100644 index 0000000..ca24c53 Binary files /dev/null and b/images/k/poem.png differ diff --git a/k-graphing/images/pollution.png b/images/k/pollution.png similarity index 100% rename from k-graphing/images/pollution.png rename to images/k/pollution.png diff --git a/k-graphing/images/rock.png b/images/k/rock.png similarity index 100% rename from k-graphing/images/rock.png rename to images/k/rock.png diff --git a/k-graphing/images/scissors.png b/images/k/scissors.png similarity index 100% rename from k-graphing/images/scissors.png rename to images/k/scissors.png diff --git a/images/k/signature.png b/images/k/signature.png new file mode 100644 index 0000000..7012bcd Binary files /dev/null and b/images/k/signature.png differ diff --git a/images/k/tooth.png b/images/k/tooth.png new file mode 100644 index 0000000..12fc5d3 Binary files /dev/null and b/images/k/tooth.png differ diff --git a/k-graphing/images/village.png b/images/k/village.png similarity index 100% rename from k-graphing/images/village.png rename to images/k/village.png diff --git a/k-graphing/k.html b/k-graphing/k.html index 12c1ad1..74d785e 100644 --- a/k-graphing/k.html +++ b/k-graphing/k.html @@ -19,7 +19,9 @@