Your HTML and CSS for your email is valid.
-Your HTML and CSS for your email contains potential errors:
-The
near
on line
of your code.
- * target
is the ID of an element. 2DO
- *
- * This method may only be called after {@link #setXml} and {@link #setXslt} have - * been called. - *
- * Note that the target element must exist once this method is called. Calling
- * this method before onload
was fired will most likely
- * not work.
- *
- * @param target the ID of an element
- */
- this.transform = function(target) {
- if (!browserSupportsXSLT()) {
- return;
- }
- var str = /^\s*;
- var t = this;
- if (document.recalc) {
- var change = function() {
- var c = 'complete';
- if (xm.readyState == c && xs.readyState == c) {
- window.setTimeout(function() {
- xmlDoc = xm.XMLDocument;
- xsltDoc = xs.XMLDocument;
- callback(t);
- document.all[target].innerHTML = xm.transformNode(xs.XMLDocument);
- }, 50);
- }
- };
-
- var xm = document.createElement('xml');
- xm.onreadystatechange = change;
- xm[str.test(xml) ? "innerHTML" : "src"] = xml;
-
- var xs = document.createElement('xml');
- xs.onreadystatechange = change;
- xs[str.test(xslt) ? "innerHTML" : "src"] = xslt;
-
- with (document.body) {
- insertBefore(xm);
- insertBefore(xs);
- };
- }
- else {
- var transformed = false;
-
- var xm = {
- readyState: 4
- };
- var xs = {
- readyState: 4
- };
- var change = function() {
- if (xm.readyState == 4 && xs.readyState == 4 && !transformed) {
- xmlDoc = xm.responseXML;
- xsltDoc = xs.responseXML;
- var resultDoc;
- var processor = new XSLTProcessor();
-
- if (typeof processor.transformDocument == 'function') {
- // obsolete Mozilla interface
- resultDoc = document.implementation.createDocument("", "", null);
- processor.transformDocument(xm.responseXML, xs.responseXML, resultDoc, null);
- var out = new XMLSerializer().serializeToString(resultDoc);
- callback(t);
- document.getElementById(target).innerHTML = out;
- }
- else {
- processor.importStylesheet(xs.responseXML);
- resultDoc = processor.transformToFragment(xm.responseXML, document);
- callback(t);
- document.getElementById(target).innerHTML = '';
- document.getElementById(target).appendChild(resultDoc);
- }
-
- transformed = true;
- }
- };
-
- if (str.test(xml)) {
- xm.responseXML = new DOMParser().parseFromString(xml, "text/xml");
- }
- else {
- xm = new XMLHttpRequest();
- xm.onreadystatechange = change;
- xm.open("GET", xml);
- xm.send(null);
- }
-
- if (str.test(xslt)) {
- xs.responseXML = new DOMParser().parseFromString(xslt, "text/xml");
- change();
- }
- else {
- xs = new XMLHttpRequest();
- xs.onreadystatechange = change;
- xs.open("GET", xslt);
- xs.send(null);
- }
- }
- }
-
-}
-
-/**
- * Returns whether the browser supports XSLT.
- *
- * @return the browser supports XSLT
- * @type boolean
- */
-function browserSupportsXSLT() {
- var support = false;
- if (document.recalc) { // IE 5+
- support = true;
- }
- else if (window.XMLHttpRequest != undefined && window.XSLTProcessor != undefined) { // Mozilla 0.9.4+, Opera 9+
- var processor = new XSLTProcessor();
- if (typeof processor.transformDocument == 'function') {
- support = window.XMLSerializer != undefined;
- }
- else {
- support = true;
- }
- }
- return support;
-}
diff --git a/views/index.haml b/views/index.haml
index 5787b7d..f10055b 100644
--- a/views/index.haml
+++ b/views/index.haml
@@ -50,8 +50,6 @@
%a{:href => "#"} Plain Text
%li.format.tab.source{"data-message-format" => "source"}
%a{:href => "#"} Source
- %li.tab.analysis
- %a{:href => "#"} Analysis
%li.action.download
%a.button{:href => "#"}
%span Download