All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.docx4j.convert.out.html.HtmlScriptHelper Maven / Gradle / Ivy

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 6.1.2
Show newest version
package org.docx4j.convert.out.html;

public class HtmlScriptHelper {

	public static void createDefaultScript(StringBuilder result) {
		result.append("function toggleDiv(divid){");
		result.append("if(document.getElementById(divid).style.display == 'none'){");
		result.append("document.getElementById(divid).style.display = 'block';");
		result.append("}else{");
		result.append("document.getElementById(divid).style.display = 'none';");
		result.append("}");
		result.append("}\n");
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy