| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <script>
- function elementHideShow(elementToHideOrShow) {
- var el = document.getElementById(elementToHideOrShow);
- el.style.display = el.style.display === 'none' ? 'block' : 'none';
- }
- function randomString() {
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
- var string_length = 10;
- var randomstring = '';
- for (var i = 0; i < string_length; i++) {
- var rnum = Math.floor(Math.random() * chars.length);
- randomstring += chars.substr(rnum, 1);
- }
- document.v_add_mail_acc.v_password.value = randomstring;
- if($('input[name=v_password]').attr('type') == 'text')
- $('#v_password').text(randomstring);
- else
- $('#v_password').text(Array(randomstring.length+1).join('*'));
- }
- $(document).ready(function() {
- $('#v_account').text($('input[name=v_account]').val());
- $('#v_password').text($('input[name=v_password]').val());
- $('input[name=v_account]').change(function(){
- $('#v_account').text($(this).val());
- });
- $('input[name=v_password]').change(function(){
- if($('input[name=v_password]').attr('type') == 'text')
- $('#v_password').text($(this).val());
- else
- $('#v_password').text(Array($(this).val().length+1).join('*'));
- });
- $('.toggle-psw-visibility-icon').click(function(){
- if($('input[name=v_password]').attr('type') == 'text')
- $('#v_password').text($('input[name=v_password]').val());
- else
- $('#v_password').text(Array($('input[name=v_password]').val().length+1).join('*'));
- });
- });
- </script>
- <script src="/js/pages/edit.package.js"></script>
|