GoulartNogueira / BadUI

Inspired by r/badUIbattles (a joke subreddit for intentionally bad UI designs). This repository aggregates all best (or worst?) bad-UI designs.

Home Page:https://goulartnogueira.github.io/BadUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Russian phone number

voronrk opened this issue · comments

Please add support russian phone zone (7) :)

I encourage you to do it yourself by changing the:

// Phone value is converted to a string
function PhoneNumberToDisplay( value ) {
  // (XX)XXX-XXX-XXXX
  var display = "("+ value.toString().substr(0, 2) + ") " + value.toString().substr(2, 3) + '-' + value.toString().substr(5, 3)+'-' + value.toString().substr(8, 3);
  return display;
}

If it has a different number of digits, you must fix it here:

 <input id="slider" type="range" min="10000000000" max="99999999999">