xonecas.io
1361
Xc

xonecas.com / commit 0614ef9

Clean white/redish theme, uses tumblr feed for content, keyboard shortcuts.

sean2011-07-31 0614ef9ea7252efeed119cc725c4c354add65c6f parent 8fcc21f

11 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

css/OXYGENE1-webfont.eot+0−0
Binary file, not shown.
css/OXYGENE1-webfont.svg+0−136
@@ -1,136 +0,0 @@
1-<?xml version="1.0" standalone="no"?>
2-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3-<svg xmlns="http://www.w3.org/2000/svg">
4-<metadata>
5-This is a custom SVG webfont generated by Font Squirrel.
6-Copyright : Jakob Fischer PizzaDude distribute freely
7-</metadata>
8-<defs>
9-<font id="webfontqiEEoX6p" horiz-adv-x="845" >
10-<font-face units-per-em="2048" ascent="1647" descent="-401" />
11-<missing-glyph horiz-adv-x="1298" />
12-<glyph unicode=" " horiz-adv-x="1298" />
13-<glyph unicode="&#x09;" horiz-adv-x="1298" />
14-<glyph unicode="&#xa0;" horiz-adv-x="1298" />
15-<glyph unicode="!" horiz-adv-x="811" d="M2 51h453v-225h-453v225zM2 510v907h680v-680h-227v-454h-226v227h-227z" />
16-<glyph unicode="&#x22;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
17-<glyph unicode="#" horiz-adv-x="1718" d="M2 283v225h227v229h-227v226h227v227h228v227h225v-454h229v454h453v-454h227v-226h-227v-229h227v-225h-227v-230h-227v-227h-226v457h-229v-230h-227v-227h-226v457h-227zM684 510h225v225h-225v-225z" />
18-<glyph unicode="$" horiz-adv-x="1249" d="M2 510v453h227v227h228v227h225v-227h227v-225h-454v-230h682v-452h-228v-230h-227v-227h-225v227h-228v226h455v231h-682z" />
19-<glyph unicode="%" horiz-adv-x="1277" d="M2 53v455h227v227h228v230h-455v452h453v-454h229v227h227v227h226v-452h-228v-228h-227v-229h455v-455h-453v457h-229v-227h-228v-230h-225z" />
20-<glyph unicode="&#x26;" horiz-adv-x="1269" d="M2 283v680h227v454h680v-454h228v-226h-228v-229h228v-225h-228v-230h-680v230h-227zM457 510h225v225h-225v-225zM457 965h225v225h-225v-225z" />
21-<glyph unicode="'" horiz-adv-x="391" d="M2 965v452h225v-452h-225z" />
22-<glyph unicode="(" horiz-adv-x="1030" d="M2 283v452h227v228h228v227h227v227h225v-452h-227v-228h-227v-458h227v-228h227v-452h-225v227h-227v227h-228v230h-227z" />
23-<glyph unicode=")" horiz-adv-x="1019" d="M2 51h227v228h228v458h-228v228h-227v452h225v-227h228v-227h227v-228h227v-452h-227v-230h-227v-227h-228v-227h-225v452z" />
24-<glyph unicode="*" horiz-adv-x="833" d="M2 283v225h227v229h-227v226h225v-228h230v228h225v-226h-227v-229h227v-225h-225v227h-230v-227h-225z" />
25-<glyph unicode="+" horiz-adv-x="817" d="M2 510v225h227v228h226v-228h227v-225h-227v-227h-226v227h-227z" />
26-<glyph unicode="," horiz-adv-x="618" d="M2 -174v453h453v-680h-226v227h-227z" />
27-<glyph unicode="-" d="M2 510v225h680v-225h-680z" />
28-<glyph unicode="." horiz-adv-x="618" d="M2 -174v453h453v-453h-453z" />
29-<glyph unicode="/" horiz-adv-x="1226" d="M2 53v455h227v227h228v228h227v227h227v227h226v-452h-228v-228h-227v-227h-227v-227h-228v-230h-225z" />
30-<glyph unicode="0" horiz-adv-x="1284" d="M2 283v907h227v227h680v-227h228v-907h-228v-230h-680v230h-227zM457 510h225v680h-225v-680z" />
31-<glyph unicode="1" horiz-adv-x="843" d="M2 965v225h227v227h453v-1364h-225v230h-228v682h-227z" />
32-<glyph unicode="2" horiz-adv-x="1257" d="M2 283v225h227v227h455v457h-229v-227h-453v452h907v-227h228v-453h-228v-227h-454v-231h454v-226h-680v230h-227z" />
33-<glyph unicode="3" horiz-adv-x="1277" d="M2 283v225h453v-229h229v458h-227v226h227v229h-455v225h908v-452h-228v-230h228v-452h-228v-230h-227v-227h-225v227h-228v230h-227z" />
34-<glyph unicode="4" horiz-adv-x="1490" d="M2 510v680h227v227h226v-682h229v455h227v227h226v-682h227v-225h-227v-684h-226v227h-227v457h-682z" />
35-<glyph unicode="5" horiz-adv-x="1261" d="M2 510v907h907v-225h-454v-229h454v-228h228v-452h-228v-230h-680v226h455v231h-682z" />
36-<glyph unicode="6" horiz-adv-x="1257" d="M2 53v1137h227v227h453v-225h-227v-229h454v-228h228v-682h-228v-227h-680v227h-227zM457 53h225v455h-225v-455z" />
37-<glyph unicode="7" horiz-adv-x="1255" d="M2 53v455h227v227h228v457h-455v225h1135v-680h-228v-227h-227v-227h-227v-230h-453z" />
38-<glyph unicode="8" horiz-adv-x="1511" d="M2 283v680h227v454h908v-227h227v-907h-227v-230h-680v230h-455zM457 510h452v225h-452v-225zM684 965h225v225h-225v-225z" />
39-<glyph unicode="9" horiz-adv-x="1288" d="M2 510v680h227v227h680v-227h228v-1137h-228v-227h-452v225h227v232h-455v227h-227zM457 737h225v453h-225v-453z" />
40-<glyph unicode=":" horiz-adv-x="602" d="M2 53v455h453v-455h-453zM2 737v453h453v-453h-453z" />
41-<glyph unicode=";" horiz-adv-x="600" d="M2 53v455h453v-682h-226v227h-227zM2 737v453h453v-453h-453z" />
42-<glyph unicode="&#x3c;" horiz-adv-x="1038" d="M2 510v225h227v228h228v227h452v-225h-227v-228h-227v-229h227v-229h227v-226h-452v230h-228v227h-227z" />
43-<glyph unicode="=" horiz-adv-x="804" d="M2 283v225h680v-225h-680zM2 737v226h680v-226h-680z" />
44-<glyph unicode="&#x3e;" horiz-adv-x="1019" d="M2 53v226h227v229h228v229h-228v228h-227v225h453v-227h227v-228h227v-225h-227v-227h-227v-230h-453z" />
45-<glyph unicode="?" horiz-adv-x="1239" d="M2 965v225h227v227h908v-680h-228v-227h-227v-227h-453v225h228v227h227v457h-229v-227h-453zM229 51h453v-225h-453v225z" />
46-<glyph unicode="@" horiz-adv-x="1937" d="M2 53v1364h1817v-1134h-1135v680h680v-455h229v684h-1138v-1141h909v-225h-1135v227h-227zM911 510h226v225h-226v-225z" />
47-<glyph unicode="A" horiz-adv-x="1286" d="M2 53v1137h227v227h680v-227h228v-1137h-226v230h-227v227h-229v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
48-<glyph unicode="B" horiz-adv-x="1277" d="M2 53v1137h227v227h680v-227h228v-225h-228v-230h228v-452h-228v-230h-227v-227h-453v227h-227zM457 283h225v225h-225v-225zM457 965h225v225h-225v-225z" />
49-<glyph unicode="C" horiz-adv-x="1234" d="M2 283v907h227v227h680v-227h228v-225h-453v227h-229v-684h454v-455h-680v230h-227z" />
50-<glyph unicode="D" horiz-adv-x="1507" d="M2 1192v225h1135v-227h227v-907h-227v-230h-228v-227h-452v227h-228v1139h-227zM684 283h225v907h-225v-907z" />
51-<glyph unicode="E" horiz-adv-x="1241" d="M2 283v907h227v227h908v-225h-682v-229h454v-226h-454v-458h229v229h225v-455h-680v230h-227z" />
52-<glyph unicode="F" horiz-adv-x="1222" d="M2 283v1134h1135v-225h-682v-229h454v-453h-454v-457h-226v230h-227z" />
53-<glyph unicode="G" horiz-adv-x="1265" d="M2 283v907h227v227h453v-225h-227v-684h229v455h453v-1137h-226v457h-229v-230h-453v230h-227z" />
54-<glyph unicode="H" horiz-adv-x="1298" d="M2 283v1134h225v-227h228v-455h229v682h225v-227h228v-1137h-226v230h-227v227h-229v-457h-226v230h-227z" />
55-<glyph unicode="I" horiz-adv-x="616" d="M2 53v1137h227v227h226v-1134h-228v-230h-225z" />
56-<glyph unicode="J" horiz-adv-x="1071" d="M2 53v682h225v-227h230v909h452v-1134h-227v-230h-680z" />
57-<glyph unicode="K" horiz-adv-x="1286" d="M2 53v1137h227v227h226v-454h229v227h227v227h226v-452h-228v-230h228v-682h-226v230h-227v454h-229v-911h-226v227h-227z" />
58-<glyph unicode="L" horiz-adv-x="806" d="M2 283v907h227v227h226v-1138h227v-226h-453v230h-227z" />
59-<glyph unicode="M" horiz-adv-x="1970" d="M2 53v1137h227v227h226v-227h227v-227h229v227h228v227h452v-227h228v-1137h-228v-227h-225v1139h-229v-682h-226v227h-227v227h-229v-454h-228v-230h-225z" />
60-<glyph unicode="N" horiz-adv-x="1490" d="M2 283v1134h453v-227h227v-227h229v454h453v-907h-227v-227h-226v227h-227v227h-229v-684h-226v230h-227z" />
61-<glyph unicode="O" horiz-adv-x="1511" d="M2 510v680h227v227h908v-227h227v-907h-227v-230h-680v230h-228v227h-227zM457 510h452v453h-227v227h-225v-680z" />
62-<glyph unicode="P" horiz-adv-x="1241" d="M2 53v1364h907v-227h228v-453h-228v-227h-454v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
63-<glyph unicode="Q" horiz-adv-x="1499" d="M2 283v907h227v227h908v-227h227v-680h-227v-227h-228v-232h228v-225h-453v227h-227v230h-455zM457 737h227v-227h225v453h-227v227h-225v-453z" />
64-<glyph unicode="R" horiz-adv-x="1277" d="M2 53v1137h227v227h680v-227h228v-453h-228v-229h228v-455h-226v230h-227v227h-229v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
65-<glyph unicode="S" horiz-adv-x="1265" d="M2 510v680h227v227h680v-225h-454v-229h682v-680h-228v-230h-452v226h227v231h-682z" />
66-<glyph unicode="T" horiz-adv-x="1226" d="M2 1192v225h1135v-225h-455v-1139h-225v230h-228v909h-227z" />
67-<glyph unicode="U" horiz-adv-x="1298" d="M2 510v907h453v-909h229v909h225v-227h228v-1137h-226v230h-682v227h-227z" />
68-<glyph unicode="V" horiz-adv-x="1271" d="M2 510v680h225v-227h228v-455h229v909h225v-227h228v-680h-228v-227h-227v-230h-225v230h-228v227h-227z" />
69-<glyph unicode="W" horiz-adv-x="1968" d="M2 283v1134h225v-227h228v-455h229v228h227v227h226v-682h229v909h225v-227h228v-907h-228v-230h-452v230h-228v227h-229v-227h-227v-230h-226v230h-227z" />
70-<glyph unicode="X" horiz-adv-x="1490" d="M2 965v452h225v-227h228v-227h229v227h227v227h226v-227h227v-225h-227v-228h-228v-229h228v-229h227v-226h-227v-227h-226v457h-229v-230h-453v455h228v229h-228v228h-227z" />
71-<glyph unicode="Y" horiz-adv-x="1277" d="M2 737v453h227v227h226v-454h227v-228h229v455h226v-1137h-228v-227h-452v227h-228v226h455v231h-455v227h-227z" />
72-<glyph unicode="Z" horiz-adv-x="1243" d="M2 283v225h227v227h228v457h-230v-227h-225v452h907v-227h228v-225h-228v-228h-227v-227h-227v-231h454v-226h-680v230h-227z" />
73-<glyph unicode="[" horiz-adv-x="808" d="M2 -401v1818h680v-225h-227v-1368h227v-225h-680z" />
74-<glyph unicode="\" horiz-adv-x="1433" d="M2 965v452h225v-227h228v-227h227v-228h227v-227h228v-229h227v-453h-225v227h-228v230h-227v227h-227v227h-228v228h-227z" />
75-<glyph unicode="]" d="M2 -176h227v1368h-227v225h680v-1818h-680v225z" />
76-<glyph unicode="a" horiz-adv-x="1695" d="M2 53v226h227v229h228v229h-228v226h228v454h680v-454h227v-226h-227v-229h227v-229h227v-226h-452v230h-684v-230h-453zM684 965h225v225h-225v-225z" />
77-<glyph unicode="b" horiz-adv-x="1298" d="M2 53v1364h1135v-1364h-226v457h-229v-457h-225v457h-230v-457h-225zM229 965h226v225h-226v-225zM684 965h225v225h-225v-225z" />
78-<glyph unicode="c" horiz-adv-x="1286" d="M2 510v907h1135v-907h-228v-457h-225v457h-229v-457h-226v457h-227zM229 965h226v225h-226v-225zM684 965h225v225h-225v-225z" />
79-<glyph unicode="d" horiz-adv-x="2174" d="M2 283v680h225v-228h230v455h1134v-455h230v228h225v-680h-225v227h-230v-457h-1134v457h-230v-227h-225zM684 283h680v680h-680v-680zM911 510v225h226v-225h-226z" />
80-<glyph unicode="e" horiz-adv-x="1284" d="M2 53v226h227v231h-227v225h227v230h-227v225h225v-227h230v227h225v-227h229v227h226v-225h-228v-230h228v-225h-228v-231h228v-226h-226v230h-229v-230h-225v230h-230v-230h-225z" />
81-<glyph unicode="f" horiz-adv-x="1282" d="M2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
82-<glyph unicode="g" horiz-adv-x="1515" d="M2 51h227v232h-227v1134h1362v-1134h-227v-457h-453v225h227v232h-456v-457h-453v225zM229 510h908v225h-908v-225zM229 965h226v225h-226v-225zM911 965h226v225h-226v-225z" />
83-<glyph unicode="h" horiz-adv-x="1712" d="M2 737v453h227v227h228v228h225v-228h229v228h226v-228h227v-227h227v-453h-227v-227h-227v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-228v227h-227zM229 737h1135v453h-225v-227h-230v227h-225v-227h-229v227h-226v-453z" />
84-<glyph unicode="i" horiz-adv-x="1712" d="M2 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM229 737h226v226h-226v-226zM684 1192h225v225h-225v-225zM1139 737h225v226h-225v-226z" />
85-<glyph unicode="j" horiz-adv-x="1710" d="M2 283v452h455v230h-228v680h1135v-680h-227v-230h454v-452h-225v227h-229v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-230v-227h-225zM684 1192h225v225h-225v-225z" />
86-<glyph unicode="k" horiz-adv-x="2387" d="M229 53v226h228v229h454v227h680v-227h455v-229h227v-226h-227v-227h-1589v227h-228z" />
87-<glyph unicode="l" horiz-adv-x="2070" d="M2 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM229 283v225h1590v-225h-1590zM457 51h1134v-225h-1134v225z" />
88-<glyph unicode="m" horiz-adv-x="1691" d="M2 51h227v228h228v229h227v227h225v-227h228v-229h227v-228h227v-225h-1589v225z" />
89-<glyph unicode="n" horiz-adv-x="1632" d="M2 737v226h227v227h228v227h227v228h225v-228h228v-227h227v-227h227v-226h-1589zM229 283v225h1135v-225h-1135zM457 51h680v-225h-680v225z" />
90-<glyph unicode="o" horiz-adv-x="1679" d="M2 -174v453h227v229h228v455h227v682h225v-682h228v-455h227v-229h227v-453h-225v227h-1139v-227h-225zM684 283h225v452h-225v-452z" />
91-<glyph unicode="p" horiz-adv-x="1699" d="M2 -174v682h227v227h228v455h227v455h225v-455h228v-455h227v-227h227v-682h-225v227h-227v230h-684v-230h-228v-227h-225zM684 510h225v453h-225v-453z" />
92-<glyph unicode="q" horiz-adv-x="2131" d="M2 53v455h455v227h227v682h227v228h226v-228h227v-682h227v-227h455v-455h-453v230h-229v-457h-680v457h-229v-230h-453zM911 965h226v225h-226v-225z" />
93-<glyph unicode="r" horiz-adv-x="1234" d="M2 283v225h1135v-225h-1135zM2 737v908h1135v-908h-226v228h-229v-228h-225v228h-230v-228h-225zM229 51h680v-225h-680v225zM229 1192h226v225h-226v-225zM684 1192h225v225h-225v-225z" />
94-<glyph unicode="s" horiz-adv-x="1812" d="M2 1419v226h1817v-226h-1817zM229 965v225h1362v-225h-1362zM457 510v225h907v-225h-907zM684 53v226h453v-226h-453z" />
95-<glyph unicode="t" horiz-adv-x="1812" d="M2 53v226h1817v-226h-1817zM229 510v225h1362v-225h-1362zM457 965v225h907v-225h-907zM684 1419v226h453v-226h-453z" />
96-<glyph unicode="u" horiz-adv-x="1720" d="M2 53v455h227v227h226v-452h-228v-230h-225zM2 1192v453h225v-228h228v-452h-226v227h-227zM684 53v1592h225v-1592h-225zM1139 283v452h225v-227h227v-455h-225v230h-227zM1139 965v452h227v228h225v-453h-227v-227h-225z" />
97-<glyph unicode="v" horiz-adv-x="1261" d="M2 283v225h225v-225h-225zM2 737v680h455v228h225v-453h-455v-229h910v-680h-455v-230h-225v455h454v229h-909zM911 1192v225h226v-225h-226z" />
98-<glyph unicode="w" horiz-adv-x="1679" d="M2 510v225h680v-682h-225v230h-228v227h-227zM2 965v225h227v227h228v228h225v-680h-680zM911 53v682h680v-225h-227v-227h-227v-230h-226zM911 965v680h226v-228h227v-227h227v-225h-680z" />
99-<glyph unicode="x" horiz-adv-x="2150" d="M2 184h289v-293h293v-290h-582v583zM2 479v289h289v-289h-289zM2 1065v582h582v-289h-293v-293h-289zM586 479v289h293v293h290v-293h293v-289h-293v-293h-290v293h-293zM879 -109h290v-290h-290v290zM879 1358v289h290v-289h-290zM1464 -109h293v293h289v-583h-582v290z M1464 1358v289h582v-582h-289v293h-293zM1757 479v289h289v-289h-289z" />
100-<glyph unicode="y" horiz-adv-x="1701" d="M2 510v680h225v-227h228v-226h-228v-227h-225zM457 53v226h227v229h225v-229h228v-226h-680zM457 1419v226h680v-226h-228v-227h-225v227h-227zM684 737v226h225v-226h-225zM1139 737v226h227v227h225v-680h-225v227h-227z" />
101-<glyph unicode="z" horiz-adv-x="1724" d="M2 53v226h455v458h-230v-227h-225v680h225v-227h230v456h-455v226h680v-455h229v455h680v-226h-454v-456h229v227h225v-680h-225v227h-229v-458h454v-226h-680v457h-229v-457h-680zM457 737h680v226h-680v-226z" />
102-<glyph unicode="{" horiz-adv-x="1030" d="M2 510v225h227v455h228v227h452v-225h-227v-455h-227v-229h227v-457h227v-225h-452v227h-228v457h-227z" />
103-<glyph unicode="}" horiz-adv-x="1028" d="M2 51h227v457h228v229h-228v455h-227v225h453v-227h227v-455h227v-225h-227v-457h-227v-227h-453v225z" />
104-<glyph unicode="~" horiz-adv-x="1300" d="M2 965v452h680v-227h229v227h226v-452h-680v227h-230v-227h-225z" />
105-<glyph unicode="&#xa3;" horiz-adv-x="2048" />
106-<glyph unicode="&#xad;" d="M2 510v225h680v-225h-680z" />
107-<glyph unicode="&#x2000;" horiz-adv-x="823" />
108-<glyph unicode="&#x2001;" horiz-adv-x="1646" />
109-<glyph unicode="&#x2002;" horiz-adv-x="823" />
110-<glyph unicode="&#x2003;" horiz-adv-x="1646" />
111-<glyph unicode="&#x2004;" horiz-adv-x="548" />
112-<glyph unicode="&#x2005;" horiz-adv-x="411" />
113-<glyph unicode="&#x2006;" horiz-adv-x="274" />
114-<glyph unicode="&#x2007;" horiz-adv-x="274" />
115-<glyph unicode="&#x2008;" horiz-adv-x="204" />
116-<glyph unicode="&#x2009;" horiz-adv-x="327" />
117-<glyph unicode="&#x200a;" horiz-adv-x="90" />
118-<glyph unicode="&#x2010;" d="M2 510v225h680v-225h-680z" />
119-<glyph unicode="&#x2011;" d="M2 510v225h680v-225h-680z" />
120-<glyph unicode="&#x2012;" d="M2 510v225h680v-225h-680z" />
121-<glyph unicode="&#x2013;" horiz-adv-x="1024" d="M205 512v205h614v-205h-614z" />
122-<glyph unicode="&#x2014;" horiz-adv-x="2048" d="M205 512v205h1638v-205h-1638z" />
123-<glyph unicode="&#x2019;" horiz-adv-x="391" d="M2 965v452h225v-452h-225z" />
124-<glyph unicode="&#x201c;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
125-<glyph unicode="&#x201d;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
126-<glyph unicode="&#x2026;" horiz-adv-x="1855" d="M1239 -174v453h453v-453h-453zM620 -174v453h453v-453h-453zM2 -174v453h453v-453h-453z" />
127-<glyph unicode="&#x202f;" horiz-adv-x="327" />
128-<glyph unicode="&#x205f;" horiz-adv-x="411" />
129-<glyph unicode="&#x2122;" horiz-adv-x="3196" d="M1229 53v1137h227v227h226v-227h227v-227h229v227h228v227h452v-227h228v-1137h-228v-227h-225v1139h-229v-682h-226v227h-227v227h-229v-454h-228v-230h-225zM2 1192v225h1135v-225h-455v-1139h-225v230h-228v909h-227z" />
130-<glyph unicode="&#xe000;" horiz-adv-x="1645" d="M0 1645h1645v-1645h-1645v1645z" />
131-<glyph unicode="&#xfb01;" horiz-adv-x="2994" d="M1284 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM1511 737h226v226h-226v-226zM1966 1192h225v225h-225v-225zM2421 737h225v226h-225v-226zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455 v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
132-<glyph unicode="&#xfb02;" horiz-adv-x="3352" d="M1284 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM1511 283v225h1590v-225h-1590zM1739 51h1134v-225h-1134v225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457 h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
133-<glyph unicode="&#xfb03;" horiz-adv-x="4276" d="M2566 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM2793 737h226v226h-226v-226zM3248 1192h225v225h-225v-225zM3703 737h225v226h-225v-226zM1284 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229 h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM1511 510h226v225h-226v-225zM1966 510h225v225h-225v-225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-4 …
134-<glyph unicode="&#xfb04;" horiz-adv-x="4634" d="M2566 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM2793 283v225h1590v-225h-1590zM3021 51h1134v-225h-1134v225zM1284 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457 h-453v225zM1511 510h226v225h-226v-225zM1966 510h225v225h-225v-225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-2 …
135-</font>
136-</defs></svg>
css/OXYGENE1-webfont.ttf+0−0
Binary file, not shown.
css/OXYGENE1-webfont.woff+0−0
Binary file, not shown.
css/style.css+63−89
@@ -1,3 +1,8 @@
1+/* Google font api
2+ News cycle (sans-serif)
3+*/
4+@import url(http://fonts.googleapis.com/css?family=News+Cycle);
5+
16 /* http://meyerweb.com/eric/tools/css/reset/
27 v2.0 | 20110126
38 License: none (public domain)
@@ -47,22 +52,8 @@ table {
4752 border-spacing: 0;
4853 }
4954
50-/* Font kits, from FontSquirrel.com
51-*/
52-@font-face {
53- font-family: 'Oxygene';
54- src: url('OXYGENE1-webfont.eot');
55- src: url('OXYGENE1-webfont.eot?#iefix') format('embedded-opentype'),
56- url('OXYGENE1-webfont.woff') format('woff'),
57- url('OXYGENE1-webfont.ttf') format('truetype'),
58- url('OXYGENE1-webfont.svg#Oxygene1Regular') format('svg');
59- font-weight: normal;
60- font-style: normal;
61-}
62-
63-
6455 /* From the html5boilerplate
65- h5bp.com (modified)
56+ h5bp.com
6657 */
6758 html {
6859 font-size: 100%;
@@ -70,37 +61,38 @@ html {
7061 -webkit-tap-highlight-color: rgba(0,0,0,0);
7162 -webkit-text-size-adjust: 100%;
7263 -ms-text-size-adjust: 100%;
73- background: #343838;
7464 }
7565 body {
7666 margin: 0;
77- font-size: 14px;
78- line-height: 1.231;
79- border-right: 20px solid #00DFFC;
67+ font-size: 16px;
68+ line-height: 1.4;
8069 }
8170 body, button, input, select, textarea {
82- font-family: 'Helvetica', sans-serif;
83- color: #fff;
71+ font-family: "News Cycle", sans-serif;
72+ color: #222;
8473 }
8574
86-::-moz-selection { background: #00DFFC; color: #343838; text-shadow: none; }
87-::selection { background: #00DFFC; color: #343838; text-shadow: none; }
75+::-moz-selection { background: #000; color: #fff; text-shadow: none; }
76+::selection { background: #000; color: #fff; text-shadow: none; }
8877
8978 a {
90- color: #00B4CC;
79+ color: #E56354;
9180 text-decoration: none;
81+ border-bottom: 1px solid #E56354;
82+}
83+a:visited {
84+ color: #8A3C33;
85+ border-bottom: #8A3C33;
9286 }
93-a:visited { color: #008C9E; }
9487 a:focus { outline: thin dotted; }
9588 a:hover, a:active {
9689 outline: 0;
97- color: #00DFFC;
90+ background-color: #eee;
9891 }
9992 pre, code, kbd, samp {
100- font-family: monospace, monospace;
93+ font-family: monospace, monospace;
10194 _font-family: 'courier new', monospace;
102- font-size: 1em;
103- padding: 4px 6px;
95+ font-size: .9em;
10496 }
10597 pre {
10698 white-space: pre;
@@ -111,85 +103,68 @@ pre {
111103 /* Main styles
112104 by @xonecas
113105 */
106+body {
107+ width: 960px;
108+ margin: 0 auto;
109+}
114110
115-h1, h2 {
116- font-family: 'Georgia', serif;
117- font-weight: bold;
118- text-shadow: 1px 1px 3px #000;
119- font-family: 'Oxygene', monospace;
120- text-transform: uppercase;
111+.loader {
112+ display: block;
113+ width: 64px;
114+ height: 64px;
115+ margin: 0 auto;
121116 }
122117
123-h1 {
124- font-size: 64px;
125- padding: 10px 0;
118+#guide {
119+ position: absolute;
120+ top: 10px;
121+ right: 10px;
126122 }
127123
128-h2 {
124+#brand {
125+ background: url("/imgs/me.png") no-repeat scroll left 50% transparent;
126+ padding: 0 0 10px 58px;
129127 font-size: 48px;
130128 }
131129
132-
133-em { font-style: italic; }
134-strong { font-weight: bold; }
135-
136-p { margin: 1em 0; }
137-
138-pre, code {
139- background: #005F6B;
140- border-left: 10px solid #008C9E;
141-}
142-pre code {
143- border: none;
130+#latestTweet {
131+ margin: 2em 0;
144132 }
145133
146-header {
147- margin: 0 0 0 130px;
134+h1, h2, h3, h4, h5, h6 {
135+ margin: 1em 0;
136+ font-weight: bold;
148137 }
149138
150-header, section {
151- border-right: 10px solid #00B4CC;
152-}
139+h2 { font-size: 36px; }
140+h3 { font-size: 24px; }
153141
154-#latestTweet {
155- padding: 20px;
156-}
142+em { font-style: italic; }
143+strong { font-weight: bold; }
157144
158145 .post {
159- padding: 20px 0 20px 20px;
146+ margin: 0 0 20em;
147+ padding: 0 0 2em 10px;
148+ border-left: 1px solid transparent;
160149 }
161-
162-.body {
163- margin: 0 0 0 110px;
164- padding: 0 20px 0 0;
150+.selectedPost {
151+ border-left: 1px solid #E56354;
165152 }
166153
167-/* Blog styles
168- alien icon; twisted timestamp et all
169-*/
170-.alien {
171- text-transform: lowercase;
172- display: inline-block;
173- width: 56px;
174- padding: 5px;
175- margin: 0 10px;
176- text-align: center;
154+.relTime {
155+ float: right;
156+ margin: 2em 0 0 0;
177157 }
178-
179-.relTime {
180- float: left;
181- width: 80px;
182- -moz-transform: rotate(-7.5deg);
183- -o-transform: rotate(-7.5deg);
184- -webkit-transform: rotate(-7.5deg);
185- -ms-transform: rotate(-7.5deg);
186- transform: rotate(-7.5deg);
187- filter: progid:DXImageTransform.Microsoft.Matrix(
188- M11=0.9914448613738104, M12=0.13052619222005157, M21=-0.13052619222005157, M22=0.9914448613738104, sizingMethod='auto expand');
189- zoom: 1;
158+pre {
159+ margin: 1em 0;
160+ padding: 10px;
190161 }
191-
192-
162+pre, code {
163+ background: #eee;
164+ border-left: 5px solid #999;
165+}
166+pre code { border: none; }
167+code { padding: 3px 5px; }
193168
194169 /* Helpers (from h5bp)
195170 */
@@ -197,4 +172,3 @@ header, section {
197172 .clearfix:before, .clearfix:after { content: ""; display: table; }
198173 .clearfix:after { clear: both; }
199174 .clearfix { zoom: 1; }
200-
imgs/ajax-loader.gif+0−0
Binary file, not shown.
imgs/me.png+0−0
Binary file, not shown.
index.html+12−15
@@ -2,29 +2,30 @@
22 <html lang="en">
33 <head charset="utf-8">
44
5- <title></title>
6- <meta name="author" content="">
7- <meta name="description" content="">
5+ <title>xonecas.com</title>
6+ <meta name="author" content="@xonecas">
7+ <meta name="description" content="Notes and rants">
88
99 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1010
11- <link rel="stylesheet" href="css/style.css">
11+ <link rel="stylesheet" href="css/style.css?_=0.0.1">
1212
13- <script src="libs/modernizr.js"></script>
13+ <script src="libs/modernizr.js?_=0.0.1"></script>
1414 </head>
1515 <body>
1616 <header>
17+ <span id="guide">Use j/k to move up/down</span>
1718 <h1 id="brand">Sean Caetano Martin</h1>
1819 </header>
1920
2021 <section id="content">
2122 <ul id="tumblr">
22- <li><img src="imgs/ajax-loader.gif"></li>
23+ <li><img class="loader" src="imgs/ajax-loader.gif" alt="Loading..."></li>
2324 </ul>
2425 </section>
2526
2627 <section id="latestTweet">
27- <img src="imgs/ajax-loader.gif">
28+ <img class="loader" src="imgs/ajax-loader.gif" alt="Loading...">
2829 </section>
2930
3031
@@ -43,11 +44,10 @@
4344 </script>
4445 <script id="_tumblr" type="text/template">
4546 <li id="<%= id %>" class="post clearfix">
47+ <span class="relTime"><%= relTime %></span>
4648 <h2 class="title">
47- <span class="alien"><%= alien %></span>
4849 <%= title %>
4950 </h2>
50- <span class="relTime"><%= relTime %></span>
5151 <div class="body">
5252 <%= body %>
5353 </div>
@@ -56,12 +56,9 @@
5656 </div>
5757
5858 <!--
59- Dependencies (need to concat)
59+ Dependencies
6060 -->
61- <script src="libs/json2.js"></script>
62- <script src="libs/jquery.js"></script>
63- <script src="libs/underscore.js"></script>
64- <script src="libs/backbone.js"></script>
61+ <script src="libs/all.js"></script>
6562 <script src="js/script.js"></script>
66-</body
63+</body>
6764 </html>
js/script.js+76−8
@@ -4,12 +4,9 @@ $(function () {
44 // -----------------
55 var x = window.x = {};
66
7- // defaults
8- // --------
9- x.alpha = "abcdefghijklmnopqrstuvwxyz";
10-
117 // Helpers
128 // -------
9+ // {{{ 8<
1310 function relativeTime(time) {
1411 time = _.isNumber(time) ? time * 1000 : time;
1512
@@ -48,10 +45,12 @@ $(function () {
4845
4946 return text;
5047 }
48+ // }}}
5149
5250
5351 // Tumblr client
5452 // -------------
53+ // {{{ 8<
5554 x.Blog = Backbone.Collection.extend({
5655 url: "http://api.tumblr.com/v2/blog/xonecas.tumblr.com/posts/text",
5756 page: 0,
@@ -87,6 +86,10 @@ $(function () {
8786 el: $('#tumblr'),
8887 template: $('#_tumblr').html(),
8988
89+ events: {
90+ "mouseover .post": "updateSelected"
91+ },
92+
9093 initialize: function () {
9194 this.collection.fetch();
9295
@@ -99,17 +102,27 @@ $(function () {
99102
100103 this.el.empty();
101104 this.collection.forEach(function (el) {
102- var rnd = Math.floor(Math.random() * x.alpha.length)
103- el.set({"alien": x.alpha[rnd] }, {"silent": true});
104105 that.el.append(
105106 _.template(that.template, el.toJSON())
106107 );
107108 });
109+ this.visible = 0;
110+ $("#"+this.collection.at(0).get('id'))
111+ .addClass('selectedPost');
112+ },
113+
114+ updateSelected: function (ev) {
115+ var that = this;
116+
117+ $('.selectedPost').removeClass('selectedPost');
118+ $(ev.target).closest('.post').addClass('selectedPost');
108119 }
109120 });
121+ // }}}
110122
111123 // Twitter client
112124 // --------------
125+ // {{{ 8<
113126 x.Tweets = Backbone.Collection.extend({
114127 url: "http://api.twitter.com/1/statuses/user_timeline.json",
115128
@@ -164,12 +177,67 @@ $(function () {
164177 setTimeout(this.loop, 60 * 1000);
165178 }
166179 });
180+ // }}}
181+
182+ x.IndexView = Backbone.View.extend({
183+ el: $(document),
184+
185+ events: {
186+ "keypress": "keypressRouter"
187+ },
188+
189+ initialize: function () {
190+ this.blog = new x.BlogView();
191+ this.tweet = new x.TweetsView();
192+ },
167193
194+ keypressRouter: function (ev) {
195+ switch (ev.which) {
196+ case 106:
197+ case 107:
198+ this.jumpTo(ev);
199+ break;
200+ case 47:
201+ ev.preventDefault();
202+ break;
203+ default:
204+ if (console && console.log) {
205+ console.log(ev.which);
206+ }
207+ }
208+
209+ },
210+
211+ jumpTo: function (ev) {
212+ var that = this,
213+ selectedID = parseInt($('.selectedPost')[0].id, 10);
214+
215+ this.blog.collection.forEach(function (mod, idx) {
216+ if (mod.get('id') === selectedID) {
217+ that.blog.visible = idx;
218+ }
219+ });
220+
221+ var modifier = ev.which === 106 ? 1 : -1,
222+ idx = this.blog.visible + modifier,
223+ post = this.blog.collection.at(idx);
224+
225+ if (post) {
226+ var $el = $('#'+post.get('id')),
227+ offset = idx !== 0 ? $el.offset().top - 100: 0;
228+
229+ $('.selectedPost').removeClass('selectedPost');
230+ $el.addClass('selectedPost');
231+ window.scroll(0, offset); // make this smooooooth
232+ this.blog.visible = idx;
233+ }
234+
235+ }
236+ });
168237
169238 // main
170239 // ----
171- x.b = new x.BlogView();
172- x.t = new x.TweetsView();
240+ x.index = new x.IndexView();
173241
174242 return x;
175243
libs/all.js+11452−0
@@ -0,0 +1,11452 @@
1+/*
2+ http://www.JSON.org/json2.js
3+ 2011-02-23
4+
5+ Public Domain.
6+
7+ NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
8+
9+ See http://www.JSON.org/js.html
10+
11+
12+ This code should be minified before deployment.
13+ See http://javascript.crockford.com/jsmin.html
14+
15+ USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
16+ NOT CONTROL.
17+
18+
19+ This file creates a global JSON object containing two methods: stringify
20+ and parse.
21+
22+ JSON.stringify(value, replacer, space)
23+ value any JavaScript value, usually an object or array.
24+
25+ replacer an optional parameter that determines how object
26+ values are stringified for objects. It can be a
27+ function or an array of strings.
28+
29+ space an optional parameter that specifies the indentation
30+ of nested structures. If it is omitted, the text will
31+ be packed without extra whitespace. If it is a number,
32+ it will specify the number of spaces to indent at each
33+ level. If it is a string (such as '\t' or '&nbsp;'),
34+ it contains the characters used to indent at each level.
35+
36+ This method produces a JSON text from a JavaScript value.
37+
38+ When an object value is found, if the object contains a toJSON
39+ method, its toJSON method will be called and the result will be
40+ stringified. A toJSON method does not serialize: it returns the
41+ value represented by the name/value pair that should be serialized,
42+ or undefined if nothing should be serialized. The toJSON method
43+ will be passed the key associated with the value, and this will be
44+ bound to the value
45+
46+ For example, this would serialize Dates as ISO strings.
47+
48+ Date.prototype.toJSON = function (key) {
49+ function f(n) {
50+ // Format integers to have at least two digits.
51+ return n < 10 ? '0' + n : n;
52+ }
53+
54+ return this.getUTCFullYear() + '-' +
55+ f(this.getUTCMonth() + 1) + '-' +
56+ f(this.getUTCDate()) + 'T' +
57+ f(this.getUTCHours()) + ':' +
58+ f(this.getUTCMinutes()) + ':' +
59+ f(this.getUTCSeconds()) + 'Z';
60+ };
61+
62+ You can provide an optional replacer method. It will be passed the
63+ key and value of each member, with this bound to the containing
64+ object. The value that is returned from your method will be
65+ serialized. If your method returns undefined, then the member will
66+ be excluded from the serialization.
67+
68+ If the replacer parameter is an array of strings, then it will be
69+ used to select the members to be serialized. It filters the results
70+ such that only members with keys listed in the replacer array are
71+ stringified.
72+
73+ Values that do not have JSON representations, such as undefined or
74+ functions, will not be serialized. Such values in objects will be
75+ dropped; in arrays they will be replaced with null. You can use
76+ a replacer function to replace those with JSON values.
77+ JSON.stringify(undefined) returns undefined.
78+
79+ The optional space parameter produces a stringification of the
80+ value that is filled with line breaks and indentation to make it
81+ easier to read.
82+
83+ If the space parameter is a non-empty string, then that string will
84+ be used for indentation. If the space parameter is a number, then
85+ the indentation will be that many spaces.
86+
87+ Example:
88+
89+ text = JSON.stringify(['e', {pluribus: 'unum'}]);
90+ // text is '["e",{"pluribus":"unum"}]'
91+
92+
93+ text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
94+ // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
95+
96+ text = JSON.stringify([new Date()], function (key, value) {
97+ return this[key] instanceof Date ?
98+ 'Date(' + this[key] + ')' : value;
99+ });
100+ // text is '["Date(---current time---)"]'
101+
102+
103+ JSON.parse(text, reviver)
104+ This method parses a JSON text to produce an object or array.
105+ It can throw a SyntaxError exception.
106+
107+ The optional reviver parameter is a function that can filter and
108+ transform the results. It receives each of the keys and values,
109+ and its return value is used instead of the original value.
110+ If it returns what it received, then the structure is not modified.
111+ If it returns undefined then the member is deleted.
112+
113+ Example:
114+
115+ // Parse the text. Values that look like ISO date strings will
116+ // be converted to Date objects.
117+
118+ myData = JSON.parse(text, function (key, value) {
119+ var a;
120+ if (typeof value === 'string') {
121+ a =
122+/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
123+ if (a) {
124+ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
125+ +a[5], +a[6]));
126+ }
127+ }
128+ return value;
129+ });
130+
131+ myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
132+ var d;
133+ if (typeof value === 'string' &&
134+ value.slice(0, 5) === 'Date(' &&
135+ value.slice(-1) === ')') {
136+ d = new Date(value.slice(5, -1));
137+ if (d) {
138+ return d;
139+ }
140+ }
141+ return value;
142+ });
143+
144+
145+ This is a reference implementation. You are free to copy, modify, or
146+ redistribute.
147+*/
148+
149+/*jslint evil: true, strict: false, regexp: false */
150+
151+/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
152+ call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
153+ getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
154+ lastIndex, length, parse, prototype, push, replace, slice, stringify,
155+ test, toJSON, toString, valueOf
156+*/
157+
158+
159+// Create a JSON object only if one does not already exist. We create the
160+// methods in a closure to avoid creating global variables.
161+
162+var JSON;
163+if (!JSON) {
164+ JSON = {};
165+}
166+
167+(function () {
168+ "use strict";
169+
170+ function f(n) {
171+ // Format integers to have at least two digits.
172+ return n < 10 ? '0' + n : n;
173+ }
174+
175+ if (typeof Date.prototype.toJSON !== 'function') {
176+
177+ Date.prototype.toJSON = function (key) {
178+
179+ return isFinite(this.valueOf()) ?
180+ this.getUTCFullYear() + '-' +
181+ f(this.getUTCMonth() + 1) + '-' +
182+ f(this.getUTCDate()) + 'T' +
183+ f(this.getUTCHours()) + ':' +
184+ f(this.getUTCMinutes()) + ':' +
185+ f(this.getUTCSeconds()) + 'Z' : null;
186+ };
187+
188+ String.prototype.toJSON =
189+ Number.prototype.toJSON =
190+ Boolean.prototype.toJSON = function (key) {
191+ return this.valueOf();
192+ };
193+ }
194+
195+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
196+ escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
197+ gap,
198+ indent,
199+ meta = { // table of character substitutions
200+ '\b': '\\b',
201+ '\t': '\\t',
202+ '\n': '\\n',
203+ '\f': '\\f',
204+ '\r': '\\r',
205+ '"' : '\\"',
206+ '\\': '\\\\'
207+ },
208+ rep;
209+
210+
211+ function quote(string) {
212+
213+// If the string contains no control characters, no quote characters, and no
214+// backslash characters, then we can safely slap some quotes around it.
215+// Otherwise we must also replace the offending characters with safe escape
216+// sequences.
217+
218+ escapable.lastIndex = 0;
219+ return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
220+ var c = meta[a];
221+ return typeof c === 'string' ? c :
222+ '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
223+ }) + '"' : '"' + string + '"';
224+ }
225+
226+
227+ function str(key, holder) {
228+
229+// Produce a string from holder[key].
230+
231+ var i, // The loop counter.
232+ k, // The member key.
233+ v, // The member value.
234+ length,
235+ mind = gap,
236+ partial,
237+ value = holder[key];
238+
239+// If the value has a toJSON method, call it to obtain a replacement value.
240+
241+ if (value && typeof value === 'object' &&
242+ typeof value.toJSON === 'function') {
243+ value = value.toJSON(key);
244+ }
245+
246+// If we were called with a replacer function, then call the replacer to
247+// obtain a replacement value.
248+
249+ if (typeof rep === 'function') {
250+ value = rep.call(holder, key, value);
251+ }
252+
253+// What happens next depends on the value's type.
254+
255+ switch (typeof value) {
256+ case 'string':
257+ return quote(value);
258+
259+ case 'number':
260+
261+// JSON numbers must be finite. Encode non-finite numbers as null.
262+
263+ return isFinite(value) ? String(value) : 'null';
264+
265+ case 'boolean':
266+ case 'null':
267+
268+// If the value is a boolean or null, convert it to a string. Note:
269+// typeof null does not produce 'null'. The case is included here in
270+// the remote chance that this gets fixed someday.
271+
272+ return String(value);
273+
274+// If the type is 'object', we might be dealing with an object or an array or
275+// null.
276+
277+ case 'object':
278+
279+// Due to a specification blunder in ECMAScript, typeof null is 'object',
280+// so watch out for that case.
281+
282+ if (!value) {
283+ return 'null';
284+ }
285+
286+// Make an array to hold the partial results of stringifying this object value.
287+
288+ gap += indent;
289+ partial = [];
290+
291+// Is the value an array?
292+
293+ if (Object.prototype.toString.apply(value) === '[object Array]') {
294+
295+// The value is an array. Stringify every element. Use null as a placeholder
296+// for non-JSON values.
297+
298+ length = value.length;
299+ for (i = 0; i < length; i += 1) {
300+ partial[i] = str(i, value) || 'null';
301+ }
302+
303+// Join all of the elements together, separated with commas, and wrap them in
304+// brackets.
305+
306+ v = partial.length === 0 ? '[]' : gap ?
307+ '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' :
308+ '[' + partial.join(',') + ']';
309+ gap = mind;
310+ return v;
311+ }
312+
313+// If the replacer is an array, use it to select the members to be stringified.
314+
315+ if (rep && typeof rep === 'object') {
316+ length = rep.length;
317+ for (i = 0; i < length; i += 1) {
318+ if (typeof rep[i] === 'string') {
319+ k = rep[i];
320+ v = str(k, value);
321+ if (v) {
322+ partial.push(quote(k) + (gap ? ': ' : ':') + v);
323+ }
324+ }
325+ }
326+ } else {
327+
328+// Otherwise, iterate through all of the keys in the object.
329+
330+ for (k in value) {
331+ if (Object.prototype.hasOwnProperty.call(value, k)) {
332+ v = str(k, value);
333+ if (v) {
334+ partial.push(quote(k) + (gap ? ': ' : ':') + v);
335+ }
336+ }
337+ }
338+ }
339+
340+// Join all of the member texts together, separated with commas,
341+// and wrap them in braces.
342+
343+ v = partial.length === 0 ? '{}' : gap ?
344+ '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' :
345+ '{' + partial.join(',') + '}';
346+ gap = mind;
347+ return v;
348+ }
349+ }
350+
351+// If the JSON object does not yet have a stringify method, give it one.
352+
353+ if (typeof JSON.stringify !== 'function') {
354+ JSON.stringify = function (value, replacer, space) {
355+
356+// The stringify method takes a value and an optional replacer, and an optional
357+// space parameter, and returns a JSON text. The replacer can be a function
358+// that can replace values, or an array of strings that will select the keys.
359+// A default replacer method can be provided. Use of the space parameter can
360+// produce text that is more easily readable.
361+
362+ var i;
363+ gap = '';
364+ indent = '';
365+
366+// If the space parameter is a number, make an indent string containing that
367+// many spaces.
368+
369+ if (typeof space === 'number') {
370+ for (i = 0; i < space; i += 1) {
371+ indent += ' ';
372+ }
373+
374+// If the space parameter is a string, it will be used as the indent string.
375+
376+ } else if (typeof space === 'string') {
377+ indent = space;
378+ }
379+
380+// If there is a replacer, it must be a function or an array.
381+// Otherwise, throw an error.
382+
383+ rep = replacer;
384+ if (replacer && typeof replacer !== 'function' &&
385+ (typeof replacer !== 'object' ||
386+ typeof replacer.length !== 'number')) {
387+ throw new Error('JSON.stringify');
388+ }
389+
390+// Make a fake root object containing our value under the key of ''.
391+// Return the result of stringifying the value.
392+
393+ return str('', {'': value});
394+ };
395+ }
396+
397+
398+// If the JSON object does not yet have a parse method, give it one.
399+
400+ if (typeof JSON.parse !== 'function') {
401+ JSON.parse = function (text, reviver) {
402+
403+// The parse method takes a text and an optional reviver function, and returns
404+// a JavaScript value if the text is a valid JSON text.
405+
406+ var j;
407+
408+ function walk(holder, key) {
409+
410+// The walk method is used to recursively walk the resulting structure so
411+// that modifications can be made.
412+
413+ var k, v, value = holder[key];
414+ if (value && typeof value === 'object') {
415+ for (k in value) {
416+ if (Object.prototype.hasOwnProperty.call(value, k)) {
417+ v = walk(value, k);
418+ if (v !== undefined) {
419+ value[k] = v;
420+ } else {
421+ delete value[k];
422+ }
423+ }
424+ }
425+ }
426+ return reviver.call(holder, key, value);
427+ }
428+
429+
430+// Parsing happens in four stages. In the first stage, we replace certain
431+// Unicode characters with escape sequences. JavaScript handles many characters
432+// incorrectly, either silently deleting them, or treating them as line endings.
433+
434+ text = String(text);
435+ cx.lastIndex = 0;
436+ if (cx.test(text)) {
437+ text = text.replace(cx, function (a) {
438+ return '\\u' +
Cut short: this commit's diff is over 1000 lines.
server.js+33−41
Cut short: this commit's diff is over 1000 lines.