diff --git a/app/views/documents/show.teisource.xslt b/app/views/documents/show.teisource.xslt index be23e31..4e0532b 100644 --- a/app/views/documents/show.teisource.xslt +++ b/app/views/documents/show.teisource.xslt @@ -8,7 +8,25 @@ version="1.0"> - + + +
+ < + + + > + + <!-- Omitting the facsimile ... download the + TEI document to see it --> + +
+
+ </ + + > +
+
+ diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 328457a..41b40db 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -16,7 +16,7 @@ = javascript_include_tag "/#{isomorphicDir}/skins/EnterpriseBlue/load_skin.js" - - %w{ seadragon-min RailsDataSource FileUploadForm SeaDragon application }.each do |js| + - %w{ seadragon-min CSSRules RailsDataSource FileUploadForm SeaDragon application }.each do |js| = javascript_include_tag "/javascripts/#{js}" = stylesheet_link_tag :all diff --git a/public/javascripts/CSSRules.js b/public/javascripts/CSSRules.js new file mode 100644 index 0000000..f7a0226 --- /dev/null +++ b/public/javascripts/CSSRules.js @@ -0,0 +1,54 @@ +isc.defineClass("CSSRules").addProperties({ + legalStyles: ["color", "backgroundColor", "display"], + + init : function() { + this.Super("init", arguments); + + // cssRules is a cache of the actual rules in the actual stylesheet + this.cssRules = {}; + + var head = document.documentElement.firstChild; + var title = "Dynamic-Styles"; + isc.Element.insertAdjacentHTML(head, "afterBegin", "