- if (paragraph > 0) {
- builder.append(String.format("" //
- + "\t<a%s class='button zoomreal' href='%s'>REAL</a>\n"//
- + "\t<a%s class='button zoomwidth' href='%s'>WIDTH</a>\n"//
- + "\t<a%s class='button zoomheight' href='%s'>HEIGHT</a>\n"//
- + "</div>\n", //
- disabledZoomReal,
- uri + "?optionName=zoom&optionValue=real", //
- disabledZoomWidth,
- uri + "?optionName=zoom&optionValue=width", //
- disabledZoomHeight,
- uri + "?optionName=zoom&optionValue=height" //
- ));
- }
+ // Full content
+
+ StringBuilder builder = new StringBuilder();
+
+ builder.append(getTemplateIndexPreBanner(false));
+
+ builder.append(getTemplate("viewer.navbar") //
+ .replace("${disabledFirst}", disabledLeft) //
+ .replace("${disabledPrevious}", disabledLeft) //
+ .replace("${disabledNext}", disabledRight) //
+ .replace("${disabledLast}", disabledRight) //
+ .replace("${hrefFirst}", first) //
+ .replace("${hrefPrevious}", previous) //
+ .replace("${hrefNext}", next) //
+ .replace("${hrefLast}", last) //
+ .replace("${current}",
+ "" + (paragraph > 0 ? paragraph : chapter)) //
+ .replace("${links}", links.toString()) //
+ );
+
+ builder.append(viewer);
+
+ builder.append(getTemplate("viewer.optionbar") //
+ .replace("${classSize}", (paragraph > 0 ? "s4" : "s1")) //
+ .replace("${buttons}", buttons.toString()) //
+ );
+
+ builder.append(getTemplate("index.post"));