From 5c595265e53d5c4c2b48ae7ff2ed5124c665a7ce Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 16 May 2014 17:14:27 +0100 Subject: [PATCH] New Credo widget, nowhere near done. --- examples/htdocs/mkws-widget-credo.js | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 examples/htdocs/mkws-widget-credo.js diff --git a/examples/htdocs/mkws-widget-credo.js b/examples/htdocs/mkws-widget-credo.js new file mode 100644 index 0000000..7ea0169 --- /dev/null +++ b/examples/htdocs/mkws-widget-credo.js @@ -0,0 +1,51 @@ +mkws.registerWidgetType('Credo', function() { + s = [] + s.push(''); + + // Main panel: encylopaedia and images on the left, topics on the right + s.push(''); + + s.push(''); + + s.push(''); + + s.push(''); + + s.push(''); + s.push(''); + s.push('
'); + s.push('
Credo Entries
'); + s.push(this.subwidget('Records', { /* ### config */ })); + s.push('
'); + s.push(''); + s.push(''); + + // More TRs for Articles, Books, News, Suggested Resources + s.push('
'); + + s.push('
'); + s.push('
Topic Page: ### title
'); + s.push(this.subwidget('Reference')); + s.push('
'); + + s.push('
'); + s.push('
Images
'); + s.push(this.subwidget('Images', { /* ### config */ } )); + s.push('
'); + + s.push('
'); + + s.push('
'); + s.push('
Create a Mind Map for ### title
'); + // ### Is there a way to make a mind-map? + s.push('
'); + + s.push('
'); + s.push('
Related Topics
'); + s.push(this.subwidget('Facet', { facet: 'subject' })); + s.push('
'); + + s.push('
'); + + this.node.html(s.join('')); +}); -- 1.7.10.4