More Related Content
Similar to front_server20131218
Similar to front_server20131218 (20)
More from cyberagent (20)
front_server20131218
- 45. ページを作る (JavaScript)
Chikuwa
HTML
var notiCount = getNotiCount();
<header>
tag( header )
<button class= menu ></button>
.tag( button.menu ).gat()
<h1>Ameba</h1>
.tag( h1 ).text( Ameba ).gat()
<button class= noti >
.tag( button.noti )
.tag( span.counter )
.text(notiCount).gat()
.gat();
<span class= counter >1</span>
</button>
</header>
- 46. ページを作る (JavaScript)
View
Routing
$.views({
$.routes( group , {
/:
group.top : {
/:groupId/info : {name: info , action: info }
init: function(data) {
this.data = data ¦¦ {};
},
render: function() {
return tag( div );
});
Action
function top(vars) {
var view = $.view( group.top );
}
page.replace(view);
}
});
{name: top , action: top },
}