diff --git a/diff2html.js b/diff2html.js deleted file mode 100644 index 5bac827..0000000 --- a/diff2html.js +++ /dev/null @@ -1,51 +0,0 @@ -/* - * - * Diff to HTML (diff2html.js) - * Author: rtfpessoa - * - * Diff commands: - * git diff - */ - -var diffParser = new DiffParser(); -var htmlPrinter = new HtmlPrinter(); - -function Diff2Html() { -} - -/* - * Generates pretty html from string diff input - */ -Diff2Html.prototype.getPrettyHtmlFromDiff = function (diffInput) { - var diffJson = diffParser.generateDiffJson(diffInput); - return htmlPrinter.generateLineByLineJsonHtml(diffJson); -}; - -/* - * Generates json object from string diff input - */ -Diff2Html.prototype.getJsonFromDiff = function (diffInput) { - return diffParser.generateDiffJson(diffInput); -}; - -/* - * Generates pretty html from a json object - */ -Diff2Html.prototype.getPrettyHtmlFromJson = function (diffJson) { - return htmlPrinter.generateLineByLineJsonHtml(diffJson); -}; - -/* - * Generates pretty side by side html from string diff input - */ -Diff2Html.prototype.getPrettySideBySideHtmlFromDiff = function (diffInput) { - var diffJson = diffParser.generateDiffJson(diffInput); - return htmlPrinter.generateSideBySideJsonHtml(diffJson); -}; - -/* - * Generates pretty side by side html from a json object - */ -Diff2Html.prototype.getPrettySideBySideHtmlFromJson = function (diffJson) { - return htmlPrinter.generateSideBySideJsonHtml(diffJson); -}; diff --git a/index.html b/index.html index ef2dbe0..1ebfe86 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,6 @@ @@ -16,8 +14,8 @@ - + @@ -25,7 +23,7 @@ - +