Skip to content
Snippets Groups Projects
Commit ff588948 authored by David Hrbáč's avatar David Hrbáč
Browse files

Added JQuery filter for modules matrix

parent 0efc13de
No related branches found
No related tags found
5 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!107Resolve "Filter na tabulku dostupných modulů"
!!! Hint "Cluster Acronyms" !!! Hint "Cluster Acronyms"
\* A - Anselm A - Anselm • S - Salomon • U - uv1 at Salomon
\* S - Salomon
\* U - uv1 at Salomon <input id="searchInput" placeholder="Type To Filter">
| Module | Versions | Clusters | | Module | Versions | Clusters |
| ------ | -------- | -------- | | ------ | -------- | -------- |
| abinit | 7.10.1-gcc-openmpi</br>7.10.1-icc-impi</br>7.6.2 | `--A`</br>`--A`</br>`--A` | | abinit | 7.10.1-gcc-openmpi</br>7.10.1-icc-impi</br>7.6.2 | `--A`</br>`--A`</br>`--A` |
...@@ -409,3 +411,40 @@ ...@@ -409,3 +411,40 @@
| xtrans | 1.3.5-foss-2016a</br>1.3.4-intel-2015b</br>1.3.5-intel-2015b</br>1.3.5-intel-2016a</br>1.3.5</br>1.3.4</br>1.3.5-foss-2015g | `-S-`</br>`-S-`</br>`-S-`</br>`-S-`</br>`-SA`</br>`--A`</br>`-S-` | | xtrans | 1.3.5-foss-2016a</br>1.3.4-intel-2015b</br>1.3.5-intel-2015b</br>1.3.5-intel-2016a</br>1.3.5</br>1.3.4</br>1.3.5-foss-2015g | `-S-`</br>`-S-`</br>`-S-`</br>`-S-`</br>`-SA`</br>`--A`</br>`-S-` |
| XZ | 5.2.2</br>5.2.2-intel-2016.01</br>5.2.2-intel-2017.00</br>5.2.2-foss-2016a | `-SA`</br>`-S-`</br>`USA`</br>`USA` | | XZ | 5.2.2</br>5.2.2-intel-2016.01</br>5.2.2-intel-2017.00</br>5.2.2-foss-2016a | `-SA`</br>`-S-`</br>`USA`</br>`USA` |
| zlib | 1.2.5</br>1.2.8-GCC-4.9.3</br>1.2.8-GCC-4.4.7-system | `--A`</br>`--A`</br>`U--` | | zlib | 1.2.5</br>1.2.8-GCC-4.9.3</br>1.2.8-GCC-4.4.7-system | `--A`</br>`--A`</br>`U--` |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.slim.min.js" integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc=" crossorigin="anonymous"></script>
<script>
$("#searchInput").keyup(function () {
//split the current value of searchInput
var data = this.value.split(" ");
//create a jquery object of the rows
var jo = $("tbody").find("tr");
if (this.value == "") {
jo.show();
return;
}
//hide all the rows
jo.hide();
//Recusively filter the jquery object to get results.
jo.filter(function (i, v) {
var $t = $(this);
for (var d = 0; d < data.length; ++d) {
if ($t.is(":contains('" + data[d] + "')")) {
return true;
}
}
return false;
})
//show the rows that match.
.show();
}).focus(function () {
this.value = "";
$(this).css({
"color": "black"
});
$(this).unbind('focus');
}).css({
"color": "#C0C0C0"
});
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment