-$( document ).bind("pagecreate", function () {
-
- $("#demo-date").bind("date-changed", function ( e, newDate ) {
- $("#selected-date1").text( newDate.toString() );
- });
-
- $("#demo-date2").bind("date-changed", function ( e, newDate ) {
- $("#selected-date2").text( newDate.toString() );
- });
-
- $("#demo-date3").bind("date-changed", function ( e, newDate ) {
- $("#selected-date3").text( newDate.toString() );
- });
-
- $("#demo-date4").bind("date-changed", function ( e, newDate ) {
- $("#selected-date4").text( newDate.toString() );
- });
-
- $("#demo-date5").bind("date-changed", function ( e, newDate ) {
- $("#selected-date5").text( newDate.toString() );
- });
-
- $("#demo-date6").bind("date-changed", function ( e, newDate ) {
- $("#selected-date6").text( newDate.toString() );
- });
-
- $('#noti-demo').bind('vmouseup', function ( e ) {
- $('#notification').notification('open');
- });
-
- $('#noti-icon1').bind('vclick', function ( e ) {
- $('#notification').notification('icon', './test/icon02.png');
- });
-
- $('#noti-icon2').bind('vclick', function ( e ) {
- $('#notification').notification('icon', './test/icon01.png');
- });
-
- $('#gallery-demo').bind('pageshow', function () {
- $('#gallery').gallery('add', './test/01.jpg');
- $('#gallery').gallery('add', './test/02.jpg');
- $('#gallery').gallery('add', './test/03.jpg');
- $('#gallery').gallery('add', './test/04.jpg');
- $('#gallery').gallery('add', './test/05.jpg');
- $('#gallery').gallery('add', './test/06.jpg');
- $('#gallery').gallery('add', './test/07.jpg');
- $('#gallery').gallery('add', './test/08.jpg');
- $('#gallery').gallery('add', './test/09.jpg');
- $('#gallery').gallery('refresh', 3);
- });
-
- $('#gallery-demo').bind('pagebeforehide', function () {
- $('#gallery').gallery('empty');
- });
-
- $('#gallery-add').bind('vmouseup', function ( e ) {
- $('#gallery').gallery('add', './test/10.jpg');
- $('#gallery').gallery('add', './test/11.jpg');
- $('#gallery').gallery('refresh');
- });
-
- $('#gallery-del').bind('vmouseup', function ( e ) {
- $('#gallery').gallery('remove');
- });
-
- /* Gen list : Dummy DB load */
- $( document ).on( "pagecreate", ".virtuallist_demo_page", function () {
- /* ?_=ts code for no cache mechanism */
- $.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) {
- $("ul").filter( function () {
- return $( this ).data("role") == "virtuallistview";
- }).addClass("vlLoadSuccess");
-
- $(".virtuallist_demo_page").die();
- $("ul.ui-virtual-list-container").virtuallistview("create");
- });
- });
-
- /*Expandable list : Dummy DB load*/
- $( document ).on( "pagecreate", "#genlist_extendable_page", function () {
- /*?_=ts code for no cache mechanism*/
- $.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) {
- $("ul").filter( function () {
- return $( this ).data("role") == "extendablelist";
- }).addClass("elLoadSuccess");
-
- $("#genlist-extendable-page").die();
- $("ul.ui-extendable-list-container").extendablelist("create");
- // TODO: 'create' is called twice!!
- });
- });
-
- // Expand all textarea height automatically
- $( document ).on( "pagecreate", "#ButtonNolist", function ( ev ) {
- var page = $( ev.target );
- $( page ).bind( 'pageshow' , function ( ) {
- var textarea = page.find('textarea');
- $( textarea ).each( function ( idx, el ) {
- var h = Math.max( el.clientHeight, el.scrollHeight );
- $( el ).height( h );
- } );
- } );
- } );
-
-});
-
-$(document).bind( "pageinit" , function() {
+$( document ).on( "pageinit", function () {
$.mobile.tizen.enableSelection( $("div:jqmData(role='page')"), 'none' );
});
-$(document).ready( function () {
- // add current datetime with browser language format
- // NOTE: Globalize.* functions must be run after docoument ready.
- $('#current_date').html(Globalize.culture().name + " -- " +
- Globalize.format( new Date(), "F" ));
- $('#html_font_size').html('html font size:' + $('html').css('font-size'));
-});
-$(document).delegate("#main", "pageinit", function() {
+$(document).on( "pageinit", "#main" , function () {
if ( window.tizen && window.tizen.application ) {
- $("#main .ui-btn-back").bind("vclick", function() {
+ $( "#main .ui-btn-back" ).on( "vclick", function () {
window.tizen.application.getCurrentApplication().exit();
return false;
});
}
});
+$(document).ready( function () {
+ // add current datetime with browser language format
+ // NOTE: Globalize.* functions must be run after docoument ready.
+ $('#current_date').html(Globalize.culture().name + " -- " +
+ Globalize.format( new Date(), "F" ));
+ $('#html_font_size').html('html font size:' + $('html').css('font-size'));
+});
<div data-role="footer">
</div>
<link rel="stylesheet" href="styles.css" />
+ <script type="text/javascript" src="buttonNolist.js"></script>
</div>
</body>
</html>
--- /dev/null
+// Expand all textarea height automatically
+$('#ButtonNolist').one( "pagecreate", function () {
+ $( this ).on( 'pageshow' , function ( ) {
+ var textarea = $(this).find('textarea');
+ $( textarea ).each( function ( idx, el ) {
+ var h = Math.max( el.clientHeight, el.scrollHeight );
+ $( el ).height( h );
+ } );
+ } );
+} );
\ No newline at end of file
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8" >
+ <script src="../tizen-web-ui-fw/latest/js/jquery.min.js"></script>
+ <script src="../configure.js"></script>
+ <script src="../tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+ <script src="../tizen-web-ui-fw/latest/js/tizen-web-ui-fw.min.js"
+ data-framework-theme="tizen-white"
+ data-framework-viewport-width="device-width">
+ </script>
+ <title>Tizen UI - Datefield</title>
+ <!-- for compatibility test -->
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black" />
+ <link rel="apple-touch-icon" href="../icon-tizen.png" />
+</head>
+<body>
<div data-role="page" id="datetimepicker-demo" data-add-back-btn="true">
<div data-role="header" data-position="fixed">
<h1>Date/time picker</h1>
</div><!-- /content -->
<div data-role="footer">
</div>
+ <script src="datefield.js"></script>
</div> <!-- /page -->
-
+</body>
+</html>
--- /dev/null
+$( document ).one("pagecreate", "#datetimepicker-demo", function () {
+
+ $("#demo-date").on("date-changed", function ( e, newDate ) {
+ $("#selected-date1").text( newDate.toString() );
+ });
+
+ $("#demo-date2").on("date-changed", function ( e, newDate ) {
+ $("#selected-date2").text( newDate.toString() );
+ });
+
+ $("#demo-date3").on("date-changed", function ( e, newDate ) {
+ $("#selected-date3").text( newDate.toString() );
+ });
+
+ $("#demo-date4").on("date-changed", function ( e, newDate ) {
+ $("#selected-date4").text( newDate.toString() );
+ });
+
+ $("#demo-date5").on("date-changed", function ( e, newDate ) {
+ $("#selected-date5").text( newDate.toString() );
+ });
+
+ $("#demo-date6").on("date-changed", function ( e, newDate ) {
+ $("#selected-date6").text( newDate.toString() );
+ });
+});
\ No newline at end of file
<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8" >
+ <script src="../tizen-web-ui-fw/latest/js/jquery.min.js"></script>
+ <script src="../configure.js"></script>
+ <script src="../tizen-web-ui-fw/latest/js/tizen-web-ui-fw-libs.min.js"></script>
+ <script src="../tizen-web-ui-fw/latest/js/tizen-web-ui-fw.min.js"
+ data-framework-theme="tizen-white"
+ data-framework-viewport-width="device-width">
+ </script>
+ <title>Tizen UI - Gallery</title>
+ <!-- for compatibility test -->
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black" />
+ <link rel="apple-touch-icon" href="../icon-tizen.png" />
+</head>
+<body>
<div data-role="page" id="gallery-demo" data-add-back-btn="true">
<div data-role="header" data-position="fixed">
<h1>Gallery</h1>
<div data-role="gallery" id="gallery" data-vertical-align="middle">
</div>
</div> <!-- /content -->
- <div data-role="footer"data-position ="fixed">
+ <div data-role="footer" data-position ="fixed">
<div data-role="tabbar">
<ul>
<li id="gallery-add"><a href="#">Add</a></li>
</ul>
</div><!-- /navbar -->
</div>
+ <script src="gallery.js"></script>
</div> <!-- /page -->
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+$( document ).one("pagecreate", "#gallery-demo", function () {
+ $('#gallery-demo').on('pageshow', function () {
+ $('#gallery').gallery('add', './test/01.jpg');
+ $('#gallery').gallery('add', './test/02.jpg');
+ $('#gallery').gallery('add', './test/03.jpg');
+ $('#gallery').gallery('add', './test/04.jpg');
+ $('#gallery').gallery('add', './test/05.jpg');
+ $('#gallery').gallery('add', './test/06.jpg');
+ $('#gallery').gallery('add', './test/07.jpg');
+ $('#gallery').gallery('add', './test/08.jpg');
+ $('#gallery').gallery('add', './test/09.jpg');
+ $('#gallery').gallery('refresh', 3);
+ });
+
+ $('#gallery-demo').on('pagebeforehide', function () {
+ $('#gallery').gallery('empty');
+ });
+
+ $('#gallery-add').on('vmouseup', function ( e ) {
+ $('#gallery').gallery('add', './test/10.jpg');
+ $('#gallery').gallery('add', './test/11.jpg');
+ $('#gallery').gallery('refresh');
+ });
+
+ $('#gallery-del').on('vmouseup', function ( e ) {
+ $('#gallery').gallery('remove');
+ });
+});
\ No newline at end of file
</div>
<div data-role="footer">
</div>
+ <script type="text/javascript" src="list-extendable.js"></script>
</div>
--- /dev/null
+$("#genlist_extendable_page").one("pagecreate", function ( el ) {
+ /*?_=ts code for no cache mechanism*/
+ $.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) {
+ $("ul").filter( function () {
+ return $( this ).data("role") == "extendablelist";
+ }).addClass("elLoadSuccess");
+ $("ul.ui-extendable-list-container").extendablelist("create");
+ // TODO: 'create' is called twice!!
+ });
+});
\ No newline at end of file
</div>
<div data-role="footer">
</div>
+ <script type="text/javascript" src="virtuallist.js"></script>
</div>
</div>
<div data-role="footer">
</div>
+ <script type="text/javascript" src="virtuallist.js"></script>
</div>
</div>
<div data-role="footer">
</div>
+ <script type="text/javascript" src="virtuallist.js"></script>
</div>
</div>
<div data-role="footer">
</div>
+ <script type="text/javascript" src="virtuallist.js"></script>
</div>
</div>
<div data-role="footer" data-add-back-btn="true">
</div>
+ <script type="text/javascript" src="virtuallist.js"></script>
</div>
--- /dev/null
+/* Gen list : Dummy DB load */
+$("div.virtuallist_demo_page").one("pagecreate", function () {
+ /* ?_=ts code for no cache mechanism */
+ $.getScript( "virtuallist-db-demo.js", function ( data, textStatus ) {
+ $("ul").filter( function () {
+ return $( this ).data("role") == "virtuallistview";
+ }).addClass("vlLoadSuccess");
+ $("ul.ui-virtual-list-container").virtuallistview("create");
+ });
+});
\ No newline at end of file
--- /dev/null
+$( "div.noti-demo" ).on("pagecreate", function () {
+ $('#noti-demo').on('vmouseup', function ( e ) {
+ $('#notification').notification('open');
+ });
+
+ $('#noti-icon1').on('vclick', function ( e ) {
+ $('#notification').notification('icon', './test/icon02.png');
+ });
+
+ $('#noti-icon2').on('vclick', function ( e ) {
+ $('#notification').notification('icon', './test/icon01.png');
+ });
+
+});
\ No newline at end of file
<!DOCTYPE html>
-<div data-role="page" data-add-back-btn="true">
+<div data-role="page" data-add-back-btn="true" class="noti-demo">
<div data-role="notification" id="notification" data-type="popup" data-interval="3000">
<p>Notification Demo</p>
</div>
</div><!-- /content -->
<div data-role="footer">
</div>
+ <script type="text/javascript" src="noti.js"></script>
</div> <!-- /page -->
<!DOCTYPE html>
-<div data-role="page" data-add-back-btn="true">
+<div data-role="page" data-add-back-btn="true" class="noti-demo">
<div data-role="notification" id="notification" data-type="popup">
<p>Notification Demo</p>
</div>
</div><!-- /content -->
<div data-role="footer">
</div>
+ <script type="text/javascript" src="noti.js"></script>
</div> <!-- /page -->
<!DOCTYPE html>
-<div data-role="page" data-add-back-btn="true">
+<div data-role="page" data-add-back-btn="true" class="noti-demo">
<div data-role="notification" id="notification" data-type="ticker" data-interval="3000">
<img src="./test/icon02.png">
<p>Hello World</p>
</div><!-- /content -->
<div data-role="footer">
</div>
+ <script type="text/javascript" src="noti.js"></script>
</div> <!-- /page -->
<!DOCTYPE html>
-<div data-role="page" data-add-back-btn="true">
+<div data-role="page" data-add-back-btn="true" class="noti-demo">
<div data-role="notification" id="notification" data-type="ticker">
<img src="./test/icon01.png">
<p>Hello Tizen</p>
</div><!-- /content -->
<div data-role="footer">
</div>
+ <script type="text/javascript" src="noti.js"></script>
</div> <!-- /page -->