From 3869743100b1db40007666e47167a7ad7bcbbb1b Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 12 May 2011 09:34:35 +0200 Subject: rss and widget testing --- src/site-media/js/jquery.meetingtools.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/site-media/js/jquery.meetingtools.js (limited to 'src/site-media/js') diff --git a/src/site-media/js/jquery.meetingtools.js b/src/site-media/js/jquery.meetingtools.js new file mode 100644 index 0000000..5bed8f3 --- /dev/null +++ b/src/site-media/js/jquery.meetingtools.js @@ -0,0 +1,28 @@ +/* + * + * + * + */ + +jQuery.fn.meetingtools = function(options) { + + this.each(function() { + var tags = options.tags; + var url = options.url; + if (!url) { + url = 'http://localhost:8000'; + } + var url = url+'/room/+'+tags+'.json' + var div = $(this) + $.getJSON(url,function(data) { + div.append("") + }); + + }); +} \ No newline at end of file -- cgit v1.1