Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tools:converter [2018-09-30 00:03]
jbergamini@jeff.cis.cabrillo.edu
tools:converter [2018-09-30 00:20] (current)
jbergamini@jeff.cis.cabrillo.edu
Line 118: Line 118:
  
 jQuery(document).ready(function() { jQuery(document).ready(function() {
-  var message = getParameterByName('unicode');+  var message = getParameterByName('binary');
   if (message.length > 0) {   if (message.length > 0) {
-    jQuery('#unicode').val(message); +    jQuery('#binary').val(message); 
-    update(document.getElementById('unicode'), 'text');+    update(document.getElementById('binary'), 2);
   }   }
   message = getParameterByName('octal');   message = getParameterByName('octal');
Line 127: Line 127:
     jQuery('#octal').val(message);     jQuery('#octal').val(message);
     update(document.getElementById('octal'), 8);     update(document.getElementById('octal'), 8);
 +  }
 +  message = getParameterByName('decimal');
 +  if (message.length > 0) {
 +    jQuery('#decimal').val(message);
 +    update(document.getElementById('decimal'), 8);
 +  }
 +  message = getParameterByName('hexadecimal');
 +  if (message.length > 0) {
 +    jQuery('#hexadecimal').val(message);
 +    update(document.getElementById('hexadecimal'), 16);
 +  }
 +  message = getParameterByName('unicode');
 +  if (message.length > 0) {
 +    jQuery('#unicode').val(message);
 +    update(document.getElementById('unicode'), 'text');
   }   }
 }); });
 </script> </script>
 </html> </html>
 
tools/converter.txt · Last modified: 2018-09-30 00:20 by jbergamini@jeff.cis.cabrillo.edu · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki