##// END OF EJS Templates
remove kernel logo text placeholder
Min RK -
Show More
@@ -127,7 +127,6 b' define(['
127 that.current_selection = data.name;
127 that.current_selection = data.name;
128 $("#kernel_indicator").find('.kernel_indicator_name').text(data.display_name);
128 $("#kernel_indicator").find('.kernel_indicator_name').text(data.display_name);
129 that.element.find("img.current_kernel_logo").attr("src", that.notebook.base_url + "kernelspecs/" + data.name + "/logo-64x64.png");
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 this.events.on('kernel_created.Session', function(event, data) {
132 this.events.on('kernel_created.Session', function(event, data) {
@@ -141,14 +140,11 b' define(['
141 });
140 });
142
141
143 var logo_img = this.element.find("img.current_kernel_logo");
142 var logo_img = this.element.find("img.current_kernel_logo");
144 var logo_div = this.element.find("div.current_kernel_logo");
145 logo_img.on("load", function() {
143 logo_img.on("load", function() {
146 logo_div.hide();
147 logo_img.show();
144 logo_img.show();
148 });
145 });
149 logo_img.on("error", function() {
146 logo_img.on("error", function() {
150 logo_img.hide();
147 logo_img.hide();
151 logo_div.show();
152 });
148 });
153 };
149 };
154
150
@@ -8,11 +8,4 b''
8 width: 32px;
8 width: 32px;
9 height: 32px;
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 width: 32px;
9684 width: 32px;
9685 height: 32px;
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 #menubar {
9687 #menubar {
9694 box-sizing: border-box;
9688 box-sizing: border-box;
9695 -moz-box-sizing: border-box;
9689 -moz-box-sizing: border-box;
@@ -43,8 +43,7 b' class="notebook_app"'
43 </span>
43 </span>
44
44
45 <span id="kernel_logo_widget">
45 <span id="kernel_logo_widget">
46 <img class="current_kernel_logo"/>
46 <img class="current_kernel_logo" src=""/>
47 <div class="current_kernel_logo"></div>
48 </span>
47 </span>
49
48
50 {% endblock headercontainer %}
49 {% endblock headercontainer %}
General Comments 0
You need to be logged in to leave comments. Login now