Tizen-winset: resize VirtualGrid widget in demo
[platform/framework/web/web-ui-fw.git] / demos / tizen-winsets / webappInit.js
1 $(document).on( "pageinit", "#main" , function () {
2         if ( window.tizen && window.tizen.application ) {
3                 $( "#main .ui-btn-back" ).on( "vclick", function () {
4                         window.tizen.application.getCurrentApplication().exit();
5                         return false;
6                 });
7         }
8 });
9
10 $(document).ready( function () {
11         // add current datetime with browser language format
12         // NOTE: Globalize.* functions must be run after docoument ready.
13         $('#current_date').html(Globalize.culture().name + " -- " +
14                                 Globalize.format( new Date(), "F" ));
15         $('#html_font_size').html('html font size:' + $('html').css('font-size'));
16 });