Skip to content

Commit

Permalink
[dist] [fix] [minor] Demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Mar 21, 2019
1 parent 852091c commit fb3d32a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,15 @@
$('.locale').append('<option value="' + item.name+ '">' + item.title + '</option>');
});


$('.locale').val("en");

$('.locale').change(function(e){
var locale = $(this).attr('value');
faker.locale = locale;
var locale = $(this).val();
faker.setLocale(locale);
drawButtons();
generateName();
});


function generateName () {

// make name contextual to username and email
Expand Down

0 comments on commit fb3d32a

Please sign in to comment.