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

187 lines
5.5 KiB
HTML

<!doctype html>
<html lang="en">
<!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 --><head>
<meta charset="UTF-8">
<!-- #BeginEditable "doctitle" -->
<title>Sorry We Can't Find It (404)</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="https://www.mathsisfun.com/"><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" -->
<p style="float:left; margin: 0 10px 5px 0;">
<img src="/images/art/sage-dig-bones.gif">
</p>
<br>
<p class="larger">We&nbsp;can't&nbsp;find&nbsp;<i>&quot;<span id="h1Name"></span>&quot;</i></p>
<p class="larger">Try the search above ...<img src="/images/style/up.gif" width="46" height="46" align="absmiddle" /></p>
<p>... or try another name below:</p>
<div style="clear:both"></div>
<div class="center">
<form action='' method="post" name="URLForm" id="URLForm">
https://www.mathsisfun.com/
<input type="text" id="newName" name="newName" style="font: 18px Arial; width:250px;" value='' />
<input type="submit" name="Go" value="Go" style="font: 18px Arial;" onClick='URLGo(); return false;' />
</form>
</div>
<p>&nbsp;</p>
<script>
// var uri = getQueryVariable('uri');
var uri = '/mathsisfun/'
if (uri.charAt(0) == '/') uri = uri.substr(1);
console.log("uri", uri);
document.getElementById('h1Name').innerHTML = uri;
document.getElementById('newName').value = uri;
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return false;
}
function URLGo() {
var locn = document.URLForm.newName.value;
this.location.href = "https://www.mathsisfun.com/" + locn;
}
function urlSttGet() {
var stack = location.href.split("/");
stack.pop(); // remove current file name (or empty string)
var url = stack.join("/"); // remove filename
var urlStt = "../"; // most urls are down one folder
if (endsWith(url, "/mathsisfun")) urlStt = ""; // for urls at root
if (endsWith(url, "mathsisfun.com")) urlStt = "";
//console.log('url',endsWith(url, "/dlm"),url,urlStt)
return urlStt
}
var reqPage = '/mathsisfun/';
var refPage = 'http://www.mathsisfun.com/main4.js';
//console.log('reqPage',reqPage,refPage )
logVisit(reqPage,refPage);
//setTimeout(go404Sorry, 500);
function logVisit(reqPage,refPage) {
var reqPageHex = toHex(reqPage);
var refPageHex = toHex(refPage);
add404(reqPageHex, refPageHex, "404", window.location.hostname);
}
function add404(pg, pgFrom, viewtype, hostname) {
//console.log("add404", viewtype, hostname);
var req;
req = new XMLHttpRequest();
var params = "type=" + viewtype;
params += "&site=mif";
params += "&pg=" + encodeURIComponent(pg);
params += "&pgfrom=" + encodeURIComponent(pgFrom);
req.open("POST", "https://mi2f.com/update.php", true); // NB: false=synchronous
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.send(params);
}
function toHex(s) {
var hex = '';
for (var i = 0; i < s.length; i++) {
hex += '' + s.charCodeAt(i).toString(16);
}
return hex;
}
function go404Sorry() {
//var pg = reqPage;
//var reloc = "https://" + window.location.hostname + "/handle-404-sorry.html?uri=" + encodeURIComponent(pg);
//console.log('go404Sorry',reloc);
//window.location.href = reloc;
}
</script>
<!-- #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; 2020 MathsIsFun.com
</div>
<script>document.write(getBodyEnd());</script>
</body>
<!-- #EndTemplate -->
</html>