Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions John_Lee/1-Group Projects/#1- jQuery 1.31.2017/group.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<link rel="stylesheet" type="text/css" href="gstyle.css">
<title>Battleground</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$("#Dojo").click(function(){
$('#Dojo').parents('#wrapper').css('background-image', 'url("dojo.jpg")')
});
$("#Beach").click(function(){
$('#Beach').parents('#wrapper').css('background-image', 'url("beach.jpg")')
});
$("#Castle").click(function(){
$('#Castle').parents('#wrapper').css('background-image', 'url("castle.jpg")')
});
$('#y1').click(function(){
$('#sy').show("slow",function(){
});
});
$('#b1').click(function(){
$('#sb').show("slow",function(){
});
});
$('#g1').click(function(){
$('#sg').show("slow",function(){
});
});
$('#y2').click(function(){
$('#sy1').show("slow",function(){
});
});
$('#b2').click(function(){
$('#sb2').show("slow",function(){
});
});
$('#g2').click(function(){
$('#sg2').show("slow",function(){
});
});
$('#next').click(function(){
$("#inner2").show("slow",function(){
});
$("#inner").hide("slow",function(){
});
});
});
</script>
</head>

<body>
<div id="wrapper">
<div id="left">
<img id="sy" src="yellow.jpeg" alt="" width="200" height="300">
<img id="sb" src="black.png" alt="" width="200" height="300">
<img id="sg" src="green.jpeg" alt="" width="200" height="300">
</div>
<div id="middle">
<div id="inner">
<h2>Select Arena</h2>
<button id="Dojo">Dojo</button>
<button id="Beach">Beach</button>
<button id="Castle">Castle</button>
<button id="next">Next>></button>
</div>
<div id="inner2">
<h2>Select Players</h2>
<h3>Player 1</h3>
<button id="y1">Yellow</button>
<button id="b1">Black</button>
<button id="g1">Green</button>
<h3>Player 2</h3>
<button id="y2">Yellow</button>
<button id="b2">Black</button>
<button id="g3">Green</button>
<!-- <ul>
<li>
<select id="select_1">
<option>&nbsp</option>
<option id="y1" value="yellow">Yellow Ninja</option>
<option id="b1" value="black">Black Ninja</option>
<option id="g1" value="green">Green Ninja</option>
</select>
</li>
</ul>
<ul>
<li>
<select id="select_2">
<option>&nbsp</option>
<option id="y2" value="yellow">Yellow Ninja</option>
<option id="b2" value="black">Black Ninja</option>
<option id="g2" value="green">Green Ninja</option>
</select>
</li>
</ul> -->
</div>
</div>
<div id="right">
<img id="sy2" src="yellow.jpeg" alt="" width="200" height="300">
<img id="sb2" src="black.png" alt="" width="200" height="300">
<img id="sg2" src="green.jpeg" alt="" width="200" height="300">
</div>
</div>
</body>

</html>
60 changes: 60 additions & 0 deletions John_Lee/1-Group Projects/#1- jQuery 1.31.2017/gstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
*{
margin: 0px;
padding: 0px;
}
#wrapper{
margin: 0px auto;
height: 1000px;
background-color: black;
}
#middle{
width: 350px;
height: 700px;
margin-top: 150px;
vertical-align: top;
display: inline-block;
}
#inner{
width: 200px;
height: 150px;
padding: 30px 20px;
background-color: grey;
border-radius: 10px;
display: inline-block;
}
#inner button{
margin-top: 30px;
}
a{
vertical-align: baseline;
}
#inner2{
width: 200px;
height: 150px;
padding: 30px 20px;
display: none;
list-style: none;
background-color: grey;
border-radius: 10px;
}
ul{
list-style:none;
}
#left{
width: 500px;
height: 700px;
vertical-align: top;
display: inline-block;
}
#left img{
display:none;
}
#right img{
display:none;
}
#right{
width: 500px;
height: 700px;
vertical-align: top;
display: inline-block;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions John_Lee/API and Ajax/GoT/Game of Thrones.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<title>Game of Thrones</title>
<style>
body{
background-color: grey;
}
#icons{
width:auto;
height:auto;
margin:auto;
}
#details{
width: 400px;
height: 300px;
margin-left: 395px;
background-color: white;
border: solid 3px black;
}
</style>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script type='text/javascript'>
var baseurl = "http://anapioficeandfire.com/api/houses/";
$(document).ready(function() {
$('img').click(function() {
var string = $(this).attr('src')
var target = string.split('.')
var id = target[0]
if(id==='stark'){
id=362;
}
if(id==='baratheon'){
id=355;
}
if(id==='targaryen'){
id=342;
}
if(id==='lannister'){
id=302;
}
$.get(baseurl+id,function(res){
$('#details').html("<h2>" +"Name: " + res.name + "</h2>");
$('#details').append("<h2>" +"Words: " + res.words + "</h2>");
$('#details').append("<h2>" +"Region: " + res.region + "</h2>");
$('#details').append("<h2>" +"Titles: " + res.titles + "</h2>");
}, 'json');

return false;
});
});
</script>
</head>

<body>
<div id='icons'>
<img src='baratheon.png' alt='baratheon' width="300" height="200">
<img src='targaryen.jpg' alt='targaryen' width="300" height="200">
<img src='lannister.jpg' alt='lannister' width="300" height="200">
<img src='stark.jpg' alt='stark' width="300" height="200">
</div>
<div id='details'>
</div>
</body>
</html>
Binary file added John_Lee/API and Ajax/GoT/baratheon.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 John_Lee/API and Ajax/GoT/lannister.jpg
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 John_Lee/API and Ajax/GoT/stark.jpg
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 John_Lee/API and Ajax/GoT/targaryen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading