Browse files

Initial commit of modified source.

  • Loading branch information...
1 parent 07a2d15 commit 491ea50525032be23e7beee2c3d404378d8ff563 logan@panic.com committed Apr 18, 2012
View
16 app.js
@@ -38,6 +38,22 @@ define([
app.configure(function() {
app.use(express.logger({ format: ':method :url :status' }));
+ app.use(function(req, res, next) {
+ // overrides for coda
+ var coda_overrides = {
+ '/': '/coda/',
+ '/css/bootstrap-responsive.css': '/coda/css/bootstrap-responsive.css',
+ '/css/bootstrap-responsive.min.css': '/coda/css/bootstrap-responsive.min.css',
+ '/css/bootstrap.css': '/coda/css/bootstrap.css',
+ '/css/bootstrap.min.css': '/coda/css/bootstrap.min.css',
+ '/js/views/fullwindow.js': '/coda/js/views/fullwindow.js',
+ '/templates/toc.html': '/coda/templates/toc.html'
+ };
+ if (coda_overrides[req.url] && /Coda/.test(req.headers['user-agent'])) {
+ req.url = coda_overrides[req.url];
+ }
+ next();
+ });
// preempt static to serve up cache manifest
app.get("/" + manifestFilename, function(req, res){
res.writeHead(200,manifest.headers);
View
581 static/coda/css/bootstrap-responsive.css
@@ -0,0 +1,581 @@
+/*!
+ * Bootstrap Responsive v2.0.1
+ *
+ * Copyright 2012 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ */
+.clearfix {
+ *zoom: 1;
+}
+.clearfix:before, .clearfix:after {
+ display: table;
+ content: "";
+}
+.clearfix:after {
+ clear: both;
+}
+.hidden {
+ display: none;
+ visibility: hidden;
+}
+@media (max-width: 480px) {
+ .nav-collapse {
+ -webkit-transform: translate3d(0, 0, 0);
+ }
+ .page-header h1 small {
+ display: block;
+ line-height: 18px;
+ }
+ input[class*="span"],
+ select[class*="span"],
+ textarea[class*="span"],
+ .uneditable-input {
+ display: block;
+ width: 100%;
+ min-height: 28px;
+ /* Make inputs at least the height of their button counterpart */
+
+ /* Makes inputs behave like true block-level elements */
+
+ -webkit-box-sizing: border-box;
+ /* Older Webkit */
+
+ -moz-box-sizing: border-box;
+ /* Older FF */
+
+ -ms-box-sizing: border-box;
+ /* IE8 */
+
+ box-sizing: border-box;
+ /* CSS3 spec*/
+
+ }
+ .input-prepend input[class*="span"], .input-append input[class*="span"] {
+ width: auto;
+ }
+ input[type="checkbox"], input[type="radio"] {
+ border: 1px solid #ccc;
+ }
+ .form-horizontal .control-group > label {
+ float: none;
+ width: auto;
+ padding-top: 0;
+ text-align: left;
+ }
+ .form-horizontal .controls {
+ margin-left: 0;
+ }
+ .form-horizontal .control-list {
+ padding-top: 0;
+ }
+ .form-horizontal .form-actions {
+ padding-left: 10px;
+ padding-right: 10px;
+ }
+ .modal {
+ position: absolute;
+ top: 10px;
+ left: 10px;
+ right: 10px;
+ width: auto;
+ margin: 0;
+ }
+ .modal.fade.in {
+ top: auto;
+ }
+ .modal-header .close {
+ padding: 10px;
+ margin: -10px;
+ }
+ .carousel-caption {
+ position: static;
+ }
+}
+@media (max-width: 767px) {
+ .container {
+ width: auto;
+ padding: 0 20px;
+ }
+ .row-fluid {
+ width: 100%;
+ }
+ .row {
+ margin-left: 0;
+ }
+ .row > [class*="span"], .row-fluid > [class*="span"] {
+ float: none;
+ display: block;
+ width: auto;
+ margin: 0;
+ }
+}
+@media (min-width: 768px) and (max-width: 979px) {
+ .row {
+ margin-left: -20px;
+ *zoom: 1;
+ }
+ .row:before, .row:after {
+ display: table;
+ content: "";
+ }
+ .row:after {
+ clear: both;
+ }
+ [class*="span"] {
+ float: left;
+ margin-left: 20px;
+ }
+ .span1 {
+ width: 42px;
+ }
+ .span2 {
+ width: 104px;
+ }
+ .span3 {
+ width: 166px;
+ }
+ .span4 {
+ width: 228px;
+ }
+ .span5 {
+ width: 290px;
+ }
+ .span6 {
+ width: 352px;
+ }
+ .span7 {
+ width: 414px;
+ }
+ .span8 {
+ width: 476px;
+ }
+ .span9 {
+ width: 538px;
+ }
+ .span10 {
+ width: 600px;
+ }
+ .span11 {
+ width: 662px;
+ }
+ .span12, .container {
+ width: 724px;
+ }
+ .offset1 {
+ margin-left: 82px;
+ }
+ .offset2 {
+ margin-left: 144px;
+ }
+ .offset3 {
+ margin-left: 206px;
+ }
+ .offset4 {
+ margin-left: 268px;
+ }
+ .offset5 {
+ margin-left: 330px;
+ }
+ .offset6 {
+ margin-left: 392px;
+ }
+ .offset7 {
+ margin-left: 454px;
+ }
+ .offset8 {
+ margin-left: 516px;
+ }
+ .offset9 {
+ margin-left: 578px;
+ }
+ .offset10 {
+ margin-left: 640px;
+ }
+ .offset11 {
+ margin-left: 702px;
+ }
+ .row-fluid {
+ width: 100%;
+ *zoom: 1;
+ }
+ .row-fluid:before, .row-fluid:after {
+ display: table;
+ content: "";
+ }
+ .row-fluid:after {
+ clear: both;
+ }
+ .row-fluid > [class*="span"] {
+ float: left;
+ margin-left: 2.762430939%;
+ }
+ .row-fluid > [class*="span"]:first-child {
+ margin-left: 0;
+ }
+ .row-fluid > .span1 {
+ width: 5.801104972%;
+ }
+ .row-fluid > .span2 {
+ width: 14.364640883%;
+ }
+ .row-fluid > .span3 {
+ width: 22.928176794%;
+ }
+ .row-fluid > .span4 {
+ width: 31.491712705%;
+ }
+ .row-fluid > .span5 {
+ width: 40.055248616%;
+ }
+ .row-fluid > .span6 {
+ width: 48.618784527%;
+ }
+ .row-fluid > .span7 {
+ width: 57.182320438000005%;
+ }
+ .row-fluid > .span8 {
+ width: 65.74585634900001%;
+ }
+ .row-fluid > .span9 {
+ width: 74.30939226%;
+ }
+ .row-fluid > .span10 {
+ width: 82.87292817100001%;
+ }
+ .row-fluid > .span11 {
+ width: 91.436464082%;
+ }
+ .row-fluid > .span12 {
+ width: 99.999999993%;
+ }
+ input.span1, textarea.span1, .uneditable-input.span1 {
+ width: 32px;
+ }
+ input.span2, textarea.span2, .uneditable-input.span2 {
+ width: 94px;
+ }
+ input.span3, textarea.span3, .uneditable-input.span3 {
+ width: 156px;
+ }
+ input.span4, textarea.span4, .uneditable-input.span4 {
+ width: 218px;
+ }
+ input.span5, textarea.span5, .uneditable-input.span5 {
+ width: 280px;
+ }
+ input.span6, textarea.span6, .uneditable-input.span6 {
+ width: 342px;
+ }
+ input.span7, textarea.span7, .uneditable-input.span7 {
+ width: 404px;
+ }
+ input.span8, textarea.span8, .uneditable-input.span8 {
+ width: 466px;
+ }
+ input.span9, textarea.span9, .uneditable-input.span9 {
+ width: 528px;
+ }
+ input.span10, textarea.span10, .uneditable-input.span10 {
+ width: 590px;
+ }
+ input.span11, textarea.span11, .uneditable-input.span11 {
+ width: 652px;
+ }
+ input.span12, textarea.span12, .uneditable-input.span12 {
+ width: 714px;
+ }
+}
+@media (max-width: 979px) {
+ body {
+ padding-top: 0;
+ }
+ .navbar-fixed-top {
+ position: static;
+ margin-bottom: 18px;
+ }
+ .navbar-fixed-top .navbar-inner {
+ padding: 5px;
+ }
+ .navbar .container {
+ width: auto;
+ padding: 0;
+ }
+ .navbar .brand {
+ padding-left: 10px;
+ padding-right: 10px;
+ margin: 0 0 0 -5px;
+ }
+ .navbar .nav-collapse {
+ clear: left;
+ }
+ .navbar .nav {
+ float: none;
+ margin: 0 0 9px;
+ }
+ .navbar .nav > li {
+ float: none;
+ }
+ .navbar .nav > li > a {
+ margin-bottom: 2px;
+ }
+ .navbar .nav > .divider-vertical {
+ display: none;
+ }
+ .navbar .nav .nav-header {
+ color: #999999;
+ text-shadow: none;
+ }
+ .navbar .nav > li > a, .navbar .dropdown-menu a {
+ padding: 6px 15px;
+ font-weight: bold;
+ color: #999999;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ }
+ .navbar .dropdown-menu li + li a {
+ margin-bottom: 2px;
+ }
+ .navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover {
+ background-color: #222222;
+ }
+ .navbar .dropdown-menu {
+ position: static;
+ top: auto;
+ left: auto;
+ float: none;
+ display: block;
+ max-width: none;
+ margin: 0 15px;
+ padding: 0;
+ background-color: transparent;
+ border: none;
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ border-radius: 0;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ }
+ .navbar .dropdown-menu:before, .navbar .dropdown-menu:after {
+ display: none;
+ }
+ .navbar .dropdown-menu .divider {
+ display: none;
+ }
+ .navbar-form, .navbar-search {
+ float: none;
+ padding: 9px 15px;
+ margin: 9px 0;
+ border-top: 1px solid #222222;
+ border-bottom: 1px solid #222222;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ }
+ .navbar .nav.pull-right {
+ float: none;
+ margin-left: 0;
+ }
+ .navbar-static .navbar-inner {
+ padding-left: 10px;
+ padding-right: 10px;
+ }
+ .btn-navbar {
+ display: block;
+ }
+ .nav-collapse {
+ overflow: hidden;
+ height: 0;
+ }
+}
+@media (min-width: 980px) {
+ .nav-collapse.collapse {
+ height: auto !important;
+ }
+}
+@media (min-width: 1200px) {
+ .row {
+ margin-left: -30px;
+ *zoom: 1;
+ }
+ .row:before, .row:after {
+ display: table;
+ content: "";
+ }
+ .row:after {
+ clear: both;
+ }
+ [class*="span"] {
+ float: left;
+ margin-left: 30px;
+ }
+ .span1 {
+ width: 70px;
+ }
+ .span2 {
+ width: 170px;
+ }
+ .span3 {
+ width: 270px;
+ }
+ .span4 {
+ width: 370px;
+ }
+ .span5 {
+ width: 470px;
+ }
+ .span6 {
+ width: 570px;
+ }
+ .span7 {
+ width: 670px;
+ }
+ .span8 {
+ width: 770px;
+ }
+ .span9 {
+ width: 870px;
+ }
+ .span10 {
+ width: 970px;
+ }
+ .span11 {
+ width: 1070px;
+ }
+ .span12, .container {
+ width: 1170px;
+ }
+ .offset1 {
+ margin-left: 130px;
+ }
+ .offset2 {
+ margin-left: 230px;
+ }
+ .offset3 {
+ margin-left: 330px;
+ }
+ .offset4 {
+ margin-left: 430px;
+ }
+ .offset5 {
+ margin-left: 530px;
+ }
+ .offset6 {
+ margin-left: 630px;
+ }
+ .offset7 {
+ margin-left: 730px;
+ }
+ .offset8 {
+ margin-left: 830px;
+ }
+ .offset9 {
+ margin-left: 930px;
+ }
+ .offset10 {
+ margin-left: 1030px;
+ }
+ .offset11 {
+ margin-left: 1130px;
+ }
+ .row-fluid {
+ width: 100%;
+ *zoom: 1;
+ }
+ .row-fluid:before, .row-fluid:after {
+ display: table;
+ content: "";
+ }
+ .row-fluid:after {
+ clear: both;
+ }
+ .row-fluid > [class*="span"] {
+ float: left;
+ margin-left: 2.564102564%;
+ }
+ .row-fluid > [class*="span"]:first-child {
+ margin-left: 0;
+ }
+ .row-fluid > .span1 {
+ width: 5.982905983%;
+ }
+ .row-fluid > .span2 {
+ width: 14.529914530000001%;
+ }
+ .row-fluid > .span3 {
+ width: 23.076923077%;
+ }
+ .row-fluid > .span4 {
+ width: 31.623931624%;
+ }
+ .row-fluid > .span5 {
+ width: 40.170940171000005%;
+ }
+ .row-fluid > .span6 {
+ width: 48.717948718%;
+ }
+ .row-fluid > .span7 {
+ width: 57.264957265%;
+ }
+ .row-fluid > .span8 {
+ width: 65.81196581200001%;
+ }
+ .row-fluid > .span9 {
+ width: 74.358974359%;
+ }
+ .row-fluid > .span10 {
+ width: 82.905982906%;
+ }
+ .row-fluid > .span11 {
+ width: 91.45299145300001%;
+ }
+ .row-fluid > .span12 {
+ width: 100%;
+ }
+ input.span1, textarea.span1, .uneditable-input.span1 {
+ width: 60px;
+ }
+ input.span2, textarea.span2, .uneditable-input.span2 {
+ width: 160px;
+ }
+ input.span3, textarea.span3, .uneditable-input.span3 {
+ width: 260px;
+ }
+ input.span4, textarea.span4, .uneditable-input.span4 {
+ width: 360px;
+ }
+ input.span5, textarea.span5, .uneditable-input.span5 {
+ width: 460px;
+ }
+ input.span6, textarea.span6, .uneditable-input.span6 {
+ width: 560px;
+ }
+ input.span7, textarea.span7, .uneditable-input.span7 {
+ width: 660px;
+ }
+ input.span8, textarea.span8, .uneditable-input.span8 {
+ width: 760px;
+ }
+ input.span9, textarea.span9, .uneditable-input.span9 {
+ width: 860px;
+ }
+ input.span10, textarea.span10, .uneditable-input.span10 {
+ width: 960px;
+ }
+ input.span11, textarea.span11, .uneditable-input.span11 {
+ width: 1060px;
+ }
+ input.span12, textarea.span12, .uneditable-input.span12 {
+ width: 1160px;
+ }
+ .thumbnails {
+ margin-left: -30px;
+ }
+ .thumbnails > li {
+ margin-left: 30px;
+ }
+}
View
581 static/coda/css/bootstrap-responsive.min.css
@@ -0,0 +1,581 @@
+/*!
+ * Bootstrap Responsive v2.0.1
+ *
+ * Copyright 2012 Twitter, Inc
+ * Licensed under the Apache License v2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
+ */
+.clearfix {
+ *zoom: 1;
+}
+.clearfix:before, .clearfix:after {
+ display: table;
+ content: "";
+}
+.clearfix:after {
+ clear: both;
+}
+.hidden {
+ display: none;
+ visibility: hidden;
+}
+@media (max-width: 480px) {
+ .nav-collapse {
+ -webkit-transform: translate3d(0, 0, 0);
+ }
+ .page-header h1 small {
+ display: block;
+ line-height: 18px;
+ }
+ input[class*="span"],
+ select[class*="span"],
+ textarea[class*="span"],
+ .uneditable-input {
+ display: block;
+ width: 100%;
+ min-height: 28px;
+ /* Make inputs at least the height of their button counterpart */
+
+ /* Makes inputs behave like true block-level elements */
+
+ -webkit-box-sizing: border-box;
+ /* Older Webkit */
+
+ -moz-box-sizing: border-box;
+ /* Older FF */
+
+ -ms-box-sizing: border-box;
+ /* IE8 */
+
+ box-sizing: border-box;
+ /* CSS3 spec*/
+
+ }
+ .input-prepend input[class*="span"], .input-append input[class*="span"] {
+ width: auto;
+ }
+ input[type="checkbox"], input[type="radio"] {
+ border: 1px solid #ccc;
+ }
+ .form-horizontal .control-group > label {
+ float: none;
+ width: auto;
+ padding-top: 0;
+ text-align: left;
+ }
+ .form-horizontal .controls {
+ margin-left: 0;
+ }
+ .form-horizontal .control-list {
+ padding-top: 0;
+ }
+ .form-horizontal .form-actions {
+ padding-left: 10px;
+ padding-right: 10px;
+ }
+ .modal {
+ position: absolute;
+ top: 10px;
+ left: 10px;
+ right: 10px;
+ width: auto;
+ margin: 0;
+ }
+ .modal.fade.in {
+ top: auto;
+ }
+ .modal-header .close {
+ padding: 10px;
+ margin: -10px;
+ }
+ .carousel-caption {
+ position: static;
+ }
+}
+@media (max-width: 767px) {
+ .container {
+ width: auto;
+ padding: 0 20px;
+ }
+ .row-fluid {
+ width: 100%;
+ }
+ .row {
+ margin-left: 0;
+ }
+ .row > [class*="span"], .row-fluid > [class*="span"] {
+ float: none;
+ display: block;
+ width: auto;
+ margin: 0;
+ }
+}
+@media (min-width: 768px) and (max-width: 979px) {
+ .row {
+ margin-left: -20px;
+ *zoom: 1;
+ }
+ .row:before, .row:after {
+ display: table;
+ content: "";
+ }
+ .row:after {
+ clear: both;
+ }
+ [class*="span"] {
+ float: left;
+ margin-left: 20px;
+ }
+ .span1 {
+ width: 42px;
+ }
+ .span2 {
+ width: 104px;
+ }
+ .span3 {
+ width: 166px;
+ }
+ .span4 {
+ width: 228px;
+ }
+ .span5 {
+ width: 290px;
+ }
+ .span6 {
+ width: 352px;
+ }
+ .span7 {
+ width: 414px;
+ }
+ .span8 {
+ width: 476px;
+ }
+ .span9 {
+ width: 538px;
+ }
+ .span10 {
+ width: 600px;
+ }
+ .span11 {
+ width: 662px;
+ }
+ .span12, .container {
+ width: 724px;
+ }
+ .offset1 {
+ margin-left: 82px;
+ }
+ .offset2 {
+ margin-left: 144px;
+ }
+ .offset3 {
+ margin-left: 206px;
+ }
+ .offset4 {
+ margin-left: 268px;
+ }
+ .offset5 {
+ margin-left: 330px;
+ }
+ .offset6 {
+ margin-left: 392px;
+ }
+ .offset7 {
+ margin-left: 454px;
+ }
+ .offset8 {
+ margin-left: 516px;
+ }
+ .offset9 {
+ margin-left: 578px;
+ }
+ .offset10 {
+ margin-left: 640px;
+ }
+ .offset11 {
+ margin-left: 702px;
+ }
+ .row-fluid {
+ width: 100%;
+ *zoom: 1;
+ }
+ .row-fluid:before, .row-fluid:after {
+ display: table;
+ content: "";
+ }
+ .row-fluid:after {
+ clear: both;
+ }
+ .row-fluid > [class*="span"] {
+ float: left;
+ margin-left: 2.762430939%;
+ }
+ .row-fluid > [class*="span"]:first-child {
+ margin-left: 0;
+ }
+ .row-fluid > .span1 {
+ width: 5.801104972%;
+ }
+ .row-fluid > .span2 {
+ width: 14.364640883%;
+ }
+ .row-fluid > .span3 {
+ width: 22.928176794%;
+ }
+ .row-fluid > .span4 {
+ width: 31.491712705%;
+ }
+ .row-fluid > .span5 {
+ width: 40.055248616%;
+ }
+ .row-fluid > .span6 {
+ width: 48.618784527%;
+ }
+ .row-fluid > .span7 {
+ width: 57.182320438000005%;
+ }
+ .row-fluid > .span8 {
+ width: 65.74585634900001%;
+ }
+ .row-fluid > .span9 {
+ width: 74.30939226%;
+ }
+ .row-fluid > .span10 {
+ width: 82.87292817100001%;
+ }
+ .row-fluid > .span11 {
+ width: 91.436464082%;
+ }
+ .row-fluid > .span12 {
+ width: 99.999999993%;
+ }
+ input.span1, textarea.span1, .uneditable-input.span1 {
+ width: 32px;
+ }
+ input.span2, textarea.span2, .uneditable-input.span2 {
+ width: 94px;
+ }
+ input.span3, textarea.span3, .uneditable-input.span3 {
+ width: 156px;
+ }
+ input.span4, textarea.span4, .uneditable-input.span4 {
+ width: 218px;
+ }
+ input.span5, textarea.span5, .uneditable-input.span5 {
+ width: 280px;
+ }
+ input.span6, textarea.span6, .uneditable-input.span6 {
+ width: 342px;
+ }
+ input.span7, textarea.span7, .uneditable-input.span7 {
+ width: 404px;
+ }
+ input.span8, textarea.span8, .uneditable-input.span8 {
+ width: 466px;
+ }
+ input.span9, textarea.span9, .uneditable-input.span9 {
+ width: 528px;
+ }
+ input.span10, textarea.span10, .uneditable-input.span10 {
+ width: 590px;
+ }
+ input.span11, textarea.span11, .uneditable-input.span11 {
+ width: 652px;
+ }
+ input.span12, textarea.span12, .uneditable-input.span12 {
+ width: 714px;
+ }
+}
+@media (max-width: 979px) {
+ body {
+ padding-top: 0;
+ }
+ .navbar-fixed-top {
+ position: static;
+ margin-bottom: 18px;
+ }
+ .navbar-fixed-top .navbar-inner {
+ padding: 5px;
+ }
+ .navbar .container {
+ width: auto;
+ padding: 0;
+ }
+ .navbar .brand {
+ padding-left: 10px;
+ padding-right: 10px;
+ margin: 0 0 0 -5px;
+ }
+ .navbar .nav-collapse {
+ clear: left;
+ }
+ .navbar .nav {
+ float: none;
+ margin: 0 0 9px;
+ }
+ .navbar .nav > li {
+ float: none;
+ }
+ .navbar .nav > li > a {
+ margin-bottom: 2px;
+ }
+ .navbar .nav > .divider-vertical {
+ display: none;
+ }
+ .navbar .nav .nav-header {
+ color: #999999;
+ text-shadow: none;
+ }
+ .navbar .nav > li > a, .navbar .dropdown-menu a {
+ padding: 6px 15px;
+ font-weight: bold;
+ color: #999999;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ }
+ .navbar .dropdown-menu li + li a {
+ margin-bottom: 2px;
+ }
+ .navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover {
+ background-color: #222222;
+ }
+ .navbar .dropdown-menu {
+ position: static;
+ top: auto;
+ left: auto;
+ float: none;
+ display: block;
+ max-width: none;
+ margin: 0 15px;
+ padding: 0;
+ background-color: transparent;
+ border: none;
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ border-radius: 0;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ }
+ .navbar .dropdown-menu:before, .navbar .dropdown-menu:after {
+ display: none;
+ }
+ .navbar .dropdown-menu .divider {
+ display: none;
+ }
+ .navbar-form, .navbar-search {
+ float: none;
+ padding: 9px 15px;
+ margin: 9px 0;
+ border-top: 1px solid #222222;
+ border-bottom: 1px solid #222222;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
+ }
+ .navbar .nav.pull-right {
+ float: none;
+ margin-left: 0;
+ }
+ .navbar-static .navbar-inner {
+ padding-left: 10px;
+ padding-right: 10px;
+ }
+ .btn-navbar {
+ display: block;
+ }
+ .nav-collapse {
+ overflow: hidden;
+ height: 0;
+ }
+}
+@media (min-width: 980px) {
+ .nav-collapse.collapse {
+ height: auto !important;
+ }
+}
+@media (min-width: 1200px) {
+ .row {
+ margin-left: -30px;
+ *zoom: 1;
+ }
+ .row:before, .row:after {
+ display: table;
+ content: "";
+ }
+ .row:after {
+ clear: both;
+ }
+ [class*="span"] {
+ float: left;
+ margin-left: 30px;
+ }
+ .span1 {
+ width: 70px;
+ }
+ .span2 {
+ width: 170px;
+ }
+ .span3 {
+ width: 270px;
+ }
+ .span4 {
+ width: 370px;
+ }
+ .span5 {
+ width: 470px;
+ }
+ .span6 {
+ width: 570px;
+ }
+ .span7 {
+ width: 670px;
+ }
+ .span8 {
+ width: 770px;
+ }
+ .span9 {
+ width: 870px;
+ }
+ .span10 {
+ width: 970px;
+ }
+ .span11 {
+ width: 1070px;
+ }
+ .span12, .container {
+ width: 1170px;
+ }
+ .offset1 {
+ margin-left: 130px;
+ }
+ .offset2 {
+ margin-left: 230px;
+ }
+ .offset3 {
+ margin-left: 330px;
+ }
+ .offset4 {
+ margin-left: 430px;
+ }
+ .offset5 {
+ margin-left: 530px;
+ }
+ .offset6 {
+ margin-left: 630px;
+ }
+ .offset7 {
+ margin-left: 730px;
+ }
+ .offset8 {
+ margin-left: 830px;
+ }
+ .offset9 {
+ margin-left: 930px;
+ }
+ .offset10 {
+ margin-left: 1030px;
+ }
+ .offset11 {
+ margin-left: 1130px;
+ }
+ .row-fluid {
+ width: 100%;
+ *zoom: 1;
+ }
+ .row-fluid:before, .row-fluid:after {
+ display: table;
+ content: "";
+ }
+ .row-fluid:after {
+ clear: both;
+ }
+ .row-fluid > [class*="span"] {
+ float: left;
+ margin-left: 2.564102564%;
+ }
+ .row-fluid > [class*="span"]:first-child {
+ margin-left: 0;
+ }
+ .row-fluid > .span1 {
+ width: 5.982905983%;
+ }
+ .row-fluid > .span2 {
+ width: 14.529914530000001%;
+ }
+ .row-fluid > .span3 {
+ width: 23.076923077%;
+ }
+ .row-fluid > .span4 {
+ width: 31.623931624%;
+ }
+ .row-fluid > .span5 {
+ width: 40.170940171000005%;
+ }
+ .row-fluid > .span6 {
+ width: 48.717948718%;
+ }
+ .row-fluid > .span7 {
+ width: 57.264957265%;
+ }
+ .row-fluid > .span8 {
+ width: 65.81196581200001%;
+ }
+ .row-fluid > .span9 {
+ width: 74.358974359%;
+ }
+ .row-fluid > .span10 {
+ width: 82.905982906%;
+ }
+ .row-fluid > .span11 {
+ width: 91.45299145300001%;
+ }
+ .row-fluid > .span12 {
+ width: 100%;
+ }
+ input.span1, textarea.span1, .uneditable-input.span1 {
+ width: 60px;
+ }
+ input.span2, textarea.span2, .uneditable-input.span2 {
+ width: 160px;
+ }
+ input.span3, textarea.span3, .uneditable-input.span3 {
+ width: 260px;
+ }
+ input.span4, textarea.span4, .uneditable-input.span4 {
+ width: 360px;
+ }
+ input.span5, textarea.span5, .uneditable-input.span5 {
+ width: 460px;
+ }
+ input.span6, textarea.span6, .uneditable-input.span6 {
+ width: 560px;
+ }
+ input.span7, textarea.span7, .uneditable-input.span7 {
+ width: 660px;
+ }
+ input.span8, textarea.span8, .uneditable-input.span8 {
+ width: 760px;
+ }
+ input.span9, textarea.span9, .uneditable-input.span9 {
+ width: 860px;
+ }
+ input.span10, textarea.span10, .uneditable-input.span10 {
+ width: 960px;
+ }
+ input.span11, textarea.span11, .uneditable-input.span11 {
+ width: 1060px;
+ }
+ input.span12, textarea.span12, .uneditable-input.span12 {
+ width: 1160px;
+ }
+ .thumbnails {
+ margin-left: -30px;
+ }
+ .thumbnails > li {
+ margin-left: 30px;
+ }
+}
View
3,506 static/coda/css/bootstrap.css
3,506 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
3,506 static/coda/css/bootstrap.min.css
3,506 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
748 static/coda/css/custom.css
@@ -0,0 +1,748 @@
+.container-fluid {
+ /* so that scroll bar for content area goes all the way to the right */
+ padding-right: 0px;
+}
+
+.pointer {
+ cursor: pointer;
+}
+
+#search-box {
+ width: 87%;
+ margin: 0px 10px 5px 10px;
+ -webkit-border-radius: 20px;
+ padding: 4px 5px 2px 8px;
+}
+
+#
+-results > div {
+ width: 97%;
+}
+
+div#about table tr td.logo {
+ width: 150px;
+}
+
+div#about table tr td.desc {
+ vertical-align: middle;
+}
+
+p.source-link {
+ border-width: 1px;
+ border-color: #888;
+ border-style: solid;
+ background-color: #FFC;
+ padding: 6px;
+ border-radius: 3px;
+}
+
+td.logo {
+ padding: 10px 5px;
+ vertical-align: top;
+}
+
+/* ky's eyes have trouble scanning left to right */
+#search-results > div {
+/* max-width: 700px; */
+}
+
+
+/* From MDN site (needed to make HTML element attributes section look the same) */
+
+.pageText code, .pageText tt {
+ font: 100% "Courier New", "Andale Mono", monospace;
+ font-weight: inherit;
+ background-color: transparent;
+}
+
+.pageText code a {
+ color: #333;
+}
+
+.pageText dd {
+ margin: 0 0 .5em 22px;
+ margin-bottom: .5em;
+ padding-left: 15px;
+}
+
+div.note {
+ margin-bottom: 1.286em;
+ border: solid #DDDAAA;
+ padding: .75em 15px;
+ background: #FAF9E2;
+ color: #5D5636;
+ border-width: 1px 0;
+}
+
+div#toc-well {
+ overflow-y: hidden;
+}
+
+div#search-results {
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+
+html {
+ overflow-y: auto;
+}
+
+#secondary-nav iframe {
+ margin-top: 10px;
+}
+
+div#about {
+ display: none;
+}
+
+/* Taken from jquery.com style.css */
+
+.entry-content .entry-title{
+ padding: 5px 10px 5px 10px;
+ background: #fafafa;
+ border-right: 1px solid #aaa;
+ border-left: 1px solid #aaa;
+ border-top: 1px solid #aaa;
+}
+.toc{
+ padding-left: 20px;
+ background: #fafafa;
+ border: 1px solid #aaa;
+/* margin: -26px 0 0 0;*/
+ padding-top: 10px;
+}
+.jq-primaryContent .toc ul {
+ list-style: none;
+}
+.jq-primaryContent .toc h4 {
+ font-size:1.45em;
+ margin: 0;
+ padding: 0 0 6px;
+ font-weight: normal;
+ border: none;
+ /* margin-top: -32px; */
+}
+.jq-primaryContent .b-wrap .toc h4 {
+ margin-top: 0;
+}
+.jq-primaryContent .toc h4 span {
+ /* background: #fff; */
+}
+.toc ul.toc-list {
+ margin-left: 0;
+}
+.toc ul.toc-list li a{
+ line-height: 1.1;
+ background: url(images/down-arrow.png) no-repeat 0px 5px;
+ padding: 0 0 0 13px;
+}
+.toc ul.toc-list ul li a{
+ background: url(images/down-arrow.png) no-repeat 0px 3px;
+}
+
+.jq-primaryContent p{
+ font-size: 1em;
+ margin: .5em 0;
+ color: #222;
+}
+
+.jq-primaryContent p.image {
+ margin: 1em 1.61803399em; /*Thanks fibinocci!*/
+ padding: 2em 0;
+ text-align: center;
+ background: #fff;
+ border: 2px solid #E2E1D5;
+}
+.jq-primaryContent p.image img {
+ vertical-align: top;
+}
+.jq-primaryContent .four-across img {
+ width: 120px;
+}
+
+.jq-primaryContent .toc ul.toc-list a{
+ font-size: 1em;
+ color: #444444;
+ text-decoration: none;
+}
+.jq-primaryContent .toc ul.toc-list a span.desc{
+ font-size: .8em;
+ font-style: italic;
+}
+.jq-primaryContent .toc ul.toc-list li ul li a{
+ font-size: 1em;
+}
+
+.toc ul.toc-list ul{
+ margin-left: 2em;
+}
+.jq-primaryContent .toc ul.toc-list ul li{
+ font-size: .9em;
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+
+.entry .longdesc,
+.entry .download{
+ padding: 0 20px
+}
+
+table.listing,
+table.listing {
+ border: 1px solid #ccc;
+ border-width: 1px 0 0 1px;
+}
+
+table.listing th,
+table.listing td {
+ border: 1px solid #ccc;
+ border-width: 0 1px 1px 0;
+}
+.entry h2 span.desc{
+ text-transform: none;
+ font-size: .9em;
+ font-style: italic;
+ font-weight: normal;
+}
+/*.jq-primaryContent .entry h2{
+ background: #777;
+ color: #fff;
+ padding: 6px;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ margin: 2em 0 0 0;
+ font-size: 1.1em;
+}*/
+.jq-primaryContent .section-title{
+ border: none;
+ background: #0D5995;
+ color: #fff;
+ padding: 6px 20px;
+ margin: 1em 0 0 0;
+ font-size: 1.1em;
+ border-radius: 5px;
+}
+#jq-interiorNavigation .section-title{
+ border: none;
+ background: #0D5995;
+ color: #fff;
+ padding: 6px 20px;
+ font-size: 1em;
+ margin: 0;
+}
+#jq-interiorNavigation .roundBottom{
+ margin: 0 0 1em 0;
+}
+.jq-primaryContent h1.section-title{
+ font-size:2em
+}
+.jq-primaryContent .section-title a {
+ color: #fff;
+ text-decoration: underline;
+}
+.jq-primaryContent .entry h3{
+ margin: 0.5em 0 0 0;
+}
+#jq-interiorNavigation ul li ul.children{
+ margin-left: 15px;
+}
+#jq-interiorNavigation span.plus {
+ display: block;
+ float: left;
+ width: 15px;
+ text-align: center;
+ margin-left: -10px;
+}
+#jq-interiorNavigation #categories a:focus {
+ outline: none
+}
+code{
+ background-color: #eee;
+ padding: 2px 0px;
+ margin: 5px;
+}
+.jq-primaryContent pre code{
+ background: none;
+ font-size: 1em;
+}
+.jq-primaryContent h1 {
+ font-size: 3.2em ;
+ margin: 0;
+ padding: 0 10px .1em 10px;
+}
+#jq-interiorNavigation h1 {
+ font-size: 2em ;
+ margin: 0 0 6px 0;
+ padding: 0 0 0px 0;
+ border-bottom: 1px solid #BBBBBB;
+
+}
+
+.jq-primaryContent h1.category-title {
+ -webkit-border-radius-topleft: 4px;
+ -webkit-border-radius-topright: 4px;
+ -moz-border-radius-topleft: 4px;
+ -moz-border-radius-topright: 4px;
+ border-radius-topleft: 4px;
+ border-radius-topright: 4px;
+ background:#bbb;
+ border-bottom: 1px solid #666;
+ color:#333;
+ left:-16px;
+ padding-left:15px;
+ padding-right:15px;
+ position:relative;
+ top:-6px;
+ width:591px;
+}
+.jq-primaryContent #method-list li a.title-link,
+.jq-primaryContent .method-list li a.title-link {
+ padding: 0px;
+}
+ul.plugin-name-list {
+ padding: 1em 10px;
+ font-size: 1.1em;
+ font-weight: bold;
+}
+
+/*
+.jq-primaryContent #method-list li a.title-link:hover {
+ background: #ddd;
+}
+*/
+
+.jq-primaryContent h2.plugin-header {
+ margin: -5px -10px;
+ padding: .2em 1em;
+ color: #0d5995;
+ font-size: 2.2em;
+ font-style: italic;
+}
+.jq-primaryContent #method-list li,
+.jq-primaryContent .method-list li {
+ padding: 10px;
+ border-bottom: 1px solid #EEEEEE;
+}
+.jq-primaryContent #method-list li li,
+.jq-primaryContent .method-list li li {
+ border-bottom: none;
+}
+li.withfocus{
+ background: none !important;
+ -webkit-border-radius: 3px;
+ -moz-border-radius: 3px;
+ border-radius: 3px;
+ border-color: #fff !important;
+ -webkit-box-shadow: 0px 0px 6px #6fa1d9;
+ -moz-box-shadow: 0px 0px 6px #6fa1d9;
+ box-shadow: 0px 0px 6px #6fa1d9;
+}
+li.withoutfocus{background: none}
+.jq-primaryContent #method-list li h2,
+.jq-primaryContent .method-list li h2 {
+display: inline;
+margin: 0
+}
+
+.jq-primaryContent li span.entry-meta {
+ background:#EEEEEE none repeat scroll 0 0;
+ float:right;
+ font-size:1em;
+ margin:-27px -4px 0 0;
+ padding:4px;
+}
+
+
+.jq-primaryContent #method-list li p,
+.jq-primaryContent .method-list li p{
+padding: 0;
+margin: 0;
+font-size: 1em;
+clear: both;
+font-style: italic;
+}
+
+.banner {
+ float: left;
+ width: 50%;
+ text-align: left;
+ color: #900;
+ font-weight: bold;
+ font-size: 1.1em;
+}
+.entry-details .beta,
+.method-list .beta {
+ margin-right: 4px;
+ padding: 1px 3px;
+ color: #fff;
+ background-color: #900;
+}
+.beta[title] {
+ cursor: help;
+}
+
+.jq-primaryContent div.entry-meta{
+ text-align: right;
+ margin: 5px;
+ font-size: 1em;
+}
+
+#jq-interiorNavigation h2 a, #jq-interiorNavigation h2 a:hover{
+ background: transparent;
+ border: none;
+ color: #fff;
+ padding: 0px;
+ font-size: inherit;
+ line-height: inherit
+}
+.jq-primaryContent h2 a.title-link {
+ display: block
+}
+
+.jq-primaryContent .entry-details p.desc strong{
+ color: #333
+}
+.jq-primaryContent .entry-details p.desc{
+ color:#777;
+ font-family:"myriad pro", "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
+ font-size:17px;
+ font-style:italic;
+}
+.jq-primaryContent span.returns{
+ font-style: italic;
+ float: right
+}
+.jq-primaryContent span.returns a{
+ color: #fff;
+}
+
+.jq-primaryContent h4.name {
+ font-size: 1.2em;
+ border-bottom: 1px solid #b1b1b1;
+ padding: 0 0 2px 0;
+}
+.jq-primaryContent ol {
+ list-style-type: decimal;
+ padding-left: 2em;
+ font-size: 1em;
+}
+
+.jq-primaryContent ul.signatures {
+ margin: 1em 19px 1.1em 19px;
+ background: #eee;
+ padding: 10px;
+ list-style: none;
+}
+
+.jq-primaryContent ul.signatures p.arguement strong {
+ margin-right: 5px
+}
+
+.jq-primaryContent h5 {
+ font-size: 1em;
+ line-height: 1;
+ margin: 0;
+}
+.jq-primaryContent div.longdesc {
+ margin: 0 0 2em 0;
+}
+.jq-primaryContent div.longdesc p{
+ font-size: 1em;
+ line-height: 1.4em;
+ margin: 1em 0;
+ padding: 0 1px;
+}
+
+.jq-primaryContent div.longdesc ul {
+/* margin: 0 2em;*/
+font-size: 1em;
+padding-left: 1.1em;
+list-style: disc outside none;
+}
+.jq-primaryContent div.longdesc ul li {
+ font-size: 1em;
+}
+.jq-primaryContent div.longdesc h4 {
+ color:#555;
+ font-size:1.8em;
+ font-style:italic;
+ font-weight:normal;
+ margin:1.1em 0 0;
+ line-height: 1em;
+}
+.jq-primaryContent div.longdesc h4 a.stub {
+ font-size: .8em;
+ padding-right: .4em;
+ text-decoration: none;
+}
+.jq-primaryContent div.entry-examples h4{
+ color:#555;
+ font-size:1.4em;
+ font-style:italic;
+ font-weight:normal;
+ margin:.2em 0;
+ line-height: 18px;
+}
+.jq-primaryContent div.entry-examples h4 span.desc{
+ font-size: .75em;
+}
+
+.jq-primaryContent div.entry-examples pre {
+margin-bottom: 1em
+}
+.jq-primaryContent div.entry-examples .demo{
+ margin-bottom: 2em;
+}
+
+.jq-primaryContent li.signature {
+ margin: 0 0 1.1em 0;
+}
+
+.jq-primaryContent .signatures h4 {
+ margin: .2em 0 0 0;
+}
+.jq-primaryContent .argument h4 {
+ font-size: 1.1em;
+ margin: 2em 0 0 0;
+}
+.jq-primaryContent .signature ol{
+ color: #808080
+}
+.signatures dt {
+ font-weight: bold;
+ float: left;
+ padding-right: .5em;
+}
+.jq-primaryContent .signature ol.arguments li.argument h4, .jq-primaryContent .signature ol.arguments li.argument p{
+ display: inline;
+}
+ul.categories{
+ margin: 0 0 4em 0;
+}
+
+#jq-content pre {
+ padding: 10px;
+ overflow-x: auto;
+ background-color: #fbf9ea;
+ border: 1px solid #e2e1d5;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ margin: 0px
+}
+
+.demo {
+ padding: 5px;
+ background-color: #e3e4e5;
+ border: 1px solid #e2e1d5;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+}
+
+
+#access{display: none;}
+
+.versionAdded {
+ float: right;
+ font-size: .8em;
+}
+
+span.output {
+ color: #090;
+ font-weight: bold;
+}
+#jq-content blockquote {
+ margin: 1em 1.1em;
+ padding: 5px;
+ border: 1px solid #e2e1d5;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+}
+.entry .download {
+ margin: 1em 19px;
+ border: 1px solid #e2e1d5;
+ -webkit-border-radius: 2px;
+ -moz-border-radius: 2px;
+ border-radius: 2px;
+ font-size: 1.1em;
+}
+.entry .download a {
+ white-space: nowrap;
+}
+#jq-content table {
+ font-size: 1.1em;
+ margin-bottom: 1em;
+}
+#jq-content th {
+ text-align: left;
+}
+#jq-content th,
+#jq-content td {
+ padding: 3px 6px;
+}
+.jq-primaryContent abbr {
+ cursor: help;
+ border-bottom: 1px dotted #999;
+}
+.jq-primaryContent .options {
+ padding: 4px 0 0 10px;
+}
+.jq-primaryContent .options h5 {
+ font-size: 1.1em;
+ color: #222;
+ border-top: 1px solid #ddd;
+ padding-top: 10px;
+ margin-top: 10px;
+}
+.jq-primaryContent .default-value strong {
+ color: #666;
+}
+.jq-primaryContent .options h5 span {
+ color: #666;
+ font-size: 0.8em;
+ margin-left: 3px;
+}
+.jq-primaryContent .options h5 span.type {
+ float: right;
+}
+.jq-primaryContent .options p {
+ font-size: 1.1em;
+}
+
+.jq-primaryContent .dsq-comment-message pre,
+.jq-primaryContent .dsq-comment-message pre code {
+ font-size: 1em;
+}
+#rpt-issue fieldset {
+ margin-top: 1em;
+}
+#rpt-issue label,
+#rpt-issue input {
+ display: block;
+ width: 225px;
+}
+#rpt-issue textarea {
+ display: block;
+ width: 400px;
+ height: 140px;
+}
+#rpt-issue div {
+ font-size: 1em;
+ line-height: 1.1em;
+ margin-bottom: 1.1em;
+}
+#rpt-issue .error {
+ color: #900;
+}
+#rpt-issue .error label {
+ font-weight: bold;
+}
+.jq-primaryContent .error-summary {
+ margin-top: 20px;
+ padding: .5em;
+ font-weight: bold;
+ color: #900;
+ background-color: #ffe3e3;
+ border: 1px solid #900;
+}
+
+.jq-primaryContent .success-summary {
+ margin-top: 20px;
+ padding: .5em;
+ color: #070;
+ background-color: #e3ffe3;
+ border: 1px solid #070;
+}
+
+#disqus_thread {
+margin-bottom:32px !important;
+}
+#jq-interiorNavigation .sideBarFeature a:hover, #jq-interiorNavigation .sideBarFeature a{
+ background: transparent;
+ padding: 0 0 0 0;
+}
+.sideBarFeature{
+ margin:0 10px;
+ padding: 2px 5px 5px 0px;
+}
+.sideBarFeature a{
+ padding: 0px 29px 5px 0px !important;
+}
+
+.sideBarFeature strong{
+ background: #fff;
+ position:relative;
+ top: -2px;
+}
+
+
+/* PHP */
+div.phpcode {
+ background-color: #CCC;
+ border-width: 1px;
+ border-style: solid;
+ padding: 6px;
+ font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", Monaco, "Courier New", Courier, monospace;
+ font-size: 14px;
+}
+
+div.phpcode code {
+ background-color: #CCC;
+}
+
+/* Taken from w3.org/TR/xslt W3C-REC.css */
+
+div.w3 {
+ font-family: sans-serif;
+}
+
+div.w3 p {
+ font-size: 14px;
+}
+
+div.w3 code {
+ font-family: monospace;
+ font-size: 14px;
+ background-color: transparent;
+ margin: 0;
+ padding: 0;
+ color: black;
+}
+
+div.w3 code pre {
+ font-size: 14px;
+}
+
+div.w3 p.element-syntax {
+ border: solid thin;
+}
+
+div.w3 pre {
+ margin-top: 13px;
+ margin-bottom: 13px;
+ margin-left: 2em;
+ background-color: transparent;
+}
+
+div.w3 strong, b {
+ font-size: 14px;
+}
+
+div.w3 blockquote {
+ font-size: 14px;
+ line-height: 18px;
+ border: 0;
+}
+
+div.w3 li {
+ color: black;
+}
+
+/* mdn compatibility tables */
+.htab { display: none; }
+table.compat-table { border: 1px solid #bbb; border-collapse: collapse;}
+table.compat-table td { padding: 5px; border: 1px solid #ccc; text-align: left; background: #fff; vertical-align: top; word-wrap: break-word; }
+table.compat-table td.header, table.compat-table th { border: 1px solid #bbb; padding: 0 5px; background: #eee; text-align: left; font-weight: bold; }
View
219 static/coda/index.html
@@ -0,0 +1,219 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta charset="utf-8">
+ <meta name="description" content="css,docs,instant,search">
+ <meta name="author" content="Rafael Garcia">
+
+ <!-- Work with Google ChromeFrame -->
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+
+ <title>DocHub | Instant Documentation Search</title>
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <!-- styles -->
+ <link href="css/bootstrap.min.css" rel="stylesheet">
+ <style type="text/css">
+ body {
+ padding-top: 0px;
+ padding-bottom: 0px;
+ padding-left: 0;
+ margin-left: 0;
+ min-width: 780px;
+ overflow-x: scroll;
+ }
+ .sidebar-nav {
+ padding: 9px 0;
+ margin: 0 0 0 -20px;
+ }
+ </style>
+<!-- <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> -->
+ <link href="css/custom.css" rel="stylesheet">
+
+ <!-- javascript -->
+ <script data-main="js/main" src="js/libs/require/require.js"></script>
+
+ <script type="text/javascript">
+ var _usrp = {
+ type: "inline",
+ company: "instacss",
+ host: "instacss.userrules.com",
+ mode: "advanced",
+ sso: {},
+ getVisitorId: function() {return "";},
+ getAdditionalParams: function() {return "";}
+ };
+
+ (function(D) {
+ var _usr = D.createElement("script"), s = D.getElementsByTagName("script")[0];
+ _usr.type = "text/javascript"; _usr.async = true;
+ _usr.src = ("https:" == D.location.protocol ? "https" : "http" ) + "://dtkm4pd19nw6z.cloudfront.net/js/userrules/9a41a826e957127b4e5bfc7d140e45c4/feedback.canary.js";
+ s.parentNode.insertBefore(_usr, s);
+ })(document);
+ </script>
+ </head>
+
+ <body>
+ <div class="navbar navbar-fixed-top">
+ </div>
+ <div id="container" class="container-fluid">
+ <div id='about' class='about'>
+ <table>
+ <tbody>
+ <tr>
+ <td class="logo">
+ <a target="_blank" href="https://developer.mozilla.org/"><img src="images/mdn_logo.png"/></a>
+ </td>
+ <td class="desc">
+ CSS/HTML/JavaScript/DOM data is from the <a target="_blank" href="https://developer.mozilla.org">Mozilla Developer Network</a>.
+ </td>
+ </tr>
+ <tr>
+ <td class="logo">
+ <a target="_blank" href="http://www.jquery.com/"><img src="images/jquery_logo.png" height="36" width="150" /></a>
+ </td>
+ <td class="desc">
+ jQuery data is from <a target="_blank" href="http://api.jquery.com">http://api.jquery.com</a>. Version is 1.7.
+ </td>
+ </tr>
+ <tr>
+ <td class="logo">
+ <a target="_blank" href="http://www.php.net/"><img src="images/php_logo.png" height="79" width="150" /></a>
+ </td>
+ <td stle="vertical-align: top;">
+ PHP data is from <a target="_blank" href="http://www.php.net/manual/en/extensions.alphabetical.php">http://www.php.net/manual/en/extensions.alphabetical.php</a>.
+ <p>Currently supported PHP extensions:</p>
+ <p>
+ <ul>
+ <li>Apache</li>
+ <li>Arrays</li>
+ <li>Bzip2</li>
+ <li>Calendar</li>
+ <li>Classkit</li>
+ <li>Class/Objects</li>
+ <li>COM</li>
+ <li>cURL</li>
+ <li>Date/Time</li>
+ <li>DBA</li>
+ <li>DB++</li>
+ <li>Direct IO</li>
+ <li>Directories</li>
+ <li>DOM</li>
+ <li>.NET</li>
+ <li>Eio</li>
+ <li>Error Handling</li>
+ <li>Program execution</li>
+ <li>Filesystem</li>
+ <li>FTP</li>
+ <li>Function Handling</li>
+ <li>Gearman</li>
+ <li>GeoIP</li>
+ <li>Hash</li>
+ <li>HTTP</li>
+ <li>ID3</li>
+ <li>IIS</li>
+ <li>IMAP</li>
+ <li>Ingres</li>
+ <li>Java</li>
+ <li>JSON</li>
+ <li>LDAP</li>
+ <li>Libevent</li>
+ <li>libxml</li>
+ <li>Mail</li>
+ <li>Math</li>
+ <li>Mailparse</li>
+ <li>Memcache</li>
+ <li>Memcached</li>
+ <li>Mongo</li>
+ <li>MySQL</li>
+ <li>MySQLi</li>
+ <li>OAuth</li>
+ <li>OpenSSL</li>
+ <li>Output Control</li>
+ <li>PostgreSQL</li>
+ <li>POSIX</li>
+ <li>Readline</li>
+ <li>SimpleXML</li>
+ <li>SQLite</li>
+ <li>SQLite3</li>
+ <li>SQLSRV</li>
+ <li>SSH2</li>
+ <li>Streams</li>
+ <li>Strings</li>
+ <li>SWF</li>
+ <li>Sybase</li>
+ <li>ODBC</li>
+ <li>URLs</li>
+ <li>Variable handling</li>
+ <li>WinCache</li>
+ <li>XML-RPC</li>
+ <li>XSL</li>
+ <li>Yaml</li>
+ <li>Zip</li>
+ <li>Zlib</li>
+ </ul>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td class="logo">
+ <a target="_blank" href="http://www.python.org/"><img src="images/python_logo.gif" height="71" width="211" /></a>
+ </td>
+ <td class="desc">
+ Python data is from <a target="_blank" href="http://docs.python.org/library/">http://docs.python.org/library/</a>. Version is 2.7.
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="row-fluid">
+ <div class="span3" style="max-width: 300px">
+ <div class="well sidebar-nav" id="toc">
+ <div id="search-header">
+ <input class="input focused" id="search-box" name="search" type="text" autocomplete="off">
+ </div>
+ <ul class="nav nav-list" id="toc-results" style="overflow-y: scroll">
+ </ul>
+ </div>
+ </div>
+ <div id="search-results" class="span9"></div>
+ </div>
+ </div>
+ <div id='footer'></div>
+
+
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1657701-3']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
+
+ <!-- Prompt IE users to install Chrome Frame. Remove this if you want to support IE 6.
+ chromium.org/developers/how-tos/chrome-frame-getting-started -->
+ <!--[if gte IE 0 ]>
+ <script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
+ <script defer>window.attachEvent('onload',
+ function() {
+ CFInstall.check({
+ mode: 'overlay',
+ cssText: 'margin-top: 400px;'
+ })
+ })
+ </script>
+ <![endif]-->
+ </body>
+
+</html>
View
40 static/coda/js/views/fullwindow.js
@@ -0,0 +1,40 @@
+define([
+ 'jQuery',
+ 'Underscore',
+ 'Backbone'
+], function($, _, BackBone) {
+
+ // handles events on the entire window
+
+ var FullWindowView = BackBone.View.extend({
+
+ initialize: function() {
+ _.bindAll(this, 'onResize');
+ $(window).resize(this.onResize);
+ this.$tocWell = $('#toc');
+ this.$tocResultsDiv = $('#toc-results');
+ this.$searchResults = $('#search-results');
+ this.$container = $('#container');
+ this.onResize();
+ },
+
+ onResize: function() {
+ // make sure the TOC div reaches the bottom of the screen
+ var windowHeight = $(window).height();
+/* this.$tocWell.height(windowHeight - 100); */
+ this.$tocWell.height(windowHeight - 20);
+
+ // Adjust the -196 magic # to account for the heights of new objects
+ // put in the tocbar. For example, if a new thing occupies +24px height
+ // in the toc bar, make the magic number -(196 + 24) = -220.
+/* this.$tocResultsDiv.height(windowHeight - 125); */
+ this.$tocResultsDiv.height(windowHeight - 42);
+
+/* this.$searchResults.height(windowHeight - 80); */
+ this.$searchResults.height(windowHeight - 0);
+ this.$container.height(Math.max($('#toc').height(), this.$searchResults.height()));
+ },
+ });
+
+ return FullWindowView;
+});
View
7 static/coda/templates/toc.html
@@ -0,0 +1,7 @@
+<div id="toc-well" class="well" style="overflow-y: hidden;">
+ <div id="search-header" class="search-header"></div>
+ <div id="toc-results-div" style="overflow-y: auto; margin-right: -19px;">
+ <ul id="toc-results" style="margin:0px; ">
+ </ul>
+ </div>
+</div>

0 comments on commit 491ea50

Please sign in to comment.