content updates

This commit is contained in:
Tom Johnson
2015-08-12 16:58:09 -07:00
parent e564f65040
commit 2a81d2a101
20 changed files with 9026 additions and 8767 deletions

View File

@ -7,7 +7,12 @@ tags: special-layouts
{% include linkrefs.html %}
<p>This page demonstrates how you the integration of a script called ScrollTo, which is used here to link definitions of a JSON code sample to a list of definitions for that particular term. The scenario here is that the JSON blocks are really long, with extensive nesting and subnesting, which makes it difficult for tables below the JSON to adequately explain the term in a usable way.</p>
{% unless site.print == false %}
{% if site.print == true %}
{{note}} The content on this page doesn't display well on PDF, but I included it anyway so you could see the problems this layout poses if you're including it in PDF. {{end}}
{% endif %}
{% unless site.print == true %}
<script src="{{ "/js/jquery.scrollTo.min.js" | prepend:site.baseurl }}"></script>
<!-- local scroll must come after scrollTo, because localScroll is based on scrollTo, which is based on jQuery -->
<script src="{{ "/js/jquery.localScroll.min.js" | prepend:site.baseurl }}"></script>
@ -32,7 +37,6 @@ $('#small-box-links').localScroll({
});
</script>
{% endunless %}
<!-- documentation for localScroll function: http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html -->
<style type="text/css">
@ -114,7 +118,7 @@ $('#small-box-links').localScroll({
</style>
{% endunless %}
<div class="container">
<div class="row">
@ -229,7 +233,6 @@ $('#small-box-links').localScroll({
</div> <!-- end small-box-links -->
</div> <!-- end row -->
</div> <!-- end container -->
{{note}} This was mostly an experiment to see if there was a better way to document a long JSON code example. I haven't actually used this approach in my own documentation.{{end}}