Lucas Kent e39465ad2f Changes to be committed:
new file:   Files/flashplayer_32_sa.exe
	new file:   favicon.ico
	new file:   globe.gif
	new file:   imgs/download.png
	new file:   imgs/zuck.jpg
	new file:   index.html
	new file:   other.ico
	new file:   script.js
	new file:   site.webmanifest
	new file:   sitemap.html
	new file:   styles/backround.css
	new file:   styles/border.css
	new file:   styles/fonts/Titillium_Web/OFL.txt
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf
	new file:   styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf
	new file:   styles/fonts/webfontkit-20221027-163353/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2
	new file:   styles/fonts/webfontkit-20221027-165950/generator_config.txt
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css
	new file:   styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/stylesheet.css
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff
	new file:   styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2
	new file:   styles/style.css
	new file:   tools/2048/.gitignore
	new file:   tools/2048/.jshintrc
	new file:   tools/2048/CONTRIBUTING.md
	new file:   tools/2048/LICENSE.txt
	new file:   tools/2048/README.md
	new file:   tools/2048/Rakefile
	new file:   tools/2048/favicon.ico
	new file:   tools/2048/index.html
	new file:   tools/2048/js/animframe_polyfill.js
	new file:   tools/2048/js/application.js
	new file:   tools/2048/js/bind_polyfill.js
	new file:   tools/2048/js/classlist_polyfill.js
	new file:   tools/2048/js/game_manager.js
	new file:   tools/2048/js/grid.js
	new file:   tools/2048/js/html_actuator.js
	new file:   tools/2048/js/keyboard_input_manager.js
	new file:   tools/2048/js/local_storage_manager.js
	new file:   tools/2048/js/tile.js
    new file:   tools/2048/meta/apple-touch-icon.png
	new file:   tools/webretro/cores/neocd_libretro.js
	new file:   tools/webretro/cores/neocd_libretro.wasm
	new file:   tools/webretro/cores/nestopia_libretro.js
	new file:   tools/webretro/cores/nestopia_libretro.wasm
	new file:   tools/webretro/cores/o2em_libretro.js
	new file:   tools/webretro/cores/o2em_libretro.wasm
	new file:   tools/webretro/cores/opera_libretro.js
	new file:   tools/webretro/cores/opera_libretro.wasm
2022-11-02 08:40:01 -04:00

151 lines
5.4 KiB
HTML

<!doctype html>
<html lang="en"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
<!-- Mirrored from www.mathsisfun.com/games/dayofweek.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:30:15 GMT -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- #BeginEditable "doctitle" -->
<title>Day of the Week you were Born</title>
<!-- #EndEditable -->
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="HandheldFriendly" content="true">
<meta name="referrer" content="always">
<link rel="stylesheet" type="text/css" href="../style3.css">
<script src="../main3.js"></script>
</head>
<body id="bodybg">
<div class="bg">
<div id="stt"></div>
<header>
<div id="hdr"></div>
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
<div id="gtran">
<script>document.write(getTrans());</script>
</div>
<div id="adTopOuter" class="centerfull noprint">
<div id="adTop">
<script>document.write(getAdTop());</script>
</div>
</div>
<div id="adHide">
<div id="showAds1"><a href="javascript:showAds()">Show Ads</a></div>
<div id="hideAds1"><a href="javascript:hideAds()">Hide Ads</a><br>
<a href="../about-ads.html">About Ads</a></div>
</div>
</header>
<nav>
<div id="menuWide" class="menu">
<script>document.write(getMenu(0));</script>
</div>
<div id="linkto">
<div id="linktort">
<script>document.write(getLinks());</script>
</div>
</div>
<div id="search" role="search">
<script>document.write(getSearch());</script>
</div>
<div id="menuSlim" class="menu">
<script>document.write(getMenu(1));</script>
</div>
<div id="menuTiny" class="menu">
<script>document.write(getMenu(2));</script>
</div>
</nav>
<div id="extra"></div>
</div>
<article id="content" role="main"><!-- #BeginEditable "Body" -->
<h1 align="center">Day of the Week</h1>
<p>Ever wonder what day you were born on? Well, you can find out with this
neat little script. Simply type your date of birth in the box below, and it will tell you ... honest!</p>
<p>Zeller's Algorithm can be used to determine the day of the week for any
date in the past, present or future, for any dates between 1582 and 4902.<br />
<br />
To use this algorithm, input your date of birth, and
then <i>boom</i> the day of the week in which you were born on appears.</p>
<script src="../measure/images/day-week.js" type="text/javascript"></script>
<script type="text/javascript">dayweekMain();</script>
<h2>The Nursery Rhyme</h2>
<i>
<div class="indent50px">Monday's child is fair of face,<br />
Tuesday's child is full of grace,<br />
Wednesday's child is full of woe,<br />
Thursday's child has far to go.<br />
Friday's child is loving and giving,<br />
Saturday's child works hard for a living,<br />
But the child born on the Sabbath Day,<br />
Is fair and wise and good in every way.</div>
<br />
</i>
<p>That is an old Nursery Rhyme about the days of the week that is supposed to tell your character or future based on the day you were born. </p>
<p>If it were true, do you think people would notice that most models were born on Monday (fair of face)? Or most dancers were born on Tuesday (full of grace)? </p>
<p><a href="../activity/day-of-week-born.html">Do your own research</a> to find if there is any truth in it! </p>
<h2>Only since 1582</h2>
<p>This only works in the <b>Gregorian Calendar</b> that replaced the old <b>Julian Calendar</b> in <b>1582</b> (or other years in other countries, such as 1751 in Great Britain).</p>
<h2>Footnote</h2>
<div class="fun">
<h3>Zeller's Algorithm in JavaScript</h3>
<p>Zeller's Algorithm takes year, month and day numbers and uses some basic math (+ &minus; &times; &divide;) and the <a href="../sets/function-floor-ceiling.html">floor</a> function (which removes any digits after the decimal point). </p>
<p>This is what it looks like in JavaScript (parseInt is used instead of floor):</p>
<pre> if (nMonth >= 3) {
nMonth -= 2;
} else {
nMonth += 10;
}
if ((nMonth == 11) || (nMonth == 12)) nYear--;
var nCentury = parseInt(nYear / 100);
var nYear100 = nYear % 100;
var h = 0; // day of week number
h += parseInt(nDay);
h += parseInt((13 / 5) * nMonth - 0.2);
h += parseInt(nYear100);
h += parseInt(nYear100 / 4);
h += parseInt(nCentury / 4);
h -= parseInt(2 * nCentury);
h %= 7;
if (nYear >= 1700 && nYear <= 1751) {
h -= 3;
} else {
if (nYear <= 1699) h -= 4;
}
if (h < 0) h += 7;
</pre>
<p>&nbsp;</p>
</div>
<p>&nbsp;</p>
<div class="related">
<a href="../measure/calendar-12-months.html">Twelve Month Calendar </a><a href="index.html">Games</a>
</div>
<!-- #EndEditable --></article>
<div id="adend" class="centerfull noprint">
<script>document.write(getAdEnd());</script>
</div>
<footer id="footer" class="centerfull noprint">
<script>document.write(getFooter());</script>
</footer>
<div id="copyrt">
Copyright &copy; 2019 MathsIsFun.com
</div>
<script>document.write(getBodyEnd());</script>
</body>
<!-- #EndTemplate -->
<!-- Mirrored from www.mathsisfun.com/games/dayofweek.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:30:15 GMT -->
</html>