Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md needs updating #34

Open
zkhan96 opened this issue Oct 28, 2024 · 0 comments
Open

README.md needs updating #34

zkhan96 opened this issue Oct 28, 2024 · 0 comments

Comments

@zkhan96
Copy link

zkhan96 commented Oct 28, 2024

bottom of the README should say:

            const data = document.querySelector(".institution_list").getAttribute("data-institutions");
            institutionSelector(JSON.parse(data), "institution-modal-content", config);

            const container = document.querySelector(".institution-container");
            const observer = new MutationObserver((event) => {
                const institutions = Array.from(document.querySelectorAll(".ob-list-institution > a"));
                console.log(institutions)
                institutions.forEach((institution) => {
                    institution.addEventListener("click", (e) => {
                        e.preventDefault();
                        const aspspId = e.currentTarget.getAttribute("data-institution");
                        window.location.href = `/agreements/${aspspId}`;
                    })
                })
            });

            const conf = {
                childList: true
            };
            observer.observe(container, conf);

Also please make a react template!

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

No branches or pull requests

1 participant