Change label for trial/developer mode
This commit is contained in:
parent
92d4fec022
commit
58fd71e163
|
@ -385,7 +385,18 @@ define([
|
|||
if ( !this.$el.is(':visible') ) return;
|
||||
if (mode) {
|
||||
if (!this.developerHint) {
|
||||
this.developerHint = $('<div id="developer-hint">' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '</div>').appendTo(this.$el);
|
||||
var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase();
|
||||
var arr = str.split(' ');
|
||||
str = '';
|
||||
arr.forEach(function(item){
|
||||
item = item.trim();
|
||||
if (item!=='') {
|
||||
str += (item.charAt(0).toUpperCase() + item.substring(1, item.length));
|
||||
str += ' ';
|
||||
}
|
||||
});
|
||||
str = str.trim();
|
||||
this.developerHint = $('<div id="developer-hint">' + str + '</div>').appendTo(this.$el);
|
||||
this.devHeight = this.developerHint.outerHeight();
|
||||
$(window).on('resize', _.bind(this.onWindowResize, this));
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
padding: 12px 0;
|
||||
background-color: #ffb400;
|
||||
color: #6e4e00 !important;
|
||||
white-space: nowrap;
|
||||
white-space: pre;
|
||||
line-height: 20px;
|
||||
writing-mode: tb-rl;
|
||||
-moz-transform: rotate(180deg);
|
||||
|
|
|
@ -363,7 +363,18 @@ define([
|
|||
if ( !this.$el.is(':visible') ) return;
|
||||
if (mode) {
|
||||
if (!this.developerHint) {
|
||||
this.developerHint = $('<div id="developer-hint">' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '</div>').appendTo(this.$el);
|
||||
var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase();
|
||||
var arr = str.split(' ');
|
||||
str = '';
|
||||
arr.forEach(function(item){
|
||||
item = item.trim();
|
||||
if (item!=='') {
|
||||
str += (item.charAt(0).toUpperCase() + item.substring(1, item.length));
|
||||
str += ' ';
|
||||
}
|
||||
});
|
||||
str = str.trim();
|
||||
this.developerHint = $('<div id="developer-hint">' + str + '</div>').appendTo(this.$el);
|
||||
this.devHeight = this.developerHint.outerHeight();
|
||||
$(window).on('resize', _.bind(this.onWindowResize, this));
|
||||
}
|
||||
|
|
|
@ -491,7 +491,7 @@
|
|||
padding: 12px 0;
|
||||
background-color: #ffb400;
|
||||
color: #6e4e00 !important;
|
||||
white-space: nowrap;
|
||||
white-space: pre;
|
||||
line-height: @app-header-height;
|
||||
writing-mode: tb-rl;
|
||||
-moz-transform: rotate(180deg);
|
||||
|
|
|
@ -353,7 +353,18 @@ define([
|
|||
if ( !this.$el.is(':visible') ) return;
|
||||
if (mode) {
|
||||
if (!this.developerHint) {
|
||||
this.developerHint = $('<div id="developer-hint">' + ((mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLocaleUpperCase() : this.txtDeveloper.toLocaleUpperCase()) + '</div>').appendTo(this.$el);
|
||||
var str = (mode == Asc.c_oLicenseMode.Trial) ? this.txtTrial.toLowerCase() : this.txtDeveloper.toLowerCase();
|
||||
var arr = str.split(' ');
|
||||
str = '';
|
||||
arr.forEach(function(item){
|
||||
item = item.trim();
|
||||
if (item!=='') {
|
||||
str += (item.charAt(0).toUpperCase() + item.substring(1, item.length));
|
||||
str += ' ';
|
||||
}
|
||||
});
|
||||
str = str.trim();
|
||||
this.developerHint = $('<div id="developer-hint">' + str + '</div>').appendTo(this.$el);
|
||||
this.devHeight = this.developerHint.outerHeight();
|
||||
$(window).on('resize', _.bind(this.onWindowResize, this));
|
||||
}
|
||||
|
|
|
@ -555,7 +555,7 @@
|
|||
padding: 12px 0;
|
||||
background-color: #ffb400;
|
||||
color: #6e4e00 !important;
|
||||
white-space: nowrap;
|
||||
white-space: pre;
|
||||
line-height: @app-header-height;
|
||||
writing-mode: tb-rl;
|
||||
-moz-transform: rotate(180deg);
|
||||
|
|
Loading…
Reference in a new issue