diff --git a/ipython_widgets/static/notebook/js/widgetarea.js b/ipython_widgets/static/notebook/js/widgetarea.js new file mode 100644 index 000000000..75b93ba2d --- /dev/null +++ b/ipython_widgets/static/notebook/js/widgetarea.js @@ -0,0 +1,116 @@ + +// Events that this code should rely on. +// delete.Cell +// selected_cell_type_changed.Notebook +// create.Cell + + this.widget_views = []; + this._widgets_live = true; + + var widget_area = $('
') + .addClass('widget-area') + .hide(); + this.widget_area = widget_area; + var widget_prompt = $('
') + .addClass('prompt') + .appendTo(widget_area); + var widget_subarea = $('
') + .addClass('widget-subarea') + .appendTo(widget_area); + this.widget_subarea = widget_subarea; + var that = this; + var widget_clear_buton = $('