Skip to content

Commit

Permalink
Talk is cheap. Show me the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
zelenko committed Mar 30, 2018
1 parent 7f9139b commit 7d90cc7
Show file tree
Hide file tree
Showing 19 changed files with 90 additions and 43 deletions.
5 changes: 3 additions & 2 deletions 01_history_api/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML5 History API</title>

<link rel="stylesheet" href="/css/html5demos.css">
Expand Down
7 changes: 6 additions & 1 deletion 03_color_picker/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!DOCTYPE html>
<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">
</head>
<body>

<form id="myForm">
Expand Down
5 changes: 4 additions & 1 deletion 04_color_form/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<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">
<script defer src="script.js"></script>
</head>
<body>
Expand Down
7 changes: 6 additions & 1 deletion 05_events/index.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!DOCTYPE html>
<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">
</head>
<body>

<p>This example uses the addEventListener() method to attach a click event to a button.</p>
Expand Down
11 changes: 5 additions & 6 deletions 06_find_max_in_array/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<!-- find max without using if else -->

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<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">
<title>Two ways to Find Max</title>
<script defer src="script.js"></script>
</head>
Expand Down
6 changes: 4 additions & 2 deletions 09_display_json_on_page/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<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">
<title>Our superheroes</title>
<link href="https://fonts.googleapis.com/css?family=Faster+One" rel="stylesheet">
<link rel="stylesheet" href="style.css">
Expand Down
7 changes: 5 additions & 2 deletions 10_many_keyboard_shortcuts/panel.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!DOCTYPE html>
<html>
<head><title>Keyboard navigation</title>
<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">
<title>Keyboard navigation</title>
<script type="text/javascript" src="shortcut.js"></script>

<script>
Expand Down
3 changes: 2 additions & 1 deletion 11_random_quotes/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<!DOCTYPE html>
<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">
<title>quotes</title>

Expand Down
10 changes: 6 additions & 4 deletions 12_center_of_page_style/center.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!DOCTYPE html>
<html><head><title>Center Block</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<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">
<title>Center Block</title>

<style type="text/css">
#mydiv1 {
Expand Down
11 changes: 4 additions & 7 deletions 12_center_of_page_style/center2.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<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">
<title>Center of Page</title>

<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body {
background-color: #f0f0f2;
Expand Down
9 changes: 3 additions & 6 deletions 13_navigation_menu/tree.htm
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>

<title>Navigation menu with keyboard shortcuts</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Navigation menu with keyboard shortcuts</title>
<meta name="description" content="JavaScript navigation menu with keyboard shortcuts">
<link rel="stylesheet" href="style.css">
<meta name="author" content="zeLenko.org">

</head>

<body>
Expand Down
5 changes: 4 additions & 1 deletion 14_update_another_field/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!doctype html>
<!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">
<script defer src="script.js"></script>
</head>
<body>
Expand Down
6 changes: 4 additions & 2 deletions 14_update_another_field/test.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document</title>
</head>
<body>
Expand Down
7 changes: 6 additions & 1 deletion 15_start_pause_timer/timer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!DOCTYPE html>
<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">
</head>
<body>

<p id="txt"></p>
Expand Down
8 changes: 7 additions & 1 deletion 16_loop_through_array/js-for-loop.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<!DOCTYPE html>
<html><head><title>JS For Loop</title></head>
<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">
<title>JS For Loop</title>
</head>
<body>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<!DOCTYPE html>
<html><head><title>JS Navigation Shortcuts</title>
<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">
<title>JS Navigation Shortcuts</title>

<script type="text/javascript" src="navigate.js"></script>

Expand Down
6 changes: 5 additions & 1 deletion 20_confirm_dialog_box/js-confirmation.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<html>
<!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">
<title>Confirmation Example</title>
<SCRIPT LANGUAGE="JavaScript">
function confirmAction() {
Expand Down
9 changes: 6 additions & 3 deletions 21_countdown_and_reload_page/js-countdown.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >
<!DOCTYPE html>
<html lang="en">
<head>
<title>JS count down from 5</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>JS count down from 5</title>

<script type="text/javascript">
window.onload = function() {
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
* [JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON)
* [xmlhttprequest](http://devdocs.io/dom/xmlhttprequest/xmlhttprequest)

> First, solve the problem. Then, write the code.
> Features, quality, time: pick two.
> Talk is cheap. Show me the code.

0 comments on commit 7d90cc7

Please sign in to comment.