123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <!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;
- text-align: justify;
- font-size: 20px;
- line-height: 22px;
- }
- h1 {
- margin: 0;
- padding: 15px 10px;
- font-size: 25px;
- }
- button {
- padding: 20px;
- }
- </style>
-
- </head>
- <body>
- <button onclick="window.dialog1.open();">Open Lightbox</button>
- <button onclick="window.dialog2.open();">Open Animated Lightbox</button>
- <button onclick="window.dialog3.open();">Info box</button>
- <div id="lightbox01">
- <h1>Lightbox Example</h1>
- <p>
- Lorem <strong>ipsum dolor</strong> sit amet, <em style="color: red;">consectetur</em> adipisicing elit, sed do <em><strong>eiusmod tempor</strong></em> incididunt ut labore et dolore magna aliqua.
- Lorem <strong>ipsum dolor</strong> sit amet, <em style="color: red;">consectetur</em> adipisicing elit, sed do <em><strong>eiusmod tempor</strong></em> incididunt ut labore et dolore magna aliqua.
- </p>
- </div>
- <div id="lightbox02">
- <h1>Animated Lightbox Example</h1>
- <p>
- Lorem <strong>ipsum dolor</strong> sit amet, <em style="color: red;">consectetur</em> adipisicing elit, sed do <em><strong>eiusmod tempor</strong></em> incididunt ut labore et dolore magna aliqua.
- </p>
- </div>
- <div id="lightbox03">
- <h1>Info box</h1>
- <p>
- Lorem <strong>ipsum dolor</strong> sit amet, <em style="color: red;">consectetur</em> adipisicing elit, sed do <em><strong>eiusmod tempor</strong></em> incididunt ut labore et dolore magna aliqua.
- </p>
- </div>
- <script type="text/javascript" charset="utf-8">
-
- if (window.widget) {
- widget.setNavigationEnabled(false);
- }
- var init = function() {
-
- window.dialog1 = new Nokia.LightBox({
- element: '#lightbox01',
- height: '80%',
- width: '80%',
- buttons: {
- "Yes": function() {
- alert('yes');
- },
- "No": function() {
- this.close();
- }
- },
- create: function() {
- console.log("Lightbox 01: Create.");
- },
- show: function() {
- console.log("Lightbox 01: Show.");
- }
- });
- window.dialog2 = new Nokia.LightBox({
- element: '#lightbox02',
- height: '65%',
- width: '65%',
- animation: true,
- buttons: {
- "Close this box": function() {
- this.close();
- }
- }
- });
- window.dialog3 = new Nokia.LightBox({
- element: '#lightbox03',
- height: '65%',
- width: '65%',
- animation: false,
- buttonClose: true
- });
-
- /*
- * Hide splash when its all done.
- */
-
- Nokia.hideSplash();
- };
-
- /*
- * Show splash while loading components.
- */
-
- Nokia.showSplash('<span>loading</span>');
-
- window.onload = function() {
- Nokia.use('lightbox', init);
- };
- </script>
- </body>
- </html>
|