From 1866e375b69aecb53b617da8993fc71c798af8f4 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 30 May 2011 11:17:02 +0200 Subject: A simple jquery-based widget for disaplaying stuff from meetingtools. --- src/site-media/css/jquery.meetingtools.css | 1 + src/site-media/html/widget-test.html | 20 ++++++++++++++++++++ src/site-media/js/jquery.meetingtools.js | 29 +++++++++++++++++++---------- 3 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 src/site-media/css/jquery.meetingtools.css create mode 100644 src/site-media/html/widget-test.html (limited to 'src/site-media') diff --git a/src/site-media/css/jquery.meetingtools.css b/src/site-media/css/jquery.meetingtools.css new file mode 100644 index 0000000..293b8a8 --- /dev/null +++ b/src/site-media/css/jquery.meetingtools.css @@ -0,0 +1 @@ +.meeting-list li { list-style: none; display: block; } \ No newline at end of file diff --git a/src/site-media/html/widget-test.html b/src/site-media/html/widget-test.html new file mode 100644 index 0000000..3b27c16 --- /dev/null +++ b/src/site-media/html/widget-test.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + +

Meetings...

+
+ + \ No newline at end of file diff --git a/src/site-media/js/jquery.meetingtools.js b/src/site-media/js/jquery.meetingtools.js index 5bed8f3..1453226 100644 --- a/src/site-media/js/jquery.meetingtools.js +++ b/src/site-media/js/jquery.meetingtools.js @@ -1,6 +1,5 @@ /* - * - * + * a jQuery plugin for listing tagged meetings from meetingtools * */ @@ -12,17 +11,27 @@ jQuery.fn.meetingtools = function(options) { if (!url) { url = 'http://localhost:8000'; } - var url = url+'/room/+'+tags+'.json' - var div = $(this) + var url = url+'/room/+'+tags+'.json'; + var div = $(this); $.getJSON(url,function(data) { - div.append(""; + div.append(html); }); + }); } \ No newline at end of file -- cgit v1.1