forked from openlp/openlp
Function showtext in the html javascript was altered, so that the shadow layer (if present) will ignore all the font color settings. This is done using a regular expression replace, that searches for -webkit-text-fill-color and erases up to the first ; or "
If there is only a colour formatting command in the span tag, an empty class attribute is left behind, which shouldn't be a problem. bzr-revno: 1634
This commit is contained in:
commit
8c12b7d912
@ -257,11 +257,12 @@ sup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function show_text(newtext){
|
function show_text(newtext){
|
||||||
|
var match = /-webkit-text-fill-color:[^;\"]+/gi;
|
||||||
if(timer != null)
|
if(timer != null)
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
text_fade('lyricsmain', newtext);
|
text_fade('lyricsmain', newtext);
|
||||||
text_fade('lyricsoutline', newtext);
|
text_fade('lyricsoutline', newtext);
|
||||||
text_fade('lyricsshadow', newtext);
|
text_fade('lyricsshadow', newtext.replace(match, ""));
|
||||||
if(text_opacity()==1) return;
|
if(text_opacity()==1) return;
|
||||||
timer = setTimeout(function(){
|
timer = setTimeout(function(){
|
||||||
show_text(newtext);
|
show_text(newtext);
|
||||||
|
Loading…
Reference in New Issue
Block a user