CINXE.COM

Sorry We Can't Find It (404)

 <!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="preload" href="/images/style/font-champ-bold.ttf" as="font" type="font/ttf" crossorigin> <link rel="preload" href="/style4.css" as="style"> <link rel="preload" href="/main4.js" as="script"> <link rel="stylesheet" href="/style4.css"> <script src="/main4.js" defer></script> </head> <body id="bodybg"> <div id="stt"></div> <div id="adTop"></div> <header> <div id="hdr"></div> <div id="tran"></div> <div id="adHide"></div> <div id="cookOK"></div> </header> <div class="mid"> <nav> <div id="menuWide" class="menu"></div> <div id="logo"><a href="https://www.mathsisfun.com/"><img src="/images/style/logo.svg" alt="Math is Fun"></a></div> <div id="search" role="search"></div> <div id="linkto"></div> <div id="menuSlim" class="menu"></div> <div id="menuTiny" class="menu"></div> </nav> <div id="extra"></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 = '//fair-dice.html' 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 = '//fair-dice.html'; var refPage = ''; //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"></div> <footer id="footer" class="centerfull noprint"></footer> <div id="copyrt">Copyright &copy; 2024 Rod Pierce</div> </div> </body> <!-- #EndTemplate --> </html>

Pages: 1 2 3 4 5 6 7 8 9 10