|
|
@ -19,7 +19,7 @@ function appendTo(element) { |
|
|
|
return function(e) {element.appendChild(e);}; |
|
|
|
} |
|
|
|
|
|
|
|
function display(ALTODoc) { |
|
|
|
function display(ALTODoc, thresholdInput) { |
|
|
|
var printSpace = Element.make(ALTODoc.querySelector('Page PrintSpace')); |
|
|
|
Element.setPrintSpace(printSpace); |
|
|
|
workzone.style.height = Element.printSpace.pxHeight + 'px'; |
|
|
@ -53,8 +53,9 @@ function display(ALTODoc) { |
|
|
|
|
|
|
|
function makeString(parentElement) { |
|
|
|
return function(string) { |
|
|
|
var wc = string.getAttribute('WC'); |
|
|
|
var dom = Dom.make('span', { |
|
|
|
class: "String", |
|
|
|
class: (wc < thresholdInput.value ? ["lowQuality"] : []).concat("String"), |
|
|
|
id: string.getAttribute('ID'), |
|
|
|
textContent: string.getAttribute('CONTENT') |
|
|
|
}); |
|
|
|