Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,405 changes: 1,405 additions & 0 deletions _landing-page-static/css/docs-main.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _landing-page-static/css/github.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions _landing-page-static/images/icon-dropdown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions _landing-page-static/images/icon-lang-nodejs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _landing-page-static/images/lang-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions _landing-page-static/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions _landing-page-static/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
$('.nav-current').click(function(){
$('.main-nav').toggleClass('open');
});

$('.faq-btn').click(function(){
$(this).toggleClass('open');
});

$('.headerlink').parent().each(function() {
$(this).hover(
function() { $(this).children('.headerlink').show(); },
function() { $(this).children('.headerlink').hide(); }
);
});

$('.side-nav').children('ul:nth-child(2)').children().each(function() {
var itemName = $(this).text();
if (itemName !== 'Datastore' && itemName !== 'Storage') {
$(this).css('padding-left','2em');
}
});

var apiQsSection;
// don't even ask me why
if ($('#cloud-datastore-in-10-seconds').length)
apiQsSection = $('#cloud-datastore-in-10-seconds');
else if ($('#cloud-storage-in-10-seconds').length)
apiQsSection = $('#cloud-storage-in-10-seconds');

if(apiQsSection) {
var apiQsSubSections = apiQsSection.children('div');
var showToggle = $('<span></span>')
.text('▹')
.addClass('toggle');
var hideToggle = $('<span></span>')
.text('▿')
.addClass('toggle')
.hide();
showToggle.click(function() {
showToggle.hide();
hideToggle.show();
apiQsSubSections.each(function() {
$(this).show();
})
});
hideToggle.click(function() {
hideToggle.hide();
showToggle.show();
apiQsSubSections.each(function() {
$(this).hide();
})
});
var toggler = $('<div></div>')
.addClass('toggler')
.append(showToggle)
.append(hideToggle);

apiQsSubSections.each(function() {
$(this).hide();
});
$(apiQsSection).children('h2').first().prepend(toggler);
}
24 changes: 24 additions & 0 deletions _landing-page-static/js/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function () {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn'
];
var length = methods.length;
var console = (window.console = window.console || {});

while (length--) {
method = methods[length];

// Only stub undefined methods.
if (!console[method]) {
console[method] = noop;
}
}
}());

// Place any jQuery/helper plugins in here.
6 changes: 6 additions & 0 deletions _landing-page-static/js/vendor/jquery-1.10.2.min.js

Large diffs are not rendered by default.

Loading