worked on the active highlights but didn't get far-for layout.html
This commit is contained in:
parent
ccdb5afa6c
commit
d7c0d5a0de
@ -227,7 +227,7 @@ $.ajax({
|
||||
<!--method-focused-->
|
||||
{% for querymethod in urlmethod %}
|
||||
{% for file in filetoname_dict %}
|
||||
{% if querymethod.lower() == file['method'].lower()%}
|
||||
{% if querymethod.lower() == file['method'].lower() and urllibrarian==[] %}
|
||||
{% set show_file = file['debrisname'] %}
|
||||
<span class="file-names" id="{{show_file}}">{{show_file}}</span><br>
|
||||
{% endif %}
|
||||
@ -309,38 +309,44 @@ $.ajax({
|
||||
return obj;
|
||||
};
|
||||
|
||||
var libList = getAllUrlParams().librarian;
|
||||
|
||||
|
||||
var methodList = getAllUrlParams().method;
|
||||
// alert(methodList);
|
||||
alert(methodList);
|
||||
var libList = getAllUrlParams().librarian;
|
||||
alert(libList);
|
||||
|
||||
if (Array.isArray(methodList)==false) {
|
||||
var search_meth0 = methodList;
|
||||
var elementy0 = document.getElementById(search_meth0);
|
||||
elementy0.classList.add("methodclicked");
|
||||
// alert("it's not a list");
|
||||
}
|
||||
|
||||
if (Array.isArray(libList)==false) {
|
||||
if (Array.isArray(libList)===false) {
|
||||
var search_id0 = libList;
|
||||
var element0 = document.getElementById(search_id0);
|
||||
element0.classList.add("clicked");
|
||||
// alert(search_id0);
|
||||
} else {
|
||||
for (i=0; i < libList.length ; i++) {
|
||||
var search_id = libList[i];
|
||||
var element = document.getElementById(search_id);
|
||||
element.classList.add("clicked");
|
||||
// alert(i);
|
||||
};
|
||||
|
||||
for (y=0; y < methodList.length ; y++) {
|
||||
var search_meth = methodList[y];
|
||||
var elementy = document.getElementById(search_meth);
|
||||
elementy.classList.add("methodclicked");
|
||||
// alert(methodList[y]);
|
||||
|
||||
|
||||
if (Array.isArray(methodList)===false) {
|
||||
var search_meth0 = methodList;
|
||||
var elementy0 = document.getElementById(search_meth0);
|
||||
elementy0.classList.add("methodclicked");
|
||||
// alert(search_meth0);
|
||||
} else {
|
||||
for (y=0; y < methodList.length ; y++) {
|
||||
var search_meth = methodList[y];
|
||||
var elementy = document.getElementById(search_meth);
|
||||
elementy.classList.add("methodclicked");
|
||||
}
|
||||
};
|
||||
// if (Array.isArray(libList)===true)
|
||||
|
||||
});
|
||||
|
||||
for (i=0; i < libList.length ; i++) {
|
||||
var search_id = libList[i];
|
||||
var element = document.getElementById(search_id);
|
||||
element.classList.add("clicked");
|
||||
};
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user