Simplified menu/slide-title injection.

This commit is contained in:
David Russell 2017-11-23 11:10:28 +07:00
parent a4868adff2
commit 0e30652b72
2 changed files with 5 additions and 13 deletions

View File

@ -113,14 +113,10 @@ public class CodeService {
if(slideTitle != null) {
slide = slide.append(MarkdownModel.MD_SPACER)
.append("<span class='menu-title' style='display: none'>")
.append(slideTitle)
.append("</span>")
.append(MarkdownModel.MD_SPACER)
.append("<span class='slide-title'>")
.append(slideTitle)
.append("</span>")
.append(MarkdownModel.MD_SPACER);
.append("<span class='menu-title slide-title'>")
.append(slideTitle)
.append("</span>")
.append(MarkdownModel.MD_SPACER);
}
slide = slide.append(MarkdownModel.MD_CODE_BLOCK_OPEN);

View File

@ -135,11 +135,7 @@ public class GISTService {
if(slideTitle != null) {
slide = slide.append(MarkdownModel.MD_SPACER)
.append("<span class='menu-title' style='display: none'>")
.append(slideTitle)
.append("</span>")
.append(MarkdownModel.MD_SPACER)
.append("<span class='slide-title'>")
.append("<span class='menu-title slide-title'>")
.append(slideTitle)
.append("</span>")
.append(MarkdownModel.MD_SPACER);