Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" ?>
<html>
<head>
<b:skin></b:skin>
</head>
<body>
<b:section id="main"></b:section>
</body>
</html>
@jondwx
jondwx / numberToOrdinal.js
Created November 4, 2017 00:48
Number to Ordinal Format
function numberToOrdinal(i) {
var j = i % 10,
k = i % 100;
if (j == 1 && k != 11) {
return i + "st";
}
if (j == 2 && k != 12) {
return i + "nd";
}
if (j == 3 && k != 13) {