window.oncontextmenu = function(e){
// your code that will add html with your custom menu
e.preventDefault();
}
window.oncontextmenu = null
const element = document.getElementById('someId')
element.oncontextmenu = null // || or function (e) { /*code*/ e.preventDefault(); } соответсвенно
(((((msg.fwd_messages||[])[0]||{}).attachments || [])[0] || {}).audio_message || {}).link_mp3 || (((msg.attachments || [])[0]||{}).audio_message || {}).link_mp3 || ''
...
var gnr = $('.fd').data('genre').split(','); // Array [action, 50, 66, ...]
var ctr = $('.fd').data('country'); // String
var sts = $('.fd').data('status'); // String
...
var data=[gnr,ctr,sts]; // Array [Array(3), str, str];
...
alert(data[0].includes('action')); // Must works
if(data[0] == 'action') { // Oops Looks like not working
// If you aren't using any module loader, progressbar.js exposes
// global variable: window.ProgressBar
var line = new ProgressBar.Line('#container');
.unit-wrapper {
width: 1407px; // old-value- 1406px
}
let users = [];
const limit = 3;
function addToArray (obj) {
if (limit <== users.length) {
users.sort((it, nx) => ( it.score < nx.score ? -1 : it.score > nx.score ? 1 : 0 )).shift()
}
users.push(obj)
}
addToArray ({userName: "123@qwe.qwe", password: "qwer", score: 4})
console.log([...users])
addToArray ({userName: "koko@ko.ko", password: "none", score: 2})
console.log([...users])
addToArray ({userName: "asd@asd.by", password: "qwertghj", score: 4})
console.log([...users])
addToArray ({userName: "222222@asd.by", password: "qwertghj", score: 5})
console.log([...users])
addToArray ({userName: "222222@asd.by", password: "qwertghj", score: 2})
console.log([...users])