diff options
author | Leif Johansson <leifj@sunet.se> | 2011-05-12 09:34:35 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-05-12 09:34:35 +0200 |
commit | 3869743100b1db40007666e47167a7ad7bcbbb1b (patch) | |
tree | a1cce4274f6b6367d2e95c0a2d083d6b9ccb9e29 /src/site-media/js | |
parent | 13783dd92342bb175dea483d7e869ef701f01de6 (diff) |
rss and widget testing
Diffstat (limited to 'src/site-media/js')
-rw-r--r-- | src/site-media/js/jquery.meetingtools.js | 28 |
1 files changed, 28 insertions, 0 deletions
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("<ul style=\"list-style: none;\">") + $.each(data,function(room) { + div.append("<li style=\"display: list-item; list-style: none; padding: 2px; 5px;\" class=\"ui-helper-reset ui-widget ui-state-highlight ui-corner-all\">"); + div.append(room['url']); + div.append("</li>"); + }); + div.append("</ul>") + }); + + }); +}
\ No newline at end of file |