fsdfsd
This commit is contained in:
parent
072ad926c1
commit
9378fa96e3
3 changed files with 35 additions and 33 deletions
|
@ -1,34 +1,36 @@
|
||||||
function eventasdf(value){
|
window.addEventListener('DOMContentLoaded', function() {
|
||||||
var content_id = value.getAttributeNode("data-content-id").value;
|
function eventasdf(value){
|
||||||
value.addEventListener("click", function(){jhkj(content_id)});
|
var content_id = value.getAttributeNode("data-content-id").value;
|
||||||
}
|
value.addEventListener("click", function(){jhkj(content_id)});
|
||||||
|
|
||||||
function checkIfBussy(){
|
|
||||||
if (document.getElementById("bussy") != null){
|
|
||||||
document.body.removeChild(document.getElementById("bussy"));
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function dfgh(e){
|
function checkIfBussy(){
|
||||||
active = document.activeElement;
|
if (document.getElementById("bussy") != null){
|
||||||
if (active.getAttributeNode("class") == null || active.getAttributeNode("class").nodeValue != "user-name text-decoration-none"){
|
document.body.removeChild(document.getElementById("bussy"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function dfgh(e){
|
||||||
|
active = document.activeElement;
|
||||||
|
if (active.getAttributeNode("class") == null || active.getAttributeNode("class").nodeValue != "user-name text-decoration-none"){
|
||||||
|
checkIfBussy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function jhkj(value){
|
||||||
checkIfBussy();
|
checkIfBussy();
|
||||||
|
var popover_shit = document.getElementsByClassName("popover")[0];
|
||||||
|
var uiop = document.createElement("DIV");
|
||||||
|
|
||||||
|
uiop.innerHTML = popover_shit.outerHTML;
|
||||||
|
uiop.id = "bussy";
|
||||||
|
|
||||||
|
document.body.appendChild(uiop);
|
||||||
|
document.body.removeChild(popover_shit);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function jhkj(value){
|
var usernames = document.querySelectorAll("a.user-name");
|
||||||
checkIfBussy();
|
usernames.forEach(eventasdf);
|
||||||
var popover_shit = document.getElementsByClassName("popover")[0];
|
|
||||||
var uiop = document.createElement("DIV");
|
|
||||||
|
|
||||||
uiop.innerHTML = popover_shit.outerHTML;
|
document.addEventListener("click", function(e){dfgh(e)});
|
||||||
uiop.id = "bussy";
|
});
|
||||||
|
|
||||||
document.body.appendChild(uiop);
|
|
||||||
document.body.removeChild(popover_shit);
|
|
||||||
}
|
|
||||||
|
|
||||||
var usernames = document.querySelectorAll("a.user-name");
|
|
||||||
usernames.forEach(eventasdf);
|
|
||||||
|
|
||||||
document.addEventListener("click", function(e){dfgh(e)});
|
|
|
@ -790,7 +790,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
||||||
<script defer src="/assets/js/popover.js?v=2"></script>
|
<script defer src="/assets/js/popover.js?v=3"></script>
|
||||||
|
|
||||||
{% if v and v.admin_level > 1 %}
|
{% if v and v.admin_level > 1 %}
|
||||||
<script defer src="/assets/js/comments_admin.js?v=54"></script>
|
<script defer src="/assets/js/comments_admin.js?v=54"></script>
|
||||||
|
|
|
@ -659,7 +659,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
||||||
<script defer src="/assets/js/popover.js?v=2"></script>
|
<script defer src="/assets/js/popover.js?v=3"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function expandText(id) {
|
function expandText(id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue