diff --git a/bg.gif b/bg.gif new file mode 100644 index 0000000..a767c37 Binary files /dev/null and b/bg.gif differ diff --git a/deploy/v0.5.0.zip b/deploy/v0.5.0.zip new file mode 100644 index 0000000..a053b3d Binary files /dev/null and b/deploy/v0.5.0.zip differ diff --git a/fonts/ostrich-bold-webfont.eot b/fonts/ostrich-bold-webfont.eot new file mode 100644 index 0000000..ec84803 Binary files /dev/null and b/fonts/ostrich-bold-webfont.eot differ diff --git a/fonts/ostrich-bold-webfont.svg b/fonts/ostrich-bold-webfont.svg new file mode 100644 index 0000000..605f4b6 --- /dev/null +++ b/fonts/ostrich-bold-webfont.svg @@ -0,0 +1,141 @@ + + + \ No newline at end of file diff --git a/fonts/ostrich-bold-webfont.ttf b/fonts/ostrich-bold-webfont.ttf new file mode 100644 index 0000000..c3bab74 Binary files /dev/null and b/fonts/ostrich-bold-webfont.ttf differ diff --git a/fonts/ostrich-bold-webfont.woff b/fonts/ostrich-bold-webfont.woff new file mode 100644 index 0000000..8e1062c Binary files /dev/null and b/fonts/ostrich-bold-webfont.woff differ diff --git a/icons/chrome.png b/icons/chrome.png new file mode 100644 index 0000000..87d384e Binary files /dev/null and b/icons/chrome.png differ diff --git a/icons/favicon.png b/icons/favicon.png new file mode 100644 index 0000000..e99426a Binary files /dev/null and b/icons/favicon.png differ diff --git a/icons/frank.png b/icons/frank.png new file mode 100644 index 0000000..f4e33f7 Binary files /dev/null and b/icons/frank.png differ diff --git a/icons/generic.png b/icons/generic.png new file mode 100644 index 0000000..bdec73f Binary files /dev/null and b/icons/generic.png differ diff --git a/icons/kerrick.png b/icons/kerrick.png new file mode 100644 index 0000000..086fe28 Binary files /dev/null and b/icons/kerrick.png differ diff --git a/icons/reddit.png b/icons/reddit.png new file mode 100644 index 0000000..1f8bed0 Binary files /dev/null and b/icons/reddit.png differ diff --git a/index.html b/index.html index 8dfce98..0c67af0 100644 --- a/index.html +++ b/index.html @@ -1,119 +1,91 @@ - - + +
- -
+ Mostly Harmless is currently under rapid development, so its features are constantly changing. Once v1.0.0 is released, I will list and demonstrate features here.
+
+ To install from source:
+chrome://extensions- The project is currently in a limited beta! -
-
- Download the latest ZIP and extract it, navigate to chrome://extensions, turn on Developer mode, choose Load unpacked extension, and find the extracted code.
-
-Copyright (C) 2011 by Kerrick Long - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --
- You can download this project in either zip or tar formats. -
-- You can also clone the project with Git by running: -
--$ git clone git://github.com/Kerrick/Mostly-Harmless -- + - + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..4437b02 --- /dev/null +++ b/script.js @@ -0,0 +1,42 @@ +///////////////////////////////////////////////////////// +// Set this variable to be the ID of the "page" that // +// you want shown on load if one isn't in the URL. // +///////////////////////////////////////////////////////// +var showOnLoad = 'features'; + + +///////////////////////////////////////////////////////// +// And the rest takes care of itself! // +///////////////////////////////////////////////////////// +function navigate(navTo, speed, navFrom) { + if(navFrom === undefined) { + $('div#'+navTo).slideDown(speed,function(){ + $('div#'+navTo).addClass('current'); + }); + $('a[href*='+navTo+']').addClass('current'); + } else if(navTo != navFrom) { + $('div#'+navFrom).slideUp(speed,function(){ + $('div#'+navFrom).removeClass('current'); + $('div#'+navTo).slideDown(speed,function(){ + $('div#'+navTo).addClass('current'); + }); + }); + $('a[href*='+navFrom+']').removeClass('current'); + $('a[href*='+navTo+']').addClass('current'); + } +} +$(document).ready(function() { + $('div.article').hide(0); + if(window.location.hash.substr(1)) { + navigate(window.location.hash.substr(1),400); + } else { + window.location.hash = showOnLoad; + navigate(showOnLoad,400); + } + + $('a[href^="#"]').click(function(){ + navigate(this.href.split('#')[1],200,$('div.current.article').attr('id')); + }); + }); + +// Code is copyright Kerrick Long, 2009-2011, released under the MIT license (see index.html). \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..781e165 --- /dev/null +++ b/style.css @@ -0,0 +1,43 @@ +/* Eric Meyer's Reset Reloaded */ +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;} +:focus{outline:0;} +ol,ul{list-style:none;} + +/*The fonts included are copyrighted by the vendor listed below. + * @vendor: The League of Moveable Type + * @vendorurl: http://www.theleagueofmoveabletype.com + * @licenseurl: http://www.fontsquirrel.com/license/ChunkFive + */ +@font-face {font-family: 'ChunkFiveRegular';src: url('fonts/Chunkfive.eot');src: local('ChunkFive Regular'), local('ChunkFive'), url('fonts/Chunkfive.woff') format('woff'), url('fonts/Chunkfive.otf') format('opentype'), url('fonts/Chunkfive.svg#ChunkFive') format('svg');} +@font-face {font-family: 'OstrichSansBold';src: url('fonts/ostrich-bold-webfont.eot');src: url('fonts/ostrich-bold-webfont.eot?#iefix') format('embedded-opentype'),url('fonts/ostrich-bold-webfont.woff') format('woff'),url('fonts/ostrich-bold-webfont.ttf') format('truetype'),url('fonts/ostrich-bold-webfont.svg#OstrichSansBold') format('svg');font-weight: normal;font-style: normal;} +@font-face {font-family: 'OstrichSansBlack';src: url('fonts/ostrich-black-webfont.eot');src: url('fonts/ostrich-black-webfont.eot?#iefix') format('embedded-opentype'),url('fonts/ostrich-black-webfont.woff') format('woff'),url('fonts/ostrich-black-webfont.ttf') format('truetype'),url('fonts/ostrich-black-webfont.svg#OstrichSansBlack') format('svg');font-weight: normal;font-style: normal;} + +/* Page Styles */ +html{background:#5f99cf url(bg.gif) top center no-repeat;} +body{overflow-y:scroll;-moz-border-radius:10px;-moz-box-shadow:rgba(34,34,34,.8) 0 5px 10px;-webkit-border-radius:10px;-webkit-box-shadow:rgba(34,34,34,.8) 0 5px 10px;background:#ddd;border:1px solid #fff;color:#000;line-height:1;margin:20px auto;padding:15px 15px 0;width:830px;} +h1 {color: #444;text-shadow: 0px 2px 2px #fff;font:bold 144px OstrichSansBold, Arial, Helvetica, sans-serif;line-height:120px;text-transform:uppercase;text-align:center;border-bottom:1px solid #a6a6a6;letter-spacing:-5px;margin: 0 -16px;padding: 0 0 8px;} +p a, ol a{color:#fff;text-decoration:none;border-bottom:1px solid #fff;} +p a:hover, ol a:hover{color:#bbb;border-bottom:1px solid #bbb;} +code, pre{font-family:'Anonymous Pro', 'Courier New', monospace;} +.article ol{list-style:decimal inside;} +ul#nav{border-bottom:1px solid #a6a6a6;border-top:1px solid #fff;margin:0 -16px;} +ul#nav li{display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;_height:29px;height:29px;margin:9px 14px 12px;width:144px;} +ul#nav li a{-moz-border-radius:24px;-webkit-border-radius:24px;border-bottom:0;color:#444;display:block;font:bold 16px Arial, Helvetica, sans-serif;line-height:29px;height:100%;text-align:center;text-decoration:none;width:100%;background:#ccc;-moz-box-shadow:0px 1px 2px #666;-webkit-box-shadow:0px 1px 2px #666;box-shadow:0px 1px 2px #666;} +ul#nav li a:hover{background:#5f99cf;color:#fff;} +ul#nav li a:active,ul#nav li a.current{background:#5f99cf;-moz-box-shadow:0px 1px 2px #fff;-webkit-box-shadow:0px 1px 2px #fff;box-shadow:0px 1px 2px #fff;color:#fff;text-shadow:rgba(34,34,34,.8) 0 1px 2px;} +ul#nav li a.current{cursor:default;background:orangered} +div.section{border-top:1px solid #fff;margin:0 -16px;padding:0 15px 15px;} +div.article{-moz-box-shadow:0px 1px 2px #fff;-webkit-box-shadow:0px 1px 2px #fff;box-shadow:0px 1px 2px #fff;-moz-border-radius:5px;-webkit-border-radius:5px;background:#444;border:1px solid #222;color:#fff;font:16px Arial, Helvetica, sans-serif;line-height:24px;margin: 15px 0 0;padding:10px;} +div.article h2{font:24px Arial, Helvetica, sans-serif;line-height:24px;margin:24px 0 12px;text-shadow:rgba(34,34,34,.8) 0 1px 2px;text-transform:capitalize;} +div.article h2:first-child{margin-top:0;} +div.article p{margin:0 0 12px;} +div.article ul{border-bottom:1px solid #848484;border-left:1px solid #121212;border-right:1px solid #848484;border-top:1px solid #121212;} +div.article ul li{border-bottom:1px solid #121212;border-left:1px solid #848484;border-right:1px solid #121212;border-top:1px solid #848484;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;_height:48px;height:48px;width:200px;} +div.article ul li a{background:url(icons/generic.png) 8px top no-repeat;color:#848484;display:block;font:10px Arial, Helvetica, sans-serif;line-height:6px;height:100%;text-decoration:none;padding:0 0 0 48px;width:152px;} +div.article ul li a:hover{background-color:#555;background-position:8px bottom;} +div.article ul li a strong{color:#fff;display:block;font:16px Arial, Helvetica, sans-serif;line-height:32px;} +div.article ul li a[href*='github.com/reddit/reddit']{background-image:url(icons/reddit.png);} +div.article ul li a[href*='frankkohlhepp']{background-image:url(icons/frank.png);} +div.article ul li a[href*='chrome/extensions']{background-image:url(icons/chrome.png);} +div.article ul li a[href*='user/KerrickLong']{background-image:url(icons/kerrick.png);} +div.footer{bottom:5px;color:#fff;font:10px Arial, Helvetica, sans-serif;line-height:14px;position:absolute;right:5px;text-align:right;z-index:-1;} \ No newline at end of file