Declaration: I am the developer behind this library.
For a structured approach to implementation, consider checking out popscript.js. You can find the source code on GitHub.
After following the instructions in this section of the documentation and including the necessary files, you can display a pop up containing an HTML node (which may have child nodes) by using the following command:
pop(<node_goes_here>)
If you're wondering how your code might look, here's a rough approximation:
button.onclick = function () {
var list_wrapper = document.createElement('ul');
// Add list items to the created list using a loop
pop(list_wrapper);
}
The provided boilerplate code is enough to quickly get started. If you require additional assistance in realizing the pop ups you envision, feel free to reach out.