Change label for trial/developer mode

This commit is contained in:
Julia Radzhabova 2020-11-03 13:41:26 +03:00
parent 92d4fec022
commit 58fd71e163
6 changed files with 39 additions and 6 deletions

View file

@ -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));
}

View file

@ -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);

View file

@ -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));
}

View file

@ -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);

View file

@ -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));
}

View file

@ -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);