Fix indention.
This commit is contained in:
parent
922d54615f
commit
14c6113eef
@ -1,9 +1,9 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
ga('create', 'UA-57144786-2', 'auto');
|
ga('create', 'UA-57144786-2', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,56 +1,56 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include navigation.html %}
|
{% include navigation.html %}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
{% include footer.html %}
|
{% include footer.html %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function ($) {
|
(function ($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var $window = $(window);
|
var $window = $(window);
|
||||||
var $body = $(document.body);
|
var $body = $(document.body);
|
||||||
var $sidebar = $('.s2-docs-sidebar');
|
var $sidebar = $('.s2-docs-sidebar');
|
||||||
|
|
||||||
$body.scrollspy({
|
$body.scrollspy({
|
||||||
target: '.s2-docs-sidebar',
|
target: '.s2-docs-sidebar',
|
||||||
offset: 40
|
offset: 40
|
||||||
});
|
});
|
||||||
|
|
||||||
$window.on('load', function () {
|
$window.on('load', function () {
|
||||||
$body.scrollspy('refresh');
|
$body.scrollspy('refresh');
|
||||||
});
|
});
|
||||||
|
|
||||||
$sidebar.affix({
|
$sidebar.affix({
|
||||||
offset: {
|
offset: {
|
||||||
top: function () {
|
top: function () {
|
||||||
var offsetTop = $sidebar.offset().top;
|
var offsetTop = $sidebar.offset().top;
|
||||||
var navOuterHeight = $('.s2-docs-nav').height();
|
var navOuterHeight = $('.s2-docs-nav').height();
|
||||||
|
|
||||||
return (this.top = offsetTop - navOuterHeight);
|
return (this.top = offsetTop - navOuterHeight);
|
||||||
},
|
},
|
||||||
bottom: function () {
|
bottom: function () {
|
||||||
return (this.bottom = $('.s2-docs-footer').outerHeight(true));
|
return (this.bottom = $('.s2-docs-footer').outerHeight(true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
addAnchors('.s2-docs-container h1, .s2-docs-container h2, .s2-docs-container h3, .s2-docs-container h4, .s2-docs-container h5');
|
addAnchors('.s2-docs-container h1, .s2-docs-container h2, .s2-docs-container h3, .s2-docs-container h4, .s2-docs-container h5');
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% include ga.html %}
|
{% include ga.html %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html class="s2-docs-home">
|
<html class="s2-docs-home">
|
||||||
<head>
|
<head>
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include navigation.html %}
|
{% include navigation.html %}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
{% include footer.html %}
|
{% include footer.html %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
prettyPrint();
|
prettyPrint();
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% include ga.html %}
|
{% include ga.html %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user