This repository has been archived on 2025-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
portfolio/_site/luhn-algorithm/index.html

179 lines
5.2 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="HandheldFriendly" content="True">
<link rel="icon" sizes="192x192" href="https://mgrove.uk/logo.png">
<!-- add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="https://mgrove.uk/logo.png">
<!-- add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Luhn Algorithm">
<link rel="apple-touch-icon-precomposed" href="https://mgrove.uk/logo.png">
<!-- tile icon & colour for Windows 8 -->
<meta name="msapplication-TileImage" content="https://mgrove.uk/logo.png">
<meta name="msapplication-TileColor" content="#26174e">
<!-- page info -->
<title>Luhn Algorithm | Matthew Grove</title>
<meta name="description" content="A number validator with the Luhn algorithm. | by Matthew Grove">
<meta name="keywords" content="" />
<!-- stylesheets -->
<link rel="stylesheet" href="/assets/css/main.css" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124505000-1" type="text/javascript"></script>
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-124505000-1');
</script>
</head>
<script src="/assets/js/jquery.min.js"></script>
<body class="is-preload">
<!-- Header -->
<header id="header">
<img src="https://mgrove.uk/logo-clear-square.png" class="logo" />
<a class="logo" href="/">Matthew Grove</a>
<nav>
<a href="#menu">Menu</a>
</nav>
</header>
<!-- Nav -->
<nav id="menu">
<ul class="links">
<li><a href="/" >Home</a></li>
<li><a href="https://blog.mgrove.uk">Blog</a></li>
<li><a href="/young-reporter/" >BBC Young Reporter Article Generator</a></li>
<li><a href="/comsci/" >Computer Science</a></li>
<li><a href="/luhn-algorithm/" class="current-page-link"
>Luhn Algorithm</a></li>
<li><a href="/site-theme/" >Site Theme</a></li>
</ul>
</nav>
<div id="cookies">
<p>Just to let you know, I use cookies on my site.</p>
<p><a href="javascript:void(0);" id="close-cookies">OK</a></p>
</div>
<!-- Heading -->
<div id="heading">
<h1>Luhn Algorithm</h1>
</div>
<!-- Main -->
<section id="main" class="wrapper">
<div class="inner">
<div class="content">
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="script.js" type="text/javascript"></script>
<h1 id="validate-your-number">Validate Your Number</h1>
<form onreset="$('#validation_message').html(null);">
<div class="row gtr-uniform">
<div class="col-6 col-12-xsmall">
<input type="number" id="number-input-field" placeholder="Number" />
</div>
<div class="col-12">
<ul class="actions">
<li><a href="javascript:checkNumber();" class="button primary icon fa-check-circle">Check</a></li>
<li><input type="reset" value="Reset" /></li>
</ul>
</div>
</div>
</form>
<p id="validation_message"></p>
</div>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<div class="content">
<section>
<h3>Matthew Grove</h3>
<p>Software engineer & amateur photographer from Surrey, UK.</p>
<br>
<a href="https://github.com/mgrove36/demo-code/tree/master/luhn-algorithm/">View this page on
GitHub.</a>
</section>
<section>
<h4>Other Links</h4>
<ul class="plain">
<li><a href="https://instagram.com/mgrove36.photos" target="_blank"><i
class="icon fa-camera">&nbsp;</i>Photography</a></li>
<li><a href="https://instagram.com/morganandmeganbichons" target="_blank"><i
class="icon fa-paw">&nbsp;</i>Dogs</a></li>
<li><a href="mailto:me@mgrove.uk"><i class="icon fa-envelope">&nbsp;</i>Email me</a></li>
</ul>
</section>
<section>
<h4>Social Media</h4>
<ul class="plain">
<li><a href="https://github.com/mgrove36" target="_blank"><i class="icon fa-github">&nbsp;</i>Github</a></li>
<li><a href="https://twitter.com/mgrove36" target="_blank"><i class="icon fa-twitter">&nbsp;</i>Twitter</a></li>
<li><a href="https://instagram.com/mgrove36" target="_blank"><i class="icon fa-instagram">&nbsp;</i>Instagram</a></li>
<li><a href="https://facebook.com/mgrove36" target="_blank"><i class="icon fa-facebook">&nbsp;</i>Facebook</a></li>
</ul>
</section>
</div>
<div class="copyright">
&copy; Matthew Grove 2020.
</div>
</div>
</footer>
<!-- Scripts -->
<script src="/assets/js/cookies.js"></script>
<script src="/assets/js/util.js"></script>
<script src="/assets/js/main.js"></script>
</body>
</html>