[Bps-public-commit] r12660 - in pie/branches/named-params/pieplate/PIE-Plate/share/web/static: css
clkao at bestpractical.com
clkao at bestpractical.com
Sat May 24 01:36:25 EDT 2008
Author: clkao
Date: Sat May 24 01:36:25 2008
New Revision: 12660
Added:
pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/
pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css
Modified:
pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js
Log:
basic css.
Added: pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css
==============================================================================
--- (empty file)
+++ pie/branches/named-params/pieplate/PIE-Plate/share/web/static/css/app.css Sat May 24 01:36:25 2008
@@ -0,0 +1,11 @@
+div.lorzy-code {
+ color: blue;
+};
+
+div.lorzy-code-arg {
+ color: green;
+};
+
+span.lorzy-const {
+ color: black;
+};
Modified: pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js
==============================================================================
--- pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js (original)
+++ pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js Sat May 24 01:36:25 2008
@@ -1,11 +1,12 @@
function lorzy_show_expression_str(str, parent) {
- parent.createAppend('span', { className: 'string' }, [ str ]);
+ parent.createAppend('span', { className: 'lorzy-const string' }, [ str ]);
}
function lorzy_show_expression(parent) {
var ret = parent.createAppend('div', { className: this.name });
+ ret.addClass('lorzy-code');
var that = this;
jQuery(ret)
.html(this.name+': '+this.toString() )
@@ -14,6 +15,7 @@
jQuery.each(this.args, function(name, exp) {
console.log(name + ": "+exp);
var entry = ret.createAppend('div', { className: that.name+' '+name });
+ entry.addClass('lorzy-code-arg');
jQuery(entry).html(name);
if (typeof(exp) == 'string') {
lorzy_show_expression_str(exp, entry);
More information about the Bps-public-commit
mailing list