Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liz lab/hw5 (survey) #203

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
116 changes: 116 additions & 0 deletions Assignment/Homework_2 - CSS_ResponsiveDesign/hw2_lizlee0225.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/*----------------- CSS RESET ------------------*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
vertical-align: baseline;
}

header{
width: 100%;
background: #BD5858;
color: #ffffff;
height: 120px;
line-height: 120px;
text-align: center;
}

.headers {
display: inline-block;
vertical-align: middle;
width: 30%;
}

#title {
font-size: 3.8em;
}

#dropdown {
float: left;
}

#pokeball {
float: right;
}

input {
margin: auto;
margin-top: 52px;
width: 90%;
height: 75px;
display: block;
font-size: 3em;
}

.main-poke {
display: inline-block;
}

#description {
border: 15px solid;
border-color: #BD5858;
border-radius: 30px;
display: block;
font-size: 3em;
padding: 10px;
}

section{
width: 95%;
display: block;
margin: auto;
}

table{
width: 100%;
height: 25%;
border-collapse: collapse;
}

table, th, td {
border: 2px solid black;
}

.nav-button {
color: black;
font-size: 3em;
}

button {
border-radius: 10px;
width: 200px;
}

footer{
width: 100%;
background: #5D90CB;
height: 140px;
line-height: 140px;
text-align: center;
}

.footer-navs {
display: inline-block;
vertical-align: middle;
width: 24%;
}


a{
text-decoration: none;
}
95 changes: 95 additions & 0 deletions Assignment/Homework_2 - CSS_ResponsiveDesign/hw2_lizlee0225.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pokedex</title>
<!-- Load stylesheets based on viewport -->
<link rel="stylesheet" type="text/css" href="hw2_lizlee0225.css">
<link rel="stylesheet" type="text/css" media="(max-width: 667px)" href="hw2_lizlee0225_iphone6.css">
<link rel="stylesheet" type="text/css" media="(min-width: 668px) and (max-width: 1024px)" href="hw2_lizlee0225_ipad.css">
</head>

<body>
<header>
<div class = "headers">
<button id = "dropdown"><a class = "nav-button" href = "#description">Dropdown</a></button>
</div>
<div class = "headers">
<h2 id="title"> Pokedex </h2>
</div>
<div class = "headers">
<img id = "pokeball" src = "assets/icons/pokeball_icon.png" alt = "Pokeball">
</div>
</header>

<article>
<form>
<input type = "text" placeholder = " Search Pokemon"></form>
<div class = "main-poke">
<img id = "pikachu" src = "assets/images/pickahu.png" alt = "pikachu">
</div>
<div class = "main-poke">
<h3 id = "pokename"><span>No. 001 Pikachu </span></h3>
</div>
<div class = "main-poke">
<ul>
<li>Electric type</li>
<li>Gentle temperment</li>
<li>Grasslands</li>
</ul>
</div>
<section>
<p id="description"> Pickahu can be seen napping in a bright sunlight. It has two dots on its cheeks. By practicing html and css Pikachu can learn confusion. Pikachu likes to steal computer chargers from sleeping college students. </p>
</section>
</div>
</article>
<br><br><br><br>
<div class = 'other-pokemons'>
<table>
<tr>
<th><img src = "assets/images/whatisthat.png" alt = "1"></th>
<th><img src = "assets/images/abra.png" alt = "2"></th>
<th><img src = "assets/images/vulpix.png" alt = "3"></th>
<th><img src = "assets/images/nidorino.png" alt = "4"></th>
<th><img src = "assets/images/clafary.png" alt = "5"></th>
<th><img src = "assets/images/charmeleon.png" alt = "6"></th>
</tr>
<tr>
<th><img src = "assets/images/charmander.png" alt = "7"></th>
<th><img src = "assets/images/firething.png" alt = "8"></th>
<th><img src = "assets/images/jigglyppuff.png" alt = "9"></th>
<th><img src = "assets/images/horsea.png" alt = "10"></th>
<th><img src = "assets/images/pidgey.png" alt = "11"></th>
<th><img src = "assets/images/wartortle.png" alt = "12"></th>
</tr>
</table>
<footer>
<div class = "footer-navs">
<button id = "back"><a class = "nav-button" href = "#title">BACK</a></button>
</div>
<div class = "footer-navs">
<button id = "map"><a class = "nav-button" href = "map.html">MAP</a></button>
</div>
<div class = "footer-navs">
<button id = "area"><a class = "nav-button" href = "area.html">AREA</a></button>
</div>
<div class = "footer-navs">
<button id = "next"><a class = "nav-button" href = "#pokename">NEXT</a></button>
</div>
</footer>
</body>
</html>












Empty file.
Empty file.
9,653 changes: 5,092 additions & 4,561 deletions Assignment/Homework_2 - CSS_ResponsiveDesign/pokedex_ipad.ai

Large diffs are not rendered by default.

9,804 changes: 5,244 additions & 4,560 deletions Assignment/Homework_2 - CSS_ResponsiveDesign/pokedex_laptop.ai

Large diffs are not rendered by default.

Binary file added Assignment/flaskLab2/.spyderworkspace
Binary file not shown.
4 changes: 4 additions & 0 deletions Assignment/flaskLab2/app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from flask import Flask

myapp = Flask(__name__)
from app import views
Binary file added Assignment/flaskLab2/app/__init__.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
44 changes: 44 additions & 0 deletions Assignment/flaskLab2/app/static/interactions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
$('#submit-survey').on('click', function submitSurvey() {
var animal = $("input[name=animal]").val();
var shop = $("input[name=shop]").val();
var timemachine = $("input[name=timemachine]").val();
var movie = $("input[name=movie]").val();
var feBefore = $("input[name=front-end-before]").val();
var feAfter = $("input[name=front-end-after]").val();
/*5c. Create a $.post() Ajax request within this ‘click’ event handler*/
/*5c.i. The url for this Ajax request should point to ‘submit-survey’*/
/*5c.ii. The data parameter of this Ajax request should be an object whose
key-value pairs correspond to the variables for each form input field*/
$.post("submit-survey",
{animal:animal,
shop:shop,
timemachine:timemachine,
movie:movie,
feBefore:feBefore,
feAfter:feAfter},
function(data){
$("html").html(data);
});
});

$("#results-email-container").on('click', '#email-results-button', function emailResults() {
console.log($(this));
});

$("#site-title-wrapper").on('click', function goHome() {
window.location.href = '/';
});

$(document).ready(function applySliderLabels() {
var currentValue = $("#fe-before").val();
$("#fe-before").next().html(currentValue);

currentValue = $("#fe-after").val();
$("#fe-after").next().html(currentValue);
});


$("input[type='range']").on('change', function updateLabel() {
var currentValue = $(this).val();
$(this).next().html(currentValue);
});
Loading