From: Mike Taylor Date: Fri, 16 May 2014 16:14:27 +0000 (+0100) Subject: New Credo widget, nowhere near done. X-Git-Tag: 1.0.0~656 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=5c595265e53d5c4c2b48ae7ff2ed5124c665a7ce New Credo widget, nowhere near done. --- 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('')); +});