PATH:
home
/
letacommog
/
letaweb
/
scripts
var Skin = function(name, css, html) { this._cssCode = css; this._htmlCode = html; this._name = ''; this._module = ''; this._format = 0; this._init = function() { var that = this; }; var n = name.replace(' ', '-'); n = n.split('.'); this._format = 0; if(n.length == 2) { this._module = $.trim(n[0]); this._name = $.trim(n[1]); } else if(n.length == 3) { this._module = $.trim(n[0]); this._name = $.trim(n[1]); this._format = $.trim(n[2]); } else { this._module = ''; this._name = $.trim(name); } var m = this._module == '' ? '' : (this._module); this.class = this._name; this._init(); SkinManager.addSkin(this); }; var SkinManager = new function() { this._skins = {}; this.parseHtml = function(html) { var rs = []; if(!html) return rs; var blocks = html.split('}'); blocks.pop(); var len = blocks.length; for (var i = 0; i < len; i++) { var pair = blocks[i].split('{'); var r = {}; r['label'] = $.trim(pair[0]); r['controls'] = this.parseHtmlBlock(pair[1]); rs.push(r); } return rs; }; this.parseHtmlBlock= function(html) { var rs = {}; var declarations = html.split(';'); declarations.pop(); var len = declarations.length; for (var i = 0; i < len; i++) { var loc = declarations[i].indexOf(':'); var property = $.trim(declarations[i].substring(0, loc)); var value = $.trim(declarations[i].substring(loc + 1)); if (property != "" && value != "") { rs[property] = value; } } return rs; }; this.addSkin = function(s) { if(!this._skins[s._module + s._format]) { this._skins[s._module + s._format] = {}; } if(!this._skins[s._module + s._format][s._name]) { this._skins[s._module + s._format][s._name] = s; } }; this.getSkin = function(m, f, n) { if(!this._skins[m + f]) { return null; } if( n == '') return new Skin(m + '.' + f); if(!this._skins[m + f][n]) { return null; } return this._skins[m + f][n]; }; this.changePalette = function() { var colors = PM.palette.colors; for(var i = 0;i < 5;i++) { for(var j = 0;j < 5;j++) { var index = i * 5 + j; var c = colors[j][i].toString(); var colorClass = '.color-' + index; StyleSheet.common_skin._setCSS(colorClass, 'color', c); } } $(document).trigger('changePalette'); }; };
[+]
..
[+]
sample_images
[-] ssultils.js
[edit]
[-] dialog.js
[edit]
[-] colorpicker.js
[edit]
[-] script.js
[edit]
[+]
libraries
[-] ui.dbfilter-editing.js
[edit]
[-] stgrid.js
[edit]
[-] ui.category-editing.js
[edit]
[-] forms.js
[edit]
[-] player.swf
[edit]
[-] language.js
[edit]
[-] im.js
[edit]
[-] terms_en.js
[edit]
[-] skinutils.js
[edit]
[-] create_page.js
[edit]
[-] ihover.js
[edit]
[-] builder.js
[edit]
[-] ui.tab-content.js
[edit]
[-] admin.js
[edit]
[-] ui.tab-editing.js
[edit]
[-] login.js
[edit]
[-] popup.js
[edit]
[-] ecommerce.js
[edit]
[-] stEditor.js
[edit]
[-] colorutils.js
[edit]
[-] livedemo.js
[edit]
[-] palette.js
[edit]
[+]
editor