Apache2-Translation

 view release on metacpan or  search on metacpan

lib/Apache2/Translation/Admin/effects.js  view on Meta::CPAN

Element.collectTextNodesIgnoreClass = function(element, className) {  
  return $A($(element).childNodes).collect( function(node) {
    return (node.nodeType==3 ? node.nodeValue : 
      ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? 
        Element.collectTextNodesIgnoreClass(node, className) : ''));
  }).flatten().join('');
};

Element.setContentZoom = function(element, percent) {
  element = $(element);  
  element.setStyle({fontSize: (percent/100) + 'em'});   
  if (Prototype.Browser.WebKit) window.scrollBy(0,0);
  return element;
};

Element.getInlineOpacity = function(element){
  return $(element).style.opacity || '';
};

Element.forceRerendering = function(element) {
  try {

lib/Apache2/Translation/Admin/effects.js  view on Meta::CPAN

      scaleFrom: 100.0,
      scaleTo:   percent
    }, arguments[2] || { });
    this.start(options);
  },
  setup: function() {
    this.restoreAfterFinish = this.options.restoreAfterFinish || false;
    this.elementPositioning = this.element.getStyle('position');
    
    this.originalStyle = { };
    ['top','left','width','height','fontSize'].each( function(k) {
      this.originalStyle[k] = this.element.style[k];
    }.bind(this));
      
    this.originalTop  = this.element.offsetTop;
    this.originalLeft = this.element.offsetLeft;
    
    var fontSize = this.element.getStyle('font-size') || '100%';
    ['em','px','%','pt'].each( function(fontSizeType) {
      if (fontSize.indexOf(fontSizeType)>0) {
        this.fontSize     = parseFloat(fontSize);
        this.fontSizeType = fontSizeType;
      }
    }.bind(this));
    
    this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
    
    this.dims = null;
    if (this.options.scaleMode=='box')
      this.dims = [this.element.offsetHeight, this.element.offsetWidth];
    if (/^content/.test(this.options.scaleMode))
      this.dims = [this.element.scrollHeight, this.element.scrollWidth];
    if (!this.dims)
      this.dims = [this.options.scaleMode.originalHeight,
                   this.options.scaleMode.originalWidth];
  },
  update: function(position) {
    var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
    if (this.options.scaleContent && this.fontSize)
      this.element.setStyle({fontSize: this.fontSize * currentScale + this.fontSizeType });
    this.setDimensions(this.dims[0] * currentScale, this.dims[1] * currentScale);
  },
  finish: function(position) {
    if (this.restoreAfterFinish) this.element.setStyle(this.originalStyle);
  },
  setDimensions: function(height, width) {
    var d = { };
    if (this.options.scaleX) d.width = width.round() + 'px';
    if (this.options.scaleY) d.height = height.round() + 'px';
    if (this.options.scaleFromCenter) {

lib/Apache2/Translation/Admin/effects.js  view on Meta::CPAN

      this.options
    );
  }
});

Element.CSS_PROPERTIES = $w(
  'backgroundColor backgroundPosition borderBottomColor borderBottomStyle ' + 
  'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' +
  'borderRightColor borderRightStyle borderRightWidth borderSpacing ' +
  'borderTopColor borderTopStyle borderTopWidth bottom clip color ' +
  'fontSize fontWeight height left letterSpacing lineHeight ' +
  'marginBottom marginLeft marginRight marginTop markerOffset maxHeight '+
  'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' +
  'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' +
  'right textIndent top width wordSpacing zIndex');
  
Element.CSS_LENGTH = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;

String.__parseStyleElement = document.createElement('div');
String.prototype.parseStyle = function(){
  var style, styleRules = $H();

lib/Apache2/Translation/Admin/my.css  view on Meta::CPAN

p, option, select, input, textarea {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
}

input[type="submit"], select {
  height: 14pt;
}

textarea {
  font-family: monospace;
  border: 0;
  margin: 0;
}

a.opener {
  text-decoration: none;
}

td.control img {
  border: none;
  margin: 2px;
  padding: 0;
}

td.control {
  width: 30px;
  vertical-align: middle;
  line-height: 1px;
  font-size: 1px;
}

a.opener img, h3 img {
  border: none;
  margin-top: 5px;
  margin-bottom: -5px;
  margin-left: 5px;
}

h2 {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-style: normal;
  font-variant: small-caps;
  font-weight: bold;
}

h1 {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 12pt;
  font-style: normal;
  font-weight: bold;
}

h2 img {
  border: none;
  margin-right: 10px;
}

h3 {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 10pt;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
  background-color: #cccccc;
  margin-bottom: 0;
  margin-top: 10px;
  padding-top: 2px;
  padding-bottom: 3px;
}

div.fetch {
  border-top: solid #999999 1px;
  width: 100%;
  background-color: #ddddcc;
  margin: 0;
}

div.fetch th {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
}

div.fetch td {
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
}

.header {
  margin-left: 10pt;
}

.saver a {
  font-size: 9pt;
  font-weight: normal;
  text-decoration: none;
  color: blue;
}

.saver a:hover {
  color: red;
}

form {
  margin: 0;

lib/Apache2/Translation/Admin/my.css  view on Meta::CPAN

  width: 100%;
  height: 100%;
  min-height: 32px;
  margin: 0;
  padding: 0;
}

textarea.comment_ta {
  width: 100%;
  height: 100%;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  font-style: italic;
  font-size: 6.5pt;
  margin: 0;
  padding: 0;
}

td.comment_ta {
  width: 190px;
  overflow: hidden;
}

td.tdc1, td.tdc2, td.tdc3 {



( run in 0.487 second using v1.01-cache-2.11-cpan-5735350b133 )