Show More
@@ -49,24 +49,25 var tour_steps = [ | |||||
49 | title: "Command Mode", |
|
49 | title: "Command Mode", | |
50 | placement: 'bottom', |
|
50 | placement: 'bottom', | |
51 | onShow: function(tour) { IPython.notebook.command_mode(); }, |
|
51 | onShow: function(tour) { IPython.notebook.command_mode(); }, | |
|
52 | onNext: function(tour) { edit_mode(); }, | |||
52 | content: "Right now you are in Command Mode, and many keyboard shortcuts are available. In this mode, no icon is displayed in the indicator area." |
|
53 | content: "Right now you are in Command Mode, and many keyboard shortcuts are available. In this mode, no icon is displayed in the indicator area." | |
53 | }, { |
|
54 | }, { | |
54 | element: "#modal_indicator", |
|
55 | element: "#modal_indicator", | |
55 | title: "Edit Mode", |
|
56 | title: "Edit Mode", | |
56 | placement: 'bottom', |
|
57 | placement: 'bottom', | |
57 |
onShow: function(tour) { |
|
58 | onShow: function(tour) { edit_mode(); }, | |
58 | content: "Pressing Enter or clicking in the input text area of the cell switches to Edit Mode." |
|
59 | content: "Pressing Enter or clicking in the input text area of the cell switches to Edit Mode." | |
59 | }, { |
|
60 | }, { | |
60 | element: '.selected', |
|
61 | element: '.selected', | |
61 | title: "Edit Mode", |
|
62 | title: "Edit Mode", | |
62 | placement: 'bottom', |
|
63 | placement: 'bottom', | |
63 |
onShow: function(tour) { |
|
64 | onShow: function(tour) { edit_mode(); }, | |
64 | content: "Notice that the border around the currently active cell changed color." |
|
65 | content: "Notice that the border around the currently active cell changed color." | |
65 | }, { |
|
66 | }, { | |
66 | element: ".selected", |
|
67 | element: ".selected", | |
67 | title: "Edit Mode", |
|
68 | title: "Edit Mode", | |
68 | placement: 'bottom', |
|
69 | placement: 'bottom', | |
69 |
onShow: function(tour) { |
|
70 | onShow: function(tour) { edit_mode(); }, | |
70 | content: "Regular typing will insert text into the currently active cell." |
|
71 | content: "Regular typing will insert text into the currently active cell." | |
71 | }, { |
|
72 | }, { | |
72 | element: '.selected', |
|
73 | element: '.selected', | |
@@ -125,9 +126,13 var tour_style = "<div class='popover tour' style='position:relative'>\ | |||||
125 | <button class='btn btn-default icon-step-forward' data-role='next'></button>\ |
|
126 | <button class='btn btn-default icon-step-forward' data-role='next'></button>\ | |
126 | <button id='tour-pause' class='btn btn-sm btn-default icon-pause' data-resume-text='' data-pause-text='' data-role='pause-resume'></button>\ |
|
127 | <button id='tour-pause' class='btn btn-sm btn-default icon-pause' data-resume-text='' data-pause-text='' data-role='pause-resume'></button>\ | |
127 | </div>\ |
|
128 | </div>\ | |
128 | </div>" |
|
129 | </div>"; | |
129 |
|
130 | |||
130 | var toggle_pause_play = function () { $('#tour-pause').toggleClass('icon-pause icon-play'); } |
|
131 | var toggle_pause_play = function () { $('#tour-pause').toggleClass('icon-pause icon-play'); }; | |
|
132 | var edit_mode = function() { | |||
|
133 | IPython.notebook.focus_cell(); | |||
|
134 | IPython.notebook.edit_mode(); | |||
|
135 | ;} | |||
131 |
|
136 | |||
132 | IPython = (function (IPython) { |
|
137 | IPython = (function (IPython) { | |
133 | "use strict"; |
|
138 | "use strict"; |
General Comments 0
You need to be logged in to leave comments.
Login now