196 lines
5.2 KiB
HTML
196 lines
5.2 KiB
HTML
<!-- HTML header for doxygen 1.9.7-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen $doxygenversion"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
|
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
|
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
|
<!--BEGIN DISABLE_INDEX-->
|
|
<!--BEGIN FULL_SIDEBAR-->
|
|
<script type="text/javascript">var page_layout=1;</script>
|
|
<!--END FULL_SIDEBAR-->
|
|
<!--END DISABLE_INDEX-->
|
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-62780441-44"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-62780441-44');
|
|
</script>
|
|
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
|
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
|
$treeview
|
|
$search
|
|
$mathjax
|
|
$darkmode
|
|
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
|
$extrastylesheet
|
|
|
|
|
|
<script>
|
|
WINDOW_CONTENTS = window.location.href.split("/");
|
|
|
|
// language specific
|
|
SELECTED_LANGUAGE = "cpp";
|
|
populateOptions("#versionSelector", [
|
|
"#versionSelector",
|
|
"#versionSelectorHeader"
|
|
]);
|
|
|
|
function currentVersion() {
|
|
// Filled in by Doxygen template
|
|
return "$projectnumber";
|
|
}
|
|
|
|
function currentPackage() {
|
|
// Filled in by Doxygen template
|
|
return "$projectname";
|
|
}
|
|
|
|
function httpGetAsync(targetUrl, callback) {
|
|
var xmlHttp = new XMLHttpRequest();
|
|
xmlHttp.onreadystatechange = function() {
|
|
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
|
|
callback(xmlHttp.responseText);
|
|
};
|
|
xmlHttp.open("GET", targetUrl, true); // true for asynchronous
|
|
xmlHttp.send(null);
|
|
}
|
|
|
|
function showSelectors(selectors) {
|
|
selectors.forEach(function(item, index) {
|
|
$(item).show();
|
|
});
|
|
}
|
|
|
|
function hideSelectors(selectors) {
|
|
selectors.forEach(function(item, index) {
|
|
$(item).hide();
|
|
});
|
|
}
|
|
|
|
function populateOptions(optionSelector, otherSelectors) {
|
|
if (currentPackage()) {
|
|
var versionRequestUrl =
|
|
"https://azuresdkdocs.z19.web.core.windows.net" +
|
|
SELECTED_LANGUAGE +
|
|
"/" +
|
|
currentPackage() +
|
|
"/versioning/versions";
|
|
|
|
httpGetAsync(versionRequestUrl, function(responseText) {
|
|
if (responseText) {
|
|
let options = responseText.match(/[^\r\n]+/g);
|
|
populateVersionDropDown(optionSelector, options);
|
|
showSelectors(otherSelectors);
|
|
|
|
$(optionSelector).change(function() {
|
|
targetVersion = $(this).val();
|
|
window.location.href = getPackageUrl(SELECTED_LANGUAGE, currentPackage(), targetVersion);
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function populateVersionDropDown(selector, values) {
|
|
var select = $(selector);
|
|
|
|
$("option", select).remove();
|
|
|
|
$.each(values, function(index, text) {
|
|
$("<option/>", { value: text, text: text }).appendTo(select);
|
|
});
|
|
select.val(currentVersion());
|
|
}
|
|
|
|
function getPackageUrl(language, package, version) {
|
|
return (
|
|
"https://azuresdkdocs.z19.web.core.windows.net" +
|
|
language +
|
|
"/" +
|
|
package +
|
|
"/" +
|
|
version +
|
|
"/index.html"
|
|
);
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<!--BEGIN DISABLE_INDEX-->
|
|
<!--BEGIN FULL_SIDEBAR-->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<!--END FULL_SIDEBAR-->
|
|
<!--END DISABLE_INDEX-->
|
|
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
|
|
<!--BEGIN TITLEAREA-->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<!--BEGIN PROJECT_LOGO-->
|
|
<td id="projectlogo">
|
|
<img alt="Logo" src="$relpath^$projectlogo"/>
|
|
</td>
|
|
<!--END PROJECT_LOGO-->
|
|
<!--BEGIN PROJECT_NAME-->
|
|
<td id="projectalign">
|
|
<div id="projectname">
|
|
<div class="navbrand">
|
|
|
|
</div>
|
|
$projectname
|
|
|
|
<!--BEGIN PROJECT_NUMBER-->
|
|
<span id="projectnumber">
|
|
<span id="versionSelectorHeader">
|
|
<span>
|
|
<select id="versionSelector">
|
|
<option>$projectnumber</option>
|
|
</select>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
<!--END PROJECT_NUMBER-->
|
|
</div>
|
|
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
|
|
</td>
|
|
<!--END PROJECT_NAME-->
|
|
<!--BEGIN !PROJECT_NAME-->
|
|
<!--BEGIN PROJECT_BRIEF-->
|
|
<td>
|
|
<div id="projectbrief">$projectbrief</div>
|
|
</td>
|
|
<!--END PROJECT_BRIEF-->
|
|
<!--END !PROJECT_NAME-->
|
|
<!--BEGIN DISABLE_INDEX-->
|
|
<!--BEGIN SEARCHENGINE-->
|
|
<!--BEGIN !FULL_SIDEBAR-->
|
|
<td>$searchbox</td>
|
|
<!--END !FULL_SIDEBAR-->
|
|
<!--END SEARCHENGINE-->
|
|
<!--END DISABLE_INDEX-->
|
|
</tr>
|
|
<!--BEGIN SEARCHENGINE-->
|
|
<!--BEGIN FULL_SIDEBAR-->
|
|
<tr><td colspan="2">$searchbox</td></tr>
|
|
<!--END FULL_SIDEBAR-->
|
|
<!--END SEARCHENGINE-->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--END TITLEAREA-->
|
|
<!-- end header part -->
|