Permalink
Browse files

Import example page into github pages

  • Loading branch information...
0 parents commit b835a714145e0d0438382e0de35f7aafcdfdb23f @anantn anantn committed Aug 30, 2011
1 README
@@ -0,0 +1 @@
+IconGrid.js makes it easy to display a scrollable grid of icons!
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,174 @@
+html, body {
+ margin: 0;
+}
+html {
+ background: url(bg.png);
+}
+body {
+ color: #333;
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 16px;
+}
+ul {
+ padding: 0 0 0 20px;
+}
+#content {
+ width: 75%;
+ max-width: 800px;
+ line-height: 1.4em;
+ margin: 0 50px 50px 100px;
+ text-shadow: 0px 1px 0px #fff;
+}
+#footer {
+ background: #202020;
+ overflow: hidden;
+ color: #888;
+ font-size: 12px;
+ padding: 20px 0 100px 50px;
+ position: relative;
+}
+#footer:before {
+ content: '';
+ display: block;
+ box-shadow: 0 0 10px #000;
+ height: 10px;
+ position: absolute;
+ left: 0;
+ top: -10px;
+ width: 100%;
+}
+#footer a.mozilla {
+ background: url(mozilla.png) no-repeat;
+ width: 161px;
+ height: 34px;
+ text-indent: -999em;
+ position: absolute;
+ bottom: 30px;
+ left: 100px;
+}
+#footer a.github {
+ background: url(github.gif) no-repeat;
+ width: 68px;
+ height: 30px;
+ text-indent: -999em;
+ position: absolute;
+ bottom: 30px;
+ right: 30px;
+}
+a {
+ color: #333;
+}
+a:hover {
+ color: #000;
+}
+pre {
+ text-shadow: none;
+ font-size: 14px;
+ line-height: 18px;
+ margin: 0 0 30px 0;
+}
+label {
+ display: inline-block;
+ line-height: 23px;
+ font-size: 14px;
+ width: 80px;
+}
+span.fd-slider {
+ vertical-align: top;
+ display: inline-block;
+ width: 150px;
+}
+#logo {
+ position: relative;
+ height: 200px;
+ margin-left: 100px;
+}
+h1, h2, h3, #download a {
+ font-family: 'Amaranth', sans-serif;
+}
+h1 {
+ font-size: 150px;
+ position: absolute;
+ text-shadow: 0px 1px 0px #fff;
+ margin: 0;
+ padding: 0;
+}
+h2 {
+ font-size: 28px;
+ margin: 45px 0 28px 0;
+}
+h3 {
+ margin: 35px 0 10px 0;
+}
+#mask {
+ position: absolute;
+ top: 0;
+ left: 0;
+ background: url(bg.png) -100px 0;
+ width: 240px;
+ height: 85px;
+}
+#dot {
+ position: absolute;
+ left: 198px;
+ top: 42px;
+ width: 46px;
+ height: 46px;
+}
+#ribbon {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 149px;
+ height: 149px;
+ background:url(ribbon.png);
+ _background: none;
+ _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=ribbon.png);
+}
+#preview {
+ background: #333;
+ color: #fff;
+ float: left;
+ width: 200px;
+ height: 200px;
+ margin: 0 20px 20px 0;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ border-radius: 10px;
+}
+#download {
+}
+#download a {
+ display: inline-block;
+ background: #56ba4a;
+ border: 3px solid #59a24f;
+ color: #fff;
+ border-radius: 5px;
+ font-family: 'Amaranth', sans-serif;
+ font-size: 24px;
+ padding: 10px 30px;
+ text-decoration: none;
+ text-shadow: 1px 1px 1px #59a24f;
+ box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
+ margin: 10px 20px 0 0;
+ -webkit-transition: all 0.25s ease;
+}
+#download a:hover {
+ background: #2f8325;
+ box-shadow: none;
+}
+#contact img {
+ float: left;
+ border: 3px solid #eee;
+ box-shadow: 0px 2px 3px rgba(0,0,0,0.2);
+ margin: 0 16px 50px 0;
+}
+#contact a {
+ text-decoration: none;
+}
+.container {
+ width: 400px;
+ height: 310px;
+ border: solid 2px;
+ border-radius: 10px;
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
156 base32.js
@@ -0,0 +1,156 @@
+/**
+ * "author": "Isaac Wolkerstorfer <agnoster@gmail.com> (http://agnoster.net/)",
+ * "homepage": "https://github.com/agnoster/base32-js",
+ */
+Base32 = (function() {
+ var alphabet = '0123456789abcdefghjkmnpqrtuvwxyz'
+ var alias = { o:0, i:1, l:1, s:5 }
+
+ var lookup = function() {
+ var table = {}
+ for (var i = 0; i < alphabet.length; i++) {
+ table[alphabet[i]] = i
+ }
+ for (var key in alias) {
+ if (!alias.hasOwnProperty(key)) continue
+ table[key] = table['' + alias[key]]
+ }
+ lookup = function() { return table }
+ return table
+ }
+
+ Number.prototype.toBinary = function(places) {
+ if (!places) places = 0
+ var val = this + 0
+ var str = ''
+ while (val || places > 0) {
+ str = ((val & 1) ? '1' : '0') + str
+ val >>= 1
+ places--
+ }
+ return str
+ }
+
+ function Encoder() {
+ var skip = 0 // how many bits we will skip from the first byte
+ var bits = 0 // 5 high bits, carry from one byte to the next
+
+ this.output = ''
+
+ this.readByte = function(byte) {
+ // coerce the byte to an int
+ if (typeof byte == 'string') byte = byte.charCodeAt(0)
+ //console.log(byte.toBinary(8) + ' > s ' + skip)
+
+ if (skip < 0) { // we have a carry from the previous byte
+ //console.log('carry ' + bits.toBinary(8))
+ bits |= (byte >> (-skip))
+ } else { // no carry
+ bits = (byte << skip) & 248
+ }
+
+ if (skip > 3) {
+ // not enough data to produce a character, get us another one
+ skip -= 8
+ return 1
+ }
+
+ if (skip < 4) {
+ // produce a character
+ //console.log(' > ' + (bits >> 3).toBinary(5))
+ this.output += alphabet[bits >> 3]
+ skip += 5
+ }
+
+ return 0
+ }
+
+ this.finish = function(check) {
+ var output = this.output + (skip < 0 ? alphabet[bits >> 3] : '') + (check ? '$' : '')
+ this.output = ''
+ return output
+ }
+ }
+
+ Encoder.prototype.update = function(input) {
+ for (var i = 0; i < input.length; ) {
+ i += this.readByte(input[i])
+ }
+ var output = this.output
+ this.output = ''
+ return output
+ }
+
+ function Decoder() {
+ var skip = 0 // how many bits we have from the previous character
+ var byte = 0 // current byte we're producing
+
+ this.output = ''
+
+ // consume a character from the stream
+ this.readChar = function(char) {
+ //console.log('Read: ' + char + ' \tPos: ' + skip + ' \tCarry: ' + byte)
+ if (typeof char != 'string'){
+ if (typeof char == 'number') {
+ char = String.fromCharCode(char)
+ }
+ }
+ char = char.toLowerCase()
+ var val = lookup()[char]
+ if (typeof val == 'undefined') {
+ // character does not exist in our lookup table
+ return
+ throw Error('Could not find character "' + char + '" in lookup table.')
+ }
+ //console.log(' Val: ' + val + ' 0b' + val.toBinary())
+ val <<= 3 // move to the high bits
+
+ byte |= val >>> skip
+ //console.log(' Update: ' + byte.toBinary())
+ skip += 5
+
+ if (skip >= 8) {
+ //console.log(' Produce: ' + byte.toBinary())
+
+ this.output += String.fromCharCode(byte)
+ skip -= 8
+ if (skip > 0) byte = (val << (5 - skip)) & 255
+ else byte = 0
+ //console.log(' Left: ' + byte.toBinary())
+ }
+
+ }
+
+ this.finish = function(check) {
+ var output = this.output + (skip < 0 ? alphabet[bits >> 3] : '') + (check ? '$' : '')
+ this.output = ''
+ return output
+ }
+ }
+
+ Decoder.prototype.update = function(input) {
+ for (var i = 0; i < input.length; i++) {
+ this.readChar(input[i])
+ }
+ var output = this.output
+ this.output = ''
+ return output
+ }
+
+ function decode(input) {
+ decoder = new Decoder()
+ var output = decoder.update(input) + decoder.finish()
+ return output
+ }
+
+ function encode(input) {
+ encoder = new Encoder()
+ var output = encoder.update(input) + encoder.finish()
+ return output
+ }
+
+ return {
+ decode: decode,
+ encode: encode
+ };
+})();
Oops, something went wrong.

0 comments on commit b835a71

Please sign in to comment.