JPolite 3 pre-pre-pre-preview

Check it out: http://www.trilancer.com/jpolite3/

The intention is to build a lightweight web app framework with iOS-like user experience (icon, launcher, switcher …) + desktop wide-screen enhancements (preview, notifications …) with a minimal code base.

Working under Firefox, Chrome and Safari now. No IE8 or earlier support, sorry 🙂

Advertisements

7 comments on “JPolite 3 pre-pre-pre-preview

  1. I’m find a bug in jpolite v2,i want stored modules vertical postion in layout when i moved module.
    so, i fix it.
    modify two functions:

    loadLayout: function() {
    //Load layout via custom method or _moduleLayout variable defined in modules.js
    var l = this._loadLayout() || _moduleLayout;

    for (var t in l) {
    var tab = $.jpolite.Nav.getTab(t);
    if (tab) for (var i in l[t]) {
    var s = l[t][i].split(“:”);
    this.addModule({
    id: s[0],
    c: s[1],
    mc: s[2] || ”,
    mt: s[3] || ”,
    idx: s[4] || -1
    }, tab)
    }
    }
    },
    /**
    * Retrieve current layout and save via customizable method
    */
    saveLayout: function() {

    var r = “{” + $.jpolite.Nav.its.map(
    function() {
    var t = [], m = this.modules;
    $(“div.cc”).each(function(p, n) {
    $(“#” + n.id).children().each(function(j, k) {
    for (var i in m) {
    if (m[i].c && (m[i].id == k.id)) { //Skip static modules
    m[i].idx = j;
    t.push(“‘”.concat(m[i].id, “:”, m[i].c, “:”, m[i].mc, “:”, m[i].mt, “:”, m[i].idx, “‘”));
    break;
    }
    }
    });
    }
    )
    return “‘” + this.id + “‘:[” + t.toString() + “]”;
    }).get().join(“,”) + “}”;
    if (this._saveLayout) this._saveLayout(r);
    }

  2. As of SEPTEMBER-2012 , the jpolite demo URL is not working. Are you still working on the future versions ? Where can I see the demo of JP1, JP2 and JP3 ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s