Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
toc updated
  • Loading branch information
knwin committed Aug 23, 2024
1 parent 88d9230 commit 2bd080f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,31 @@
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">အသုံးပြုသူများအတွက်</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="training_manual/index.html">သင်တန်းလက်စွဲ</a></li>
<li class="toctree-l1"><a id=myLink1 href="">QGIS3.28 Desktop အသုံးပြုသူလမ်းညွှန်/လက်စွဲ (QGIS 3.28)</a></li>
<li class="toctree-l1"><a class="reference internal" href="training_manual/index.html">QGIS3.34 သင်တန်းလက်စွဲ</a></li>
<li class="toctree-l1"><a id=myLink2 href="">QGIS3.34 GIS မိတ်ဆက်</a></li>
<script>
function dynamicLinks(){
var currentDomain = window.location.hostname;

// Select the link element you want to change
var linkElement1 = document.getElementById('myLink1');
var linkElement2 = document.getElementById('myLink2');

// Check the domain and switch the href accordingly
if (currentDomain === 'seepuuyar.github.io') {
linkElement1.href = 'https://seepuuyar.github.io/QGIS328-Manual-MM/docs/user_manual/index.html';
linkElement2.href = 'https://seepuuyar.github.io/QGIS334-Gentle-GIS-Introduction-MM/docs/gentle_gis_introduction/index.html';
} else if (currentDomain === 'seepuuyar.com') {
linkElement1.href = 'https://seepuuyar.com/QGIS328_Manual_MM/docs/user_manual/index.html';
linkElement2.href = 'https://seepuuyar.com/QGIS334_Gentle_GIS_Introduction_MM/docs/gentle_gis_introduction/index.html';
} else {
linkElement1.href = '../../QGIS328_Manual_MM/docs/user_manual/index.html';
linkElement2.href = '../../QGIS334_Training_Manual_MM/docs/training_manual/index.html';
}
};
dynamicLinks()
</script>
</ul>

</div>
Expand Down

0 comments on commit 2bd080f

Please sign in to comment.