From 764bc0034c3972671a87bdeefc728046074b20e0 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Sun, 25 Mar 2012 00:09:43 +0100 Subject: [PATCH] Adds a info index file at /_h5ai. --- README.md | 1 + src/_h5ai/css/splash.less | 141 +++++++++++++++++++++++++++++++++++++ src/_h5ai/images/html5.png | Bin 0 -> 2321 bytes src/_h5ai/index.html | 48 +++++++++++++ src/_h5ai/js/splash.js | 27 +++++++ 5 files changed, 217 insertions(+) create mode 100644 src/_h5ai/css/splash.less create mode 100644 src/_h5ai/images/html5.png create mode 100644 src/_h5ai/index.html create mode 100644 src/_h5ai/js/splash.js diff --git a/README.md b/README.md index af989de0..1eda63aa 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ h5ai is provided under the terms of the [MIT License](http://github.com/lrsjng/h * hides broken tree view in IE < 9 and adds a message to the footer * disables hash changes since they break logical browser history * fixes thumbnail size for portrait images in icon view +* adds a info page to `/_ha5i` * updates lv translation * adds ro translation by [Jakob Cosoroabă](http://github.com/midday) * adds ja translation by [metasta](http://github.com/metasta) diff --git a/src/_h5ai/css/splash.less b/src/_h5ai/css/splash.less new file mode 100644 index 00000000..39265f75 --- /dev/null +++ b/src/_h5ai/css/splash.less @@ -0,0 +1,141 @@ + +@import "inc/h5bp-norm"; +@import "inc/mixins"; + + +body { + position: relative; + font-family: Ubuntu, Arial, sans; + margin: 0 auto; + padding: 0 142px; + font-size: 20px; + color: #555; + max-width: 600px; + + a, a:visited, a:active { + color: #2080ff; + text-decoration: none; + .transition(all 0.2s ease-in-out); + + &:hover { + color: #68A9ff; + } + } + + header { + color: #333; + text-align: center; + margin: 32px 0; + + h1 { + margin: 0; + padding: 0; + font-size: 100px; + font-weight: normal; + height: 150px; + line-height: 150px; + font-family: 'Miltonian Tattoo'; + font-size: 160px; + letter-spacing: -5px; + .logo-5 { + position: relative; + top: -14px; + img { + width: 128px; + height: 128px; + } + } + .logo-a { + margin-left: -9px; + } + } + h2 { + margin: 16px 0 0 0; + padding: 0; + font-size: 26px; + font-weight: normal; + } + } + section { + margin: 48px 0; + + .h5ai { + font-family: 'Miltonian Tattoo'; + font-weight: normal; + } + h2 { + font-size: 1.5em; + margin-top: 1.5em; + margin-bottom: 0.4em; + color: #555; + } + h3 { + font-size: 1.15em; + margin-top: 1.8em; + margin-bottom: 0.6em; + color: #555; + } + h4 { + font-size: 0.85em; + margin-top: 1.8em; + margin-bottom: 0.1em; + color: #333; + } + p { + line-height: 1.6em; + } + p + p { + margin-top: 1.2em; + } + li { + margin-top: 0.6em; + line-height: 1.4em; + } + pre.prettyprint.nice, code.prettyprint.nice { + font-family: "Ubuntu Mono", Ubuntu, Arial, sans; + font-size: 0.95em; + a { + background-color: rgba(255,241,0,0.3); + + &:hover { + background-color: rgba(255,241,0,0.7); + } + } + + .com { + color: #aaa; + } + .since .com { + &:before { + content: "@since "; + } + } + .since.new .com { + font-weight: bold; + color: #17b31c; + &:after { + content: " NEW!"; + } + } + } + pre.prettyprint { + border: none; + margin: 1em 0 1em 0.3em; + padding-left: 0.6em; + border-left: 2px solid rgba(0,0,0,0.15); + } + code.prettyprint { + border: 1px solid rgba(0,0,0,0.15); + padding: 2px 4px 2px 4px; + } + img.gravatar { + float: left; + width: 80px; + height: 80px; + margin: 8px 12px 20px 2px; + padding: 2px; + background-color: #ddd; + border: 1px solid #bbb; + } + } +} diff --git a/src/_h5ai/images/html5.png b/src/_h5ai/images/html5.png new file mode 100644 index 0000000000000000000000000000000000000000..6b0f0bea701a7d9b88efd5574cc8a9ae22190698 GIT binary patch literal 2321 zcmV+s3GViZP)Oto6fd`kwB0@M1y1{6(vGY($G;*#1u%BAkoqTRU%7iP^3$M#*y$*5g*N(7(!u7 zP8|8?Zg(F$d*@&|cJ|%ddHd$=&Pb~*e7>KV@6CKOZ)ct-o*^r(6;v&jSFKl8cx1f`kZ4R+GDu5I~PT081_aFb^nc z{8t44X96Y706^+h*U<18H>2S8h7@r(KRr_cKu~4?_(wb^zqjWp89&o@D)3)sP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6!J4e1%Z)(~s$uGTJ^6QtyEL zi~zWDSl!^>RZF?Kew%?a0!;znAr&;ITfhCCzFjg2+yOYmpkxwOHLPx1enV#jR>}jYkjd@jY9I`W zLI)$i@XU+ zI>!P)Gr7L*X9AODGdeNy*6QoKiScIW?RYD*V;A~BxF~vuN|3G(98?K3Ox^|+sIgoZ zy%w;uE;J_xS#?-y)qy4LV0 zxb-$!DVC#!`l(donVy|~78<}kFF?f^8m-47;%QZ52 zh+A)(B5$P!fNNy3X!2G$01zdUPsm$h@arz>(n$bVB$H&w8v~#?GD(uWF#ybw$zb0q rFZB$B(gQ$|OzthhRO(2){{$ESr9$x$#GUP%00000NkvXXu0mjfo~j(x literal 0 HcmV?d00001 diff --git a/src/_h5ai/index.html b/src/_h5ai/index.html new file mode 100644 index 00000000..a1eef60b --- /dev/null +++ b/src/_h5ai/index.html @@ -0,0 +1,48 @@ + + + + + + + + + h5ai %BUILD_VERSION% + + + + + + + + + + + + +
+

h5ai

+
+
+

+ h5ai %BUILD_VERSION% is provided under the terms of the MIT License. +

+

+

+

+

+ To report a bug or make a feature request please create a new issue. +

+

Contact

+

+ + Lars Jung
+ lrsjng [at] gmail [dot] com
+ @lrsjng +

+
+ + + \ No newline at end of file diff --git a/src/_h5ai/js/splash.js b/src/_h5ai/js/splash.js new file mode 100644 index 00000000..b5c8e98f --- /dev/null +++ b/src/_h5ai/js/splash.js @@ -0,0 +1,27 @@ + +// @include "inc/lib/jquery-1.7.1.min.js" + +(function (window, $) { +'use strict'; +/*jslint browser: true, confusion: true, white: true */ +/*global jQuery */ + + var deobfuscate = function () { + + $(".obfusma").each(function () { + + var $this = $(this), + add = $this.text().replace(/\s*/g, "").replace(/\[at\]/gi, "@").replace(/\[dot\]/gi, "."), + $a = $("").attr("href", "mailto:" + add).text(add).addClass("deobfusma"); + + $this.replaceWith($a); + }); + }, + init = function () { + + deobfuscate(); + }; + + $(init); + +}(window, jQuery)); \ No newline at end of file