summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.custom.css.swpbin12288 -> 0 bytes
-rw-r--r--.custom.js.swpbin16384 -> 0 bytes
-rw-r--r--custom.js52
3 files changed, 1 insertions, 51 deletions
diff --git a/.custom.css.swp b/.custom.css.swp
deleted file mode 100644
index 49465c6..0000000
--- a/.custom.css.swp
+++ /dev/null
Binary files differ
diff --git a/.custom.js.swp b/.custom.js.swp
deleted file mode 100644
index 6d41b7f..0000000
--- a/.custom.js.swp
+++ /dev/null
Binary files differ
diff --git a/custom.js b/custom.js
index c3be96f..8876cf2 100644
--- a/custom.js
+++ b/custom.js
@@ -1,53 +1,3 @@
-// leave at least 2 line with only a star on it below, or doc generation fails
-/**
- *
- *
- * Placeholder for custom user javascript
- * mainly to be overridden in profile/static/custom/custom.js
- * This will always be an empty file in IPython
- *
- * User could add any javascript in the `profile/static/custom/custom.js` file
- * (and should create it if it does not exist).
- * It will be executed by the ipython notebook at load time.
- *
- * Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook.
- *
- * Example :
- *
- * Create a custom button in toolbar that execute `%qtconsole` in kernel
- * and hence open a qtconsole attached to the same kernel as the current notebook
- *
- * $([IPython.events]).on('app_initialized.NotebookApp', function(){
- * IPython.toolbar.add_buttons_group([
- * {
- * 'label' : 'run qtconsole',
- * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons
- * 'callback': function () {
- * IPython.notebook.kernel.execute('%qtconsole')
- * }
- * }
- * // add more button here if needed.
- * ]);
- * });
- *
- * Example :
- *
- * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );`
- * to load custom script into the notebook.
- *
- * // to load the metadata ui extension example.
- * $.getScript('/static/notebook/js/celltoolbarpresets/example.js');
- * // or
- * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert
- * $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js');
- *
- *
- * @module IPython
- * @namespace IPython
- * @class customjs
- * @static
- */
-
$([IPython.events]).on('notebook_loaded.Notebook', function(){
/* first, checks if it isn't implemented yet */
if (!String.prototype.format) {
@@ -127,7 +77,7 @@ $([IPython.events]).on('notebook_loaded.Notebook', function(){
var chapter = $(this).data("chapter");
var example = $(this).data("example");
var page = $(this).data("page");
- var src = "http://localhost:8000/comments/get/?book={0}&chapter={1}&example={2}&page={3}";
+ var src = "http://tbc-python.fossee.in/comments/get/?book={0}&chapter={1}&example={2}&page={3}";
src = src.format(book, chapter, example, page);
$comment_frame.attr({
class: "comment-frame",