Sencha Touch 2 test

reference: http://docs.sencha.com/touch/2-1/#!/guide/first_app

by lozenlin

HTML

<link rel="stylesheet" href="http://cdn.sencha.io/touch/sencha-touch-2.1.0/resources/css/sencha-touch.css">
<script src="http://cdn.sencha.io/touch/sencha-touch-2.1.0/sencha-touch-all.js"></script>

CSS

html {
    overflow: hidden
}

.home {
    text-align: center;
}

.home img {
    width: 64%;
}

.home h1 {
    font-weight: bold;
    font-size: 1.2em;
}

.home p {
    color: #666;
    font-size: 0.8em;
    line-height: 1.5em;
    margin: 10px 20px 12px 20px;
}

.home h2 {
    color: #999;
    font-size: 0.7em;
}

.twitterView .x-dataview-item {
    padding: 10px;
    min-height: 50px;
}

.twitterView .x-dataview-item img {
    float: left;
    display: block;
    margin-top: 36px;
}

.twitterView .x-dataview-item h2 {
    font-weight: bold;
    color: #333;
    margin: 0px 0px 10px 60px;
}

.twitterView .x-dataview-item p {
    color: #666;
    margin-left: 60px;
    font-size: 0.8em;
}

/*used in the dataview guide*/
.my-dataview-item {
    background: #ddd;
    padding: 1em;
    border-bottom: 1px solid #ccc;
}
.my-dataview-item img {
    float: left;
    margin-right: 1em;
}
.my-dataview-item h2 {
    font-weight: bold;
}

JavaScript

Ext.application({
    name: 'Sencha',

    launch: function() {
        Ext.create("Ext.tab.Panel", {
            fullscreen: true,
            tabBarPosition: 'bottom',

            items: [
                {
                title: 'Home',
                iconCls: 'home',
                cls: 'home',

                html: [
                    '<img src="http://staging.sencha.com/img/sencha.png" />',
                    '<h1>Welcome to Sencha Touch</h1>',
                    "<p>You're creating the Getting Started app. This demonstrates how ",
                    "to use tabs, lists and forms to create a simple app</p>",
                    '<h2>Sencha Touch 2</h2>'
                    ].join("")

                },
                {
                    xtype: 'nestedlist',
                    title: 'Lozen\'s Blog',
                    iconCls: 'star',
                    displayField: 'title',
                    
                    store: {
                        type: 'tree',
                        
                        fields:[
                            'title', 'link', 'author', 'contentSnippet', 'content', 
                            {name: 'leaf', defaultValue: true }
                        ],
                        
                        root: {
                            leaf: false
                        },
                        
                        proxy:{
                            type: 'jsonp',
                            url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/lozenlin',
                            reader: {
                                type: 'json',
                                rootProperty: 'responseData.feed.entries'
                            }
                        }
                    },
                    
                    detailCard: {
                        xtype: 'panel',
                        scrollable: true,
                       ...