Changes

Jump to: navigation, search

Learning Collaborative Development Lab Fall 2008 Results

865 bytes added, 18:49, 9 September 2008
no edit summary
</pre>
----
<b>Displays users IP address immediately</b><br />
by [[User:AaronMT|AaronMT]]<br />
 
<b>Usage:</b> ip
 
Utilizes the whatismyip website to parse the IP and display it right in the console
 
<pre>
CmdUtils.CreateCommand({
name: "ip",
homepage: "http://aaronmt.wordpress.com",
author: { name: "Aaron Train", email: "aaron.train@gmail.com"},
description: "Displays your internal IP address.",
help: "Just type IP",
icon: "http://whatismyip.com/favicon.ico",
preview: function( pblock ) {
var msg = 'Displays your ip address just by typing "ip":
"<i>ip</i>"';
},
preview: function(pblock) {
var url = "http://whatismyip.com/automation/n09230945.asp";
jQuery.get( url, function(data) {
pblock.innerHTML = data;
});
},
execute: function() {
var url = "http://whatismyip.com";
Utils.openUrlInBrowser(url);
},
});
</pre>
1
edit

Navigation menu