UserPanel
This commit is contained in:
9
TaxPayerFull/wwwroot/assets/js/ui-modals.js
Normal file
9
TaxPayerFull/wwwroot/assets/js/ui-modals.js
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
! function() { const t = document.querySelector("#youTubeModal"),
|
||||
e = t.querySelector("iframe");
|
||||
t.addEventListener("hidden.bs.modal", function() { e.setAttribute("src", "") }); { const o = [].slice.call(document.querySelectorAll('[data-bs-toggle="modal"]'));
|
||||
o.map(function(t) { t.onclick = function() { const t = this.getAttribute("data-bs-target"),
|
||||
e = this.getAttribute("data-theVideo"),
|
||||
o = e + "?autoplay=1",
|
||||
c = document.querySelector(t + " iframe");
|
||||
c && c.setAttribute("src", o) } }) } }();
|
Reference in New Issue
Block a user