mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28343 -- Add an OS chooser for docs command line examples.
This commit is contained in:
committed by
Tim Graham
parent
a22ef3bb37
commit
37c17846ad
19
docs/_theme/djangodocs/layout.html
vendored
19
docs/_theme/djangodocs/layout.html
vendored
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user