Skip to content

Commit

Permalink
new friend
Browse files Browse the repository at this point in the history
  • Loading branch information
deilann committed Sep 29, 2023
1 parent 274de1d commit 4f6f778
Show file tree
Hide file tree
Showing 11 changed files with 426 additions and 105 deletions.
170 changes: 170 additions & 0 deletions data/kData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"weapons": [

{
"name": "rock",
"attack": [
{
"past": "bludgeoned",
"present": "bludgeon",
"pastpart": "bludgeoned",
"prespart": "bludgeoning"
}
],
"strength": "heavy",
"weakness": "brittle",
"image": "rock.png",
"alt": "A pretty sharp and deadly looking rock.",
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Pebble_MET_sf17-193-196s3.jpg\">Metropolitan Museum of Art</a>, CC0, via Wikimedia Commons"
},

{
"name": "paper",
"attack": [
{
"past":"paper cut",
"present":"paper cut",
"pastpart":"paper cut",
"prespart":"paper cutting"
}
],
"strength": "sneaky",
"weakness": "floppy",
"image": "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"
},

{
"name": "scissors",

"attack": [
{
"past":"stabbed",
"present":"stab",
"pastpart":"stabbed",
"prespart":"stabbing"
}
],
"strength": "pointy",
"weakness": "exclusionary",
"image": "images/scissors.png",
"alt": "A pair of orange-handled right-handed Fiskars scissors",
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Large-scissors.jpg\">Evan-amos</a>, Public domain, via Wikimedia Commons"
},

{
"name": "cookie",
"attack":
[
{
"past": "tempted",
"present": "tempt",
"pastpart": "tempted",
"prespart": "tempting"
}
],
"strength": "delicious",
"weakness": "crumbly",
"image": "images/cookie.png",
"alt": "A single Nantucket Pepperidge Farm chocolate chip cookie",
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:Pep-Farm-Cookie-Alt.jpg\">Evan-Amos</a>, CC0, via Wikimedia Commons"
},

{
"name": "pollution",
"attack": [
{
"past": "contaminated",
"present": "contaminate",
"pastpart": "contaminated",
"prespart": "contaminating"
}
],
"strength": "omnipresent",
"weakness": "toxic af",
"image": "pollution.png",
"alt": "Pink polluting smoke stacks.",
"credit": "<a href=\"https://commons.wikimedia.org/wiki/File:CHIMNEYS_OF_U.S._STEEL_PLANT_EMIT_SMOKE_24_HOURS_A_DAY_-_NARA_-_545435.jpg\">LeRoy Woodson</a>, Public domain, via Wikimedia Commons"
},

{
"name": "village",
"attack": [
{
"past": "swarmed",
"present": "swarm",
"pastpart": "swarmed",
"prespart": "swarming"
}
],
"strength": "united",
"weakness": "vulnerable",
"image": "village.png",
"alt": "A circular cropped photo of a village with red roofed houses and a spire.",
"credit":"<a href=\"https://commons.wikimedia.org/wiki/File:Small_town_red_roofs_(Unsplash).jpg\">David Marcu davidmarcu</a>, CC0, via Wikimedia Commons"

},

{
"name": "ladder",
"attack": [
{
"past": "struck",
"present": "strike",
"pastpart": "struck",
"prespart": "striking"
}
],
"strength": "elevating",
"weakness": "flimsy",
"image": "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"
},

{
"name": "computer",

"attack": [
{
"past": "processed",
"present": "process",
"pastpart": "processed",
"prespart": "processing"
}
],
"strength": "efficient",
"weakness": "fragile",
"image": "computer.png",
"alt": "A white Apple eMac, a computer and a CRT monitor all in one.",
"credit":"<a href=\"https://commons.wikimedia.org/wiki/File:Apple-eMac-FL.jpg\">Evan-Amos</a>, Public domain, via Wikimedia Commons"
},

{
"name": "history",
"attack": [
{
"past": "documented",
"present": "document",
"pastpart": "documented",
"prespart": "documenting"
}
],
"strength": "insightful",
"weakness": "biased",
"image": "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/."
}

],

"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."
}
]
}
26 changes: 26 additions & 0 deletions data/kData_empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"weapons": [
{
"name": "",
"attack": [
{
"past": "",
"present": "",
"pastpart": "",
"prespart": ""
}
],
"strength": "",
"weakness": "",
"image": "",
"alt": "",
"credit": ""
}
],

"outcomes": [
{
"outcome":""
}
]
}
98 changes: 0 additions & 98 deletions k-graphing/data.json

This file was deleted.

Binary file added k-graphing/images/computer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/ladder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/pollution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added k-graphing/images/village.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions k-graphing/k.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles/genderstyle.css">
<link rel="stylesheet" href="../styles/genderstyle.css">
<title>k</title>
</head>
<body>
<div id="k-container">
<h1>k = <span class="display" id="k-display"></span></h1>
<button onclick="kPlusPlus()" class="modifier" id="k-modifier">k++</button>
</div>
<div id="options">

<h2>Choose Wisely</h2>
<div id="option-buttons">
</div>
</div>
<div id="buttons"></div>


<!--
<button class="option" name="rock" value=0>rock</button>
<button class="option" name="paper" value=1>paper</button>
<button class="option" name="scissors" value=2>scissors</button>
<h2>Computer Choice: <span class="display" id="computer-choice"></span></h2>
<h2>Your Choice: <span class="display" id="user-choice"></span></h2>
<h2>Outcome: <span class="display" id="outcome"></span></h2> -->

<script src="app.js" charset="utf-8"></script>
<script src="kApp.js" charset="utf-8"></script>
</body>
</html>
Loading

0 comments on commit 4f6f778

Please sign in to comment.