::-webkit-scrollbar { width: 6px; height: 3px; background: #222; display: none;}
::-webkit-scrollbar-button { height: 6px; display: none;}
::-webkit-scrollbar-track { background-color: #333;display: none;}
::-webkit-scrollbar-track-piece { background-color: #555;display: none;}
::-webkit-scrollbar-thumb { height: 50px; background-color: rgb(128, 255, 0); display: none;}
::-webkit-scrollbar-corner { background-color: #999;display: none;}
::-webkit-resizer { background-color: #666;display: none;}
for(el in bullet) {
console.log(el); // Выводим объект
console.log(el.x); // Выводим координату, ищите где у вас ошибка и фиксите.
}
function myFunc() {
return 'I in cache!'
}
let cache = localStorage;
cache.timer = (function() => {
return setTimeout(myFunc, 3000)
});
console.log(cache.timer);
function getLabel() {
return `<span class='customPercents'>${this.getPercentage(dataset, element, index)}%</span>`;
}
async function getFileFromUrl(url='') {
let xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'blob';
let response = xhr.onload = (e) => {
let reader = new FileReader();
reader.readAsDataURL(xhr.response);
return reader.onload = (e) => {
return e.target.result
};
};
await xhr.send();
return await response
}
const widgetsTransform = widgets.map(item => {
let items = [];
items.push({
type: `Section${item.type}`,
children: []
});
items.find(el => el.type.replace('Section', '') === item.type).children.push(item);
return items
});
console.log(widgetsTransform);
$(document).ready(function(){
function showxxx()
{
$.ajax({
url: "rand_banner_header.php",
cache: false,
success: function(html){
$("#contentqxxxxxxx").html(html);
}
};
setTimeout(showxxx, 30000);
});
import headerScss from './headerStyle.scss';
import './headerStyle.scss';
.block {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
Свойства погуглите, ничего сложного