Advertisement
joris

BBUI - Index.html

Sep 6th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.37 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
  2. <!--
  3. * Copyright 2010-2011 Research In Motion Limited.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <html>
  18.     <head>
  19.         <meta name="x-blackberry-defaultHoverEffect" content="false" />
  20.         <link  rel="stylesheet" type="text/css" href="bbui-0.9.4.css"><link />
  21.         <script type="text/javascript" src="js/jquery181.js"></script>
  22.         <script type="text/javascript" src="bbui-0.9.4.js"></script>
  23.         <script type="text/javascript" src="js/webworks-1.0.1.6.js"></script>
  24.         <script type="text/javascript">
  25.             //document.addEventListener('webworksready', function(e) {
  26.                 // For some fun I did some random color scheme generation :o)
  27.                 var highlightColor,
  28.                     randomNumber;
  29.                 randomNumber=Math.floor(Math.random()*100);
  30.                 if (randomNumber > 90) {
  31.                       highlightColor = '#BA55D3';
  32.                 } else if (randomNumber > 60) {
  33.                       highlightColor = '#00BC9F';
  34.                 } else if (randomNumber > 30) {
  35.                       highlightColor = '#00A8DF';
  36.                 } else {
  37.                     highlightColor = '#B2CC00';
  38.                 }
  39.                
  40.     bb.init();
  41.     bb.init({actionBarDark: true,
  42.             controlsDark: true,
  43.             listsDark: false,
  44.             bb10ForPlayBook: false,
  45.             highlightColor: highlightColor,
  46.             onscreenready: function(element, id) {
  47.                 if (id == 'dataOnLoad') {
  48.                     dataOnLoad_initialLoad(element);
  49.                 } else if (id == 'masterDetail') {
  50.                     masterDetail_initialLoad(element);
  51.                 }
  52.                                            
  53. if (bb.device.isBB10 && (id != 'input') && (id != 'pillButtons')) {
  54.     var titles = element.querySelectorAll('[data-bb-type=title]');
  55.             if (titles.length > 0) {
  56.             titles[0].parentNode.removeChild(titles[0]);
  57.             }
  58.         }
  59.                                            
  60.     },
  61.     ondomready: function(element, id) {
  62.         if (id == 'MyPageSample') {
  63.             dataOnTheFly_initialLoad(element);
  64.         }
  65.     }
  66. });
  67.             //}, false);
  68.         </script>
  69.     </head>
  70.     <body onload="bb.pushScreen('menu.html', 'menu');">
  71.     </body>
  72. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement