Open main menu

CDOT Wiki β

Changes

Learning Collaborative Development Lab Fall 2008 Results

435 bytes removed, 15:38, 12 September 2008
Go to a specific web page using Aliases or URL
noun_type_link = new CmdUtils.NounType( "link",["blog","facebook","mail","google","battleforums",
"south-park","japtoeng","wwe","zy-el","zenit-wiki", "pso", "d2m", "nezmod", "schtserv", "mySeneca","Senecamail", "orderofthestick", "8bit", "news"]);
CmdUtils.CreateCommand({ name: "goto",
takes: {url: noun_type_link}, description: "Causes the browser to open a specific webpage via URL or Keywords",
//Original author: {name: "benny sheerin"}, url: "http://www.bennysheerin.com/cmd_news.js",
//This Version Author author: {name: "Chris Cameirao"}, url: 'http://zenit.senecac.on.ca/wiki/', preview: function(preview,vendor)
{
if(vendor.text != "") { { preview.innerHTML = "Opens "+vendor.text+" in a new window or tab."; } else { preview.innerHTML = "Opens the selected URL in a new window or tab."; } }, execute: function(vendor) { //Site listing 
//Keywords
var sources = new Array();
sources['zy-el'] = 'http://http://zyel.wikispaces.com/';
sources['zenit-wiki'] = 'http://zenit.senecac.on.ca/wiki/';
sources['homepage'] = 'http://zenit.senecac.on.ca/wiki/index.php/User:Hellwolf36';
sources['japtoeng'] = 'http://http://rut.org/cgi-bin/j-e/dict/';
sources['blog'] = 'http://hellwolf36.blogspot.com/';
sources['mySeneca'] = 'http://my.senecacollege.ca/';
sources['Senecamail'] = 'http://learn.senecac.on.ca/';
sources['orderofthestick'] = 'http://www.giantitp.com/comics/oots.html';
sources['8bit'] = 'http://www.nuklearpower.com/archive.php';
sources['news'] = 'http://www.drudgereport.com';
Utils.openUrlInBrowser(sources[vendor.text]); }
})
 
//Revision History from original
//Replaced Yahoo with Hotmail
//Added some personal sites
//Rewrote preview messages
1
edit