change name to print function
This commit is contained in:
parent
5acb847e53
commit
e1e30c5f7c
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
console.log = function(s){
|
print = function(s){
|
||||||
var div = document.getElementById('content');
|
var div = document.getElementById('content');
|
||||||
div.innerHTML += s + '<br />';
|
div.innerHTML += s + '<br />';
|
||||||
};
|
};
|
||||||
@ -31,9 +31,9 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
addr.validate();
|
addr.validate();
|
||||||
console.log(addr.data + ": is a valid address");
|
print(addr.data + ": is a valid address");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log(addr.data + ": is not a valid address.");
|
print(addr.data + ": is not a valid address.");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user