Skip to content

Instantly share code, notes, and snippets.

@alexpelan
alexpelan / README.md
Created January 7, 2018 21:49
Exported from Popcode.

Make Your Own Madlib!

Get the value of the inputs and append them to the page to create your own madlib!

Create Your Variables, & Get the Input Values

  1. Create adjective and verb variables (we've already created noun for you).
  2. Get the value of the adjective input, and store it in the adjective variable.
  3. Get the value of the verb input, and store it in the verb variable.

Make Your Own Madlib!

Get the value of the inputs and append them to the page to create your own madlib!

Create Your Variables, & Get the Input Values

  1. Create adjective and verb variables (we've already created noun for you).
  2. Get the value of the adjective input, and store it in the adjective variable.
  3. Get the value of the verb input, and store it in the verb variable.
  1. In your HTML, give your page a title <title> Function Declaration </title>
  2. Call the square function 4 times to draw 4 squares
  3. Call the rectangle function 2 times to draw 2 rectangles.
  1. In your HTML, give your page a title <title> Function Declaration </title>
  2. Create a square(); function that draws a square and call it four times to create four squares next to each other.
  3. Create a rectangle(); function that draws a rectangle. Call it two times.
<!DOCTYPE html>
<html>
<head>
<title>Tiny Turtle</title>
<script src="https://toolness.github.io/tiny-turtle/tiny-turtle.js"></script>
</head>
<body>
<h1>Tiny Turtle</h1>
<canvas></canvas>
</body>
<!DOCTYPE html>
<html>
<head>
<title>05.3 jQuery Actions jQuery Funhouse</title>
</head>
<body>
<div class="row">
<div class="control">
<img id="garage-door-opener" src="https://cl.ly/1V3c0o172S0N/garagedoor.jpg">
</div>
<!DOCTYPE html>
<html>
<head>
<title>05.4 Multiple jQuery actions in one Click Handler</title>
</head>
<body>
<button id='button1'> Show box </button>
<div id='blue'> </div>
<div id='red'> </div>
</body>
@alexpelan
alexpelan / README.md
Last active October 11, 2017 23:00
Exported from Popcode. Click to import: https://popcode.org/?gist=d061c30047120c1a8169a824180cb45a

Task 1:

Add classes to your html organize the places by borough.

Task 2:

Use CSS to make each of the classes look different. Manhattan, Brooklyn, Bronx and Staten Island and Queens should all have distinguishing characteristics (think about text color, background color, text size, etc.)

Task 1:

Add classes to your html organize the places by borough.

Task 2:

Use CSS to make each of the classes look different. Manhattan, Brooklyn, Bronx and Staten Island and Queens should all have distinguishing characteristics (think about text color, background color, text size, etc.)

Task 1:

Add classes to your html organize the places by borough.

Task 2:

Use CSS to make each of the classes look different. Manhattan, Brooklyn, Bronx and Staten Island and Queens should all have distinguishing characteristics (think about text color, background color, text size, etc.)