Skip to content

Commit

Permalink
jsonp silly
Browse files Browse the repository at this point in the history
  • Loading branch information
tristen committed May 8, 2012
1 parent ca9b494 commit d307175
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_site
49 changes: 29 additions & 20 deletions _includes/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -394,31 +394,40 @@ ul#toc {
* Pretty syntax highlighting
* SPAN elements with the classes below are added by prettyprint.
* ------------------------------------------------------- */
.pln { color: #000 } /* plain text */
.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #D14; }
.kwd, .linenums .tag { color: #1e347b; }
.typ, .atn, .dec, .var { color: teal; }
.pln { color: #48484c; }

.str { color: #080 } /* string content */
.kwd { color: #008 } /* a keyword */
.com { color: #998 } /* a comment */
.typ { color: #606 } /* a type name */
.lit { color: #066 } /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun, .opn, .clo { color: #660 }
.tag { color: #008 } /* a markup tag name */
.atn { color: #606 } /* a markup attribute name */
.atv { color: #080 } /* a markup attribute value */
.dec, .var { color: #606 } /* a declaration; a variable name */
.fun { color: red } /* a function name */
pre {
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
padding: 8px;
margin: 20px 0;
background-color: #fff;
border: 1px solid #ddd;
}
.prettyprint.linenums {
-moz-box-shadow:
inset 40px 0 0 #ececec,
inset 41px 0 0 #dedede;
box-shadow:
inset 40px 0 0 #ececec,
inset 41px 0 0 #dedede;
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
list-style-type: decimal;
margin-top: 0;
margin-bottom: 0;
list-style-position: inside;
color: #AAA;
}
margin: 0 0 0 33px; /* IE indents via margin-left */
list-style: decimal;
}
ol.linenums li {
display: list-item;
padding-left: 12px;
color: #bebec5;
line-height: 18px;
}

/* -------------------------------------------------------
Expand Down
10 changes: 4 additions & 6 deletions _includes/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,11 @@
var tSnippets = _.template($('#snippets').html());
var tToc = _.template($('#directory-listing').html());

$.ajax({
url: request,
dataType: 'json',
success: function(data) {

$.getJSON(request + '?callback=?', function(resp) {

var f = {};
_.each(data.files, function(files) {
_.each(resp.data.files, function(files) {

// Build a new object out of results
f.name = files.filename;
Expand All @@ -147,7 +146,6 @@

// Animate scrolling down the document when toc links are clicked.
$('#toc').find('a').on('click', that.animateScrolling);
}
});
},

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<script type='text/template' id='examples'>
<li>
<a href='{{site.baseurl}}/<%= url %>' class='post'>
<a href='{{site.baseurl}}<%= url %>' class='post'>
<h4 class='<%= category %> title'><%= title %></h4>
<em class='description'><%= description %></em>
<small class='tags'><%= tags %></small>
Expand Down

0 comments on commit d307175

Please sign in to comment.