From 3f5a7100a8444763ef548ea2362c1541766e1db8 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Sun, 6 Jul 2014 23:30:53 +0530 Subject: changed comment url --- .custom.css.swp | Bin 12288 -> 0 bytes .custom.js.swp | Bin 16384 -> 0 bytes custom.js | 52 +--------------------------------------------------- 3 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 .custom.css.swp delete mode 100644 .custom.js.swp diff --git a/.custom.css.swp b/.custom.css.swp deleted file mode 100644 index 49465c6..0000000 Binary files a/.custom.css.swp and /dev/null differ diff --git a/.custom.js.swp b/.custom.js.swp deleted file mode 100644 index 6d41b7f..0000000 Binary files a/.custom.js.swp and /dev/null 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", -- cgit