Пытался создать popup окно в расширении, которое тянется у меня через GreasyFork, но так как там только JS, привести к выводу окна не получается.
Каким образом можно создать popup окно на js?
Пробовал и заворачивать в функцию и подставлять в свои условия выполнения, но как прикрепить и остальные ? если они в js не считаются ?
function Window() {
let HTML_POPUP_= `<div id = "dialog-message" title = "download complete">
<P>
<Span class = "ui-icon ui-icon-circle-check" style = "float: left; margin: 0 7px 50px 0;"> </ span>
Your file has been successfully downloaded to the folder.
</ P>
<P>
The current use of storage space <b> 36% </ b>.
</ P>
</ Div>
<P> Sed vel diam id libero <a href="№"> rutrum convallis </a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus. </ p>`
Пробовал еще и так, но не выводит тоже
(function Window() {
$( "#dialog-message" ).dialog({
modal: true,
title: "Dialog Title",
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
$( ".selector" ).dialog({
autoOpen: false
});
$( ".selector" ).dialog( "option", "autoOpen", false );
$( ".selector" ).dialog( "option", "title", "Dialog Title" );
})