Upgrade Slate sample to Slate 1.5

Closes gh-361
This commit is contained in:
Andy Wilkinson
2017-03-04 22:12:09 +00:00
parent 3a0f4ab68e
commit ca86e3ad8c
24 changed files with 10579 additions and 286 deletions

View File

@@ -1,3 +1,5 @@
//= require ../lib/_jquery
/*
Copyright 2008-2013 Concur Technologies, Inc.
@@ -28,9 +30,11 @@ under the License.
$(".lang-selector a").removeClass('active');
$(".lang-selector a[data-language-name='" + language + "']").addClass('active');
for (var i=0; i < languages.length; i++) {
$(".highlight." + languages[i]).hide();
$(".highlight.tab-" + languages[i]).hide();
$(".lang-specific." + languages[i]).hide();
}
$(".highlight." + language).show();
$(".highlight.tab-" + language).show();
$(".lang-specific." + language).show();
global.toc.calculateHeights();

View File

@@ -1,4 +1,5 @@
//= require ../lib/_lunr
//= require ../lib/_jquery
//= require ../lib/_jquery.highlight
(function () {
'use strict';

View File

@@ -1,3 +1,4 @@
//= require ../lib/_jquery
//= require ../lib/_jquery_ui
//= require ../lib/_jquery.tocify
//= require ../lib/_imagesloaded.min
@@ -47,6 +48,7 @@
$(function() {
makeToc();
animate();
setupLanguages($('body').data('languages'));
$('.content').imagesLoaded( function() {
global.toc.calculateHeights();
});

File diff suppressed because it is too large Load Diff