Skip to content

Comments

13 integrate transport format#14

Open
SKernchen wants to merge 15 commits intomainfrom
13-integrate-transport-format
Open

13 integrate transport format#14
SKernchen wants to merge 15 commits intomainfrom
13-integrate-transport-format

Conversation

@SKernchen
Copy link
Contributor

Closes #13

@SKernchen SKernchen linked an issue Dec 4, 2025 that may be closed by this pull request
}

function filterFunction() {
var input, filter, ul, li, a, i;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var input, filter, ul, li, a, i;
var input, filter, a, i;

Comment on lines +36 to +43
const policyTemp = document.querySelector("#policy"),
policyDiv = document.querySelector("#sw-policies"),
filterTemp = document.querySelector("#filter"),
filterDropdown = document.querySelector("#filterDropdown");




Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const policyTemp = document.querySelector("#policy"),
policyDiv = document.querySelector("#sw-policies"),
filterTemp = document.querySelector("#filter"),
filterDropdown = document.querySelector("#filterDropdown");
const policyTemp = document.querySelector("#policy");
const policyDiv = document.querySelector("#sw-policies");
const filterTemp = document.querySelector("#filter");
const filterDropdown = document.querySelector("#filterDropdown");

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general this way of creating multiple vars with the "," looks so cursed to me.

filterDropdown.appendChild(filter);
polcolor.id += '_'+policyId;
polcolor.style.background = colorPolicies[policyId];
console.log(colorPolicies);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(colorPolicies);
// console.log(colorPolicies);

polcolor = policy.querySelector("#color"),
pconforms = policy.querySelector("#policy-conforms");
const policyId = Object.keys(pol)[0];
console.log(policyId);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(policyId);
// console.log(policyId);

Comment on lines +111 to +120
//Extend Checkbox for metadata source
const checkbox = document.querySelector("#extended");
checkbox.addEventListener('change', (event)=>{
if(checkbox.checked){
document.getElementById("col2").style.visibility = "";
}else{
document.getElementById("col2").style.visibility = "collapse";
}

})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//Extend Checkbox for metadata source
const checkbox = document.querySelector("#extended");
checkbox.addEventListener('change', (event)=>{
if(checkbox.checked){
document.getElementById("col2").style.visibility = "";
}else{
document.getElementById("col2").style.visibility = "collapse";
}
})
//Extend Checkbox for metadata source
const checkbox = document.querySelector("#extended");
checkbox.addEventListener('change', (event)=>{
if(checkbox.checked){
document.getElementById("col2").style.visibility = "";
}else{
document.getElementById("col2").style.visibility = "collapse";
}
})

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the indent

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥 S 🔥🔥

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole files has weird indentation

const element = document.createElement("div");
element.appendChild(document.createTextNode(` ${JSON.stringify(e).replaceAll("{","").replaceAll("}","").replaceAll('"',"")}`));
div.appendChild(element);
function extract_info(cell, obj, tag, colorPolicies){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In curation.js line 90 this method gets calles with only 2 parameters. Is that possible in JavaScript and is that intended?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess those files with the (1) can be deleted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate transport format

2 participants