Show More
@@ -127,7 +127,6 b' define([' | |||
|
127 | 127 | that.current_selection = data.name; |
|
128 | 128 | $("#kernel_indicator").find('.kernel_indicator_name').text(data.display_name); |
|
129 | 129 | that.element.find("img.current_kernel_logo").attr("src", that.notebook.base_url + "kernelspecs/" + data.name + "/logo-64x64.png"); |
|
130 | that.element.find("div.current_kernel_logo").text(data.display_name.slice(0,1).toUpperCase()); | |
|
131 | 130 | }); |
|
132 | 131 | |
|
133 | 132 | this.events.on('kernel_created.Session', function(event, data) { |
@@ -141,14 +140,11 b' define([' | |||
|
141 | 140 | }); |
|
142 | 141 | |
|
143 | 142 | var logo_img = this.element.find("img.current_kernel_logo"); |
|
144 | var logo_div = this.element.find("div.current_kernel_logo"); | |
|
145 | 143 | logo_img.on("load", function() { |
|
146 | logo_div.hide(); | |
|
147 | 144 | logo_img.show(); |
|
148 | 145 | }); |
|
149 | 146 | logo_img.on("error", function() { |
|
150 | 147 | logo_img.hide(); |
|
151 | logo_div.show(); | |
|
152 | 148 | }); |
|
153 | 149 | }; |
|
154 | 150 |
@@ -8,11 +8,4 b'' | |||
|
8 | 8 | width: 32px; |
|
9 | 9 | height: 32px; |
|
10 | 10 | } |
|
11 | ||
|
12 | div.current_kernel_logo { | |
|
13 | background-color: darken(@navbar-default-bg, 10%); | |
|
14 | font-size: 24px; | |
|
15 | text-align: center; | |
|
16 | text-decoration: bold; | |
|
17 | } | |
|
18 | 11 | } |
@@ -9684,12 +9684,6 b' select[multiple].celltoolbar select {' | |||
|
9684 | 9684 | width: 32px; |
|
9685 | 9685 | height: 32px; |
|
9686 | 9686 | } |
|
9687 | #kernel_logo_widget div.current_kernel_logo { | |
|
9688 | background-color: #dfdfdf; | |
|
9689 | font-size: 24px; | |
|
9690 | text-align: center; | |
|
9691 | text-decoration: bold; | |
|
9692 | } | |
|
9693 | 9687 | #menubar { |
|
9694 | 9688 | box-sizing: border-box; |
|
9695 | 9689 | -moz-box-sizing: border-box; |
General Comments 0
You need to be logged in to leave comments.
Login now