##// END OF EJS Templates
fix regular expression for detecting links in stdout...
fix regular expression for detecting links in stdout The previous expression was matching both the beginning and the end of the line, which would end up swallowing the next match, ultimately matching every other URL in the string. This removes the end-of-line check, so it will match every URL. The wrapURLs function to make URLs easier to identify does not seem to have been necessary, and has thus been removed. closes #2834

File last commit:

r9381:304133c8
r10045:d8ed554e
Show More
page.js
59 lines | 1.8 KiB | application/javascript | JavascriptLexer
Brian Granger
Refactoring templates and top level js/css organization.
r6192 //----------------------------------------------------------------------------
// Copyright (C) 2008-2011 The IPython Development Team
//
// Distributed under the terms of the BSD License. The full license is in
// the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------
//============================================================================
// Global header/site setup.
//============================================================================
var IPython = (function (IPython) {
var Page = function () {
this.style();
this.bind_events();
};
Page.prototype.style = function () {
$('div#header').addClass('border-box-sizing').
Matthias BUSSONNIER
fix line below header
r9381 addClass('ui-widget-content').
Brian Granger
Refactoring templates and top level js/css organization.
r6192 css('border-top-style','none').
css('border-left-style','none').
css('border-right-style','none');
$('div#site').addClass('border-box-sizing')
};
Page.prototype.bind_events = function () {
};
Page.prototype.show = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Brian Granger
Major refactoring of notebook....
r6193 this.show_header();
this.show_site();
};
Page.prototype.show_header = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Brian Granger
Refactoring templates and top level js/css organization.
r6192 $('div#header').css('display','block');
Brian Granger
Major refactoring of notebook....
r6193 };
Page.prototype.show_site = function () {
// The header and site divs start out hidden to prevent FLOUC.
// Main scripts should call this method after styling everything.
Brian Granger
Refactoring templates and top level js/css organization.
r6192 $('div#site').css('display','block');
};
Brian Granger
Major refactoring of notebook....
r6193
Brian Granger
Refactoring templates and top level js/css organization.
r6192 IPython.Page = Page;
return IPython;
}(IPython));