changing to a css-only solution to tab highlightning
This commit is contained in:
parent
898ea2754f
commit
91b0b2c0a7
|
@ -1,6 +1,4 @@
|
|||
<h1 id="page-id">
|
||||
Community
|
||||
</h1>
|
||||
# Community
|
||||
|
||||
**awesome** has an active and growing community.
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<h1 id="page-id">
|
||||
Download
|
||||
</h1>
|
||||
# Download
|
||||
|
||||
## Stable
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.0 MiB |
|
@ -1,8 +1,6 @@
|
|||
# Home
|
||||
|
||||
<h1 id="page-id">
|
||||
Home
|
||||
</h1>
|
||||
# Home
|
||||
|
||||
**awesome** is a highly configurable, next generation framework window
|
||||
manager for X. It is very fast, extensible and licensed under the
|
||||
|
|
|
@ -117,6 +117,10 @@ blockquote{
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
#menu ul {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#menu ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
|
|
@ -158,24 +158,6 @@ href="https//awesomewm.org"></a>
|
|||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var ul = document.getElementById("menu-tabs");
|
||||
var items = ul.getElementsByTagName("li");
|
||||
var active = document.getElementById("page-id").innerHTML;
|
||||
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
var element = items[i].getElementsByTagName("a")[0];
|
||||
|
||||
var sA = element.innerHTML.toLowerCase().trim();
|
||||
var sB = active.toLowerCase().trim();
|
||||
|
||||
if (sA === sB) {
|
||||
console.log("found");
|
||||
element.style.color = "black";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<noscript><p><img src="https://piwik.awesomewm.org/piwik.php?idsite=26" style="border:0;" alt="" /></p></noscript>
|
||||
<!-- End Piwik Code -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue