This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// all jQuery methods go here... | |
//CHALLENGE - together | |
//runningman | |
$("#runningman-img").hover(runningmanGiphy, runningmanIcon) | |
function runningmanGiphy() { | |
this.src = 'images/runningman-giphy.gif'; | |
} | |
function runningmanIcon() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//insert after CSS script import | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Challenge 0 - Make the “play” button move to random locations as you click it | |
let button = document.getElementById("play-button") | |
button.addEventListener("click", moveToRandom) | |
function moveToRandom() { | |
button.style.top = Math.floor(Math.random() * 100) + "%" | |
button.style.left = Math.floor(Math.random() * 100) + "%" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
//CHALLENGE 1 | |
let movieList = [ | |
"Captain America: The First Avenger", | |
"Captain Marvel", | |
"Iron Man", | |
"The Incredible Hulk", | |
"Iron Man 2", | |
"Thor", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.0.0.js"></script> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
#name { | |
color: blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let movieListDetailedJSON = { | |
"Captain America: The First Avenger": { | |
timelinePosition: 1, | |
moviePoster: "images/poster-captainamericafirstavenger.jpg", | |
releaseDate: "July 22, 2011", | |
releasePosition: 5, | |
description: "Marvel's 'Captain America: The First Avenger' focuses on the early days of the Marvel Universe when Steve Rogers volunteers to participate in an experimental program that turns him into the Super Soldier known as Captain America.", | |
budget: "216,700,000", | |
gross: "370,569,774", | |
rottenTomatoes: "80%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="style.css"> <!-- imports stylesheet style.css --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <!-- imports jQuery library --> | |
<title>Pokemon Battle</title> | |
</head> | |
<body> | |
<h1 id="header">Pokemon Battle</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pikachu = { | |
"name":"pikachu", | |
"id":25, | |
"order":35, | |
"species":{ | |
"name":"pikachu", | |
"url":"https://pokeapi.co/api/v2/pokemon-species/25/" | |
}, | |
"height":4, | |
"weight":60, |
OlderNewer