сss (9) сss3 (14) ajax (2) css (42) drupal (7) Fix IE6 (4) font (4) html (23) javascript (22) jQuery (15) js (5) less (1) php (1) scss (1) soft (2) vue (1) webstorm (1) wordpress (1)

формат телефоного номера


'123456789'.replace(/(\d+)(\d{3})(\d{2})(\d{2})/, "$1 $2-$3-$4")

12 345-67-89

Клик вне попапа

if (!popup.contains(e.target)){
popup.hidden = true;
}