Skip to content

Instantly share code, notes, and snippets.

View GinLuskin's full-sized avatar

Regina Luskin GinLuskin

View GitHub Profile
@GinLuskin
GinLuskin / script.js
Last active July 19, 2022 16:54
19july2022
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<button id="showAll">Show Companies With Data </button>
<button id="showCompanies">Show Companies</button>
@GinLuskin
GinLuskin / index.html
Last active July 17, 2022 14:08
photo slider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@GinLuskin
GinLuskin / script.js
Last active July 13, 2022 17:51
reduce and sort
companies = [
{name: "Company One", category: "Finance", profit: 120},
{name: "Company Two", category: "Retail", profit: 990},
{name: "Company Three", category: "Auto", profit: 390},
{name: "Company Four", category: "Retail", profit: 450},
{name: "Company Five", category: "Technology", profit: 234},
{name: "Company Six", category: "Finance", profit: 117},
{name: "Company Seven", category: "Auto", profit: 120},
{name: "Company Eight", category: "Technology", profit: 40},
{name: "Company Nine", category: "Retail", profit: -5}
@GinLuskin
GinLuskin / index.html
Last active June 29, 2022 14:49
CSS Effects Homework
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
@GinLuskin
GinLuskin / script.js
Created June 22, 2022 20:13
js loops homework
const nums = [1,2,3,4,5,6,7,8,9,10];
const names = ['Kirk', 'Spock', 'Dr.Bones', 'Scotty']
const spectrum =[-1,3,-6,-3,29,83,-90]
function oneByOne(arr){
for (let i=0; i<arr.length; i++){
console.log(arr[i]);
}
}
@GinLuskin
GinLuskin / index.html
Last active June 22, 2022 15:55
CSS Layout Homework
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
const bnt = document.getElementById("bnt");
let bntState = "On";
bnt.onclick = function(){
if ((bntState === "On")){
bntState = "Off"
}else
bntState = "On"
bnt.innerHTML = bntState;
}