Make my website good again
This commit is contained in:
parent
f71242a650
commit
a84839a33b
703 changed files with 18861 additions and 88452 deletions
13
Programming/index.js
Normal file
13
Programming/index.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const init = () => {
|
||||
$(".ui.modal").modal({
|
||||
onHide: () => {
|
||||
$(".ui.embed").embed('destroy');
|
||||
}
|
||||
});
|
||||
document.querySelectorAll(".ui.inverted.card").forEach((element) => {
|
||||
element.addEventListener('click', () => {
|
||||
$('.ui.modal.' + element.classList.value.replace("ui inverted card ", "")).modal("show");
|
||||
$('.ui.embed.' + element.classList.value.replace("ui inverted card ", "")).embed();
|
||||
});
|
||||
});
|
||||
};
|
||||
Loading…
Reference in a new issue