slint/docs/reference/_static/expand_tabs.js
Chris Chinchilla ab9d7f342b
Consolidate language tutorials (#5037)
All the language tutorials are merged into the Slint reference as "quick starts".
2024-06-04 16:54:36 +02:00

16 lines
458 B
JavaScript

/*
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
// Based on code from stsewd her https://github.com/readthedocs/readthedocs.org/commit/738b6b2836a7e0cadad48e7f407fdeaf7ba7a1d7
*/
$(document).ready(function () {
const tabName = location.hash.substring(1);
if (tabName !== null) {
const tab = $('[data-sync-id~="' + tabName + '"]');
if (tab.length > 0) {
tab.click();
}
}
});