Code: Select all
<div id="w3rPopup" class="w3rPopupContainer text-center inputbox" style="display:none">
<table class="w3wrapTABC">
<tr><td class="w3wrapTDC">
<div class="w3divContainer">
<div class="w3divCont"><strong>{{ lang('W3POPUP_TEXTEXPLAIN') }}</strong></div>
<div class="w3divimg"><img id="w3-img-rotate" src="" onclick="w3rotateByDeg(this);" /></div>
<div class="w3divCont"><button class="w3divCont button" type="submit" id="w3btn" onclick="w3sendThis(document.getElementById('w3-img-rotate'));">{{ lang('W3POPUP_BUTTONTEXT') }}</button></div>
</div>
</td></tr></table>
</div>
Code: Select all
$( ".w3rotate" ).on( "click", function(e) {
e.preventDefault(e);
e.stopPropagation(e);
$("#w3rPopup").css({ "display":"block","position":"fixed","top":"0px","right":"0px","bottom":"0px","left":"0px","margin":"auto","z-index":"99999" });
var remListenerRIcont = $(document).mouseup(function (e) {
if ($(e.target).closest(".w3rPopupContainer").length === 0) {
$("#w3rPopup").css("display", "none");
$("#w3-img-rotate").removeAttr("style");
}
});
});
Code: Select all
const thumbnails = document.querySelectorAll('.thumbnail a');
thumbnails.forEach((thumbnail) => {
thumbnail.setAttribute("target", "_blank");
})
the gift of simplicity!Mannix_ wrote: ↑Wed Oct 05, 2022 8:53 am this js should do the trickCode: Select all
const thumbnails = document.querySelectorAll('.thumbnail a'); thumbnails.forEach((thumbnail) => { thumbnail.setAttribute("target", "_blank"); })