Fixed #28343 -- Add an OS chooser for docs command line examples.

This commit is contained in:
Ramiro Morales 2018-01-20 14:38:48 -03:00 committed by Tim Graham
parent a22ef3bb37
commit 37c17846ad
29 changed files with 1399 additions and 90 deletions

View file

@ -53,8 +53,27 @@
});
});
})(jQuery);
{%- if include_console_assets -%}
(function($) {
$(document).ready(function() {
$(".c-tab-unix").on("click", function() {
$("section.c-content-unix").show();
$("section.c-content-win").hide();
$(".c-tab-unix").prop("checked", true);
});
$(".c-tab-win").on("click", function() {
$("section.c-content-win").show();
$("section.c-content-unix").hide();
$(".c-tab-win").prop("checked", true);
});
});
})(jQuery);
{%- endif -%}
</script>
{% endif %}
{%- if include_console_assets -%}
<link rel="stylesheet" href="{{ pathto('_static/console-tabs.css', 1) }}" type="text/css" />
{%- endif -%}
{% endblock %}
{% block document %}