$str = "Закодированная строка";
print base64_encode($str);
// 0JfQsNC60L7QtNC40YDQvtCy0LDQvdC90LDRjyDRgdGC0YDQvtC60LA=
function atou(b64) {
return decodeURIComponent(escape(atob(b64)));
}
const b64 = '0JfQsNC60L7QtNC40YDQvtCy0LDQvdC90LDRjyDRgdGC0YDQvtC60LA='
console.log(atou(b64))
// Закодированная строка
return find(start + 5, "(" + history + " + 5)") || find(start * 3, "(" + history + " * 3)");
find(start + 5, "(" + history + " + 5)")
.find(start * 3, "(" + history + " * 3)")
и возвращается её значение.const result = find(start + 5, "(" + history + " + 5)")
if (result !== null) {
return result
}
return find(start * 3, "(" + history + " * 3)")
$('.link').click(function() {
let url = $(this).data('url');
url = `side/${url}.html`;
...
}
A form control is disabled if any of the following conditions are met:
1. The element is a button, input, select, or textarea element, and the disabled attribute is specified on this element (regardless of its value).
const intervals = [
{ start: '11:00:00', end: '13:00:00' },
{ start: '15:00:00', end: '17:00:00' }
]
const findIntersection = (intervals, start, end) =>
intervals.find(
interval => start < interval.end && interval.start < end
)
findIntersection(intervals, '09:00:00', '11:00:00')
// undefined
findIntersection(intervals, '09:00:00', '12:00:00')
// Object { start: "11:00:00", end: "13:00:00" }