.navbar-custom .navbar-toggler {
color: rgba(0, 0, 0, 0.5);
border-color: rgba(0, 0, 0, 0.1);
}
.navbar-custom .navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5);
}
<?php
$myObj->user = "John";
$myObj->isAuth = "true";
$myJSON = json_encode($myObj);
echo $myJSON;
?>
var auth = false;
fetch('ajax.php')
.then(function(response) {
return response.json();
})
.then(function(res) {
auth = res.isAuth;
console.log("response: " + auth);
})
.catch(alert);
console.log("document ready: " + auth);
function Set(title, count, price) {
this.title = title;
this.count = count;
this.price = price;
}
let crazySamurai = new Set("Crazy Samurai", 24, 2000);
let hornyGeisha = new Set("Horny Geisha", 12, 1200);
$('#sets-container').append(`
<div>
<h4>${hornyGeisha.title}</h4>
<p>${hornyGeisha.count} шт.</p>
<p>${hornyGeisha.price} руб.</p>
</div>
`)
const menu = document.getElementsByClassName('.menu-list')[0];
const click = document.querySelectorAll('.style');
const list = document.querySelectorAll('.menu');
if(target.className != click) return
tumbler(target);
}
if (list) {
menu.classList.remove('.menu');
}
menu.classList.add('.menu');
if (list) {
menu.classList.remove('.menu');
}
edit: function(id, news_id){
$.post(dle_root + 'engine/ajax/controller.php?mod=user_upload', {id:id, news_id:news_id, action:'edit'}, function(response){
if( response == 'not' ) DLEalert('Нет файла', dle_info);
else if(response == 'not_owner') alert('Файл вам не пренадлежит');
else{
var character_template = `<div id=\"${id}\" style=\"display:none;text-align:center;height:400px;min-height:400px;\">$[response]</div>`;
$('body').append(character_template);
$("#"+id).dialog({
modal: false,
autoOpen: true,
width: '100%',
resizable: false,
dialogClass: "modalfixed"
});
$('.modalfixed.ui-dialog').css({position:"fixed"});
$("#"+id).dialog( "option", "position", ['0','0'] );
}
});
},