123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="stylesheet" href="../../../themes/themeroller/default-theme/ui.all.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../themes/nokia/ext-theme/default/360x640/custom.css" type="text/css" media="screen" />
-
- <script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
-
- <script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>
- <style type="text/css" media="screen">
- body {
- font-size: 14px;
- padding: 15px;
- font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
- }
- p {
- margin: 30px 10px;
- }
- #link01 {
- /* Style */
- }
- </style>
- </head>
- <body>
- <br/><br/><br/><br/>
- <a href="#" id="link01">Link 01</a>
- <br /><br />
- <a href="#" id="link02">External web page</a>
- <br /><br />
- <script type="text/javascript" charset="utf-8">
-
- if (window.widget) {
- widget.setNavigationEnabled(false);
- }
- var init = function() {
-
- window.link1 = new Nokia.TextLink({
- element: '#link01',
- label: 'Callback',
- style: {
- color: 'red',
- fontSize: '15px'
- },
- create: function() {
- console.log("TextLink: Create");
- },
- click: function() {
- alert('TextLink: Click');
- }
- });
- window.link2 = new Nokia.TextLink({
- element: '#link02',
- url: 'http://www.forum.nokia.com/',
- label: '<b>Testing</b> Label.',
- style: {
- color: 'green',
- fontSize: '25px'
- },
- click: function() {
- console.log("TextLink: Click");
- }
- });
-
- /*
- * Hide splash when its all done.
- */
-
- Nokia.hideSplash();
- };
-
- /*
- * Show splash while loading components.
- */
-
- Nokia.showSplash('<span>loading</span>');
-
- Nokia.use('textlink', init);
- </script>
- </body>
- </html>
|