mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
Merge branch 'master' of https://github.com/littlevgl/lvgl
This commit is contained in:
Vendored
+5
-2
@@ -20,10 +20,13 @@ function add_version_selector()
|
|||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(text => {
|
.then(text => {
|
||||||
const versions = text.split("\n").filter(version => version.trim().length > 0);
|
const versions = text.split("\n").filter(version => version.trim().length > 0);
|
||||||
p = document.getElementById("rtd-search-form").parentElement;
|
let p = document.getElementById("rtd-search-form").parentElement;
|
||||||
p.innerHTML = `
|
p.innerHTML = `
|
||||||
<select name="versions" id="versions" onchange="ver_sel()" style="border-radius:5px; margin-bottom:15px">
|
<select name="versions" id="versions" onchange="ver_sel()" style="border-radius:5px; margin-bottom:15px">
|
||||||
${versions.map(version => `<option value="${version}">${version}</option>`)}
|
${versions.map(version => {
|
||||||
|
const versionName = (version.indexOf(".") != -1) ? version : (version + " (latest minor)");
|
||||||
|
return `<option value="${version}">${versionName}</option>`;
|
||||||
|
})}
|
||||||
</select>` + p.innerHTML;
|
</select>` + p.innerHTML;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user