function evil(num) {
return num.toString(2).replace(/0/g, '').length % 2 ? "It's Odious!" : "It's Evil!";
}
function evil(num) {
var result = 0;
var n = num;
while(n > 0) {
result += n & 1;
n >>= 1;
}
return result % 2 ? "It's Odious!" : "It's Evil!";
}
callTrapScript.src = \'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js\';
document.getElementsByTagName(\'body\')[0].appendChild(callTrapScript);
<a href="javascript:history.go(-1)">Назад</a>
<a href="javascript:history.go(1)">Вперед</a>
<webview>
$(function(){
function Search(priceRegex){
var textarea = $("#message").val();
if (priceRegex.test(textarea)){
alert("Найдено");
}
else{
$(".errorps").text("Не найдено");
}
}
$("#send").click(function(){
Search(/[^0-9]/igm);
});
});
if('discount' in data && parseInt(data.discount) < 0) {
//...
} else if(data.hit === 'hit') {
//...
}