Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs page is done, community page is doneish, starting on tutorial
- Loading branch information
Techwraith
committed
Oct 7, 2012
1 parent
cf954d3
commit 6c37227
Showing
10 changed files
with
188 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Sun, 07 Oct 2012 03:09:29 GMT] ERROR Worker 83775 died. | ||
[Sun, 07 Oct 2012 03:14:16 GMT] ERROR Worker 83904 died. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
var app = {} | ||
// set up some state | ||
app.init = function () { | ||
app.state = {}; | ||
app.state.location = window.location; | ||
app.state.page = app.state.location.pathname.replace('/',''); | ||
}; | ||
|
||
app.docs = new (function() { | ||
|
||
this.init = function() { | ||
this.$toc = $('.toc'); | ||
this.$content = $('content .span8'); | ||
this.giveSubIDs(); | ||
this.registerScroll(); | ||
this.registerMenu(); | ||
}; | ||
|
||
// register the collapsible menu | ||
this.registerMenu = function() { | ||
var self = this; | ||
this.$toc.find('ul > li').click(function(e) { | ||
var $el = $(this); | ||
self.$toc.find('.selected').removeClass('selected'); | ||
$el.find('ul').addClass('selected'); | ||
$el.find('a:first').addClass('selected'); | ||
}); | ||
}; | ||
|
||
// register the scrolling menu | ||
this.registerScroll = function() { | ||
var self = this; | ||
$(window).scroll(function(e) { | ||
var newTop = $(this).scrollTop(); | ||
if (newTop > 462) { | ||
self.$toc.offset({top: newTop + 20}); | ||
} else { | ||
self.$toc.css({'top': 0, 'position': 'static'}); | ||
} | ||
}); | ||
}; | ||
|
||
// make internal anchor links work for sub menu items | ||
this.giveSubIDs = function() { | ||
var section; | ||
$('.content .span8').children('h3, h4').each(function (i, el) { | ||
var $el = $(el); | ||
if (el.nodeName == "H3") { | ||
section = $el.attr('id'); | ||
} else { | ||
$el.attr('id', section + $el.text()); | ||
} | ||
}); | ||
}; | ||
|
||
})(); | ||
|
||
// wait for document to load | ||
// then init this page | ||
$(document).ready(function () { | ||
if (app.state.page == 'documentation' || app.state.page == 'tutorial') { | ||
app.docs.init(); | ||
} | ||
}); | ||
|
||
// Start shit up | ||
app.init(); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### Introduction | ||
|
||
This is an intro paragraph, it's only here to see what this will look like. | ||
|
||
#### this is a sub heading | ||
|
||
heres some more text |