Build a flexible, robust web page that performs well in search engines, and works on any device.
Create a stunning visual design, using a text editor and a Web browser.
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (people) { | |
// loop through each of the people | |
for (var counter = 0; counter < people;counter++ ){ | |
// shake each person’s hand who you haven’t shaken yet | |
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (people) { | |
// loop through each of the people | |
for (var counter = 0; counter < people;counter++ ){ | |
} |
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function countHandshakes (people) { | |
// loop through each of the people | |
for (var counter = 0; counter < people;counter++ ){ | |
} |
// If we all shook each others' hands once (and only once), | |
// how many handshakes would that be?? | |
// Write a function that calculates how many handshakes will | |
// occur for a given number of people. | |
function count(){ | |
// loop through each of the people | |
for (people = 5; people > ) | |
} |
// Write a function that calculates how many handshakes will | |
// occur with a given number of people | |
// It’s my turn! : ) | |
function closest(element, tagName) { | |
// If the element is the target | |
if (element.nodeName.toLowerCase() === tagName) return element; | |
var ancestor = element; | |
while ((ancestor = ancestor.parentElement) && ancestor.nodeName && ancestor.nodeName.toLowerCase() !== tagName); | |
if (ancestor && ancestor.nodeName && ancestor.nodeName.toLowerCase() === tagName) { | |
return ancestor; | |
} |
<!doctype html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<style> | |
@keyframes pulse { | |
100% { | |
box-shadow: 0 0 0.25em rgba(77, 85, 148, 1); | |
} |
Build a flexible, robust web page that performs well in search engines, and works on any device.
Create a stunning visual design, using a text editor and a Web browser.
<!DOCTYPE html> | |
<html dir="ltr" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Math Equations as TeX (rendered with MathJax)</title> | |
<link href='http://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
background: white; | |
font: 20px/normal 'Crimson Text', serif; |
document.querySelector('link[href*="application.css"]').href += "#a"; |