Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 21st, 2010  |  syntax: JavaScript  |  size: 9.07 KB  |  views: 191  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  5.     <meta http-equiv="X-UA-Compatible" content="IE=8" />
  6.     <meta http-equiv="Content-Script-Type" content="text/javascript" />
  7.     <meta name="apple-mobile-web-app-capable" content="yes" />
  8.     <meta name="apple-mobile-web-app-status-bar-style" content="default" />
  9.     <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  10.     <link rel="apple-touch-icon" href="/static/sproutcore/foundation/en/current/images/sproutcore-logo.png?1285100230" />
  11.  
  12.           <link rel="apple-touch-startup-image" media="screen and (orientation:portrait)" href="/static/sproutcore/foundation/en/current/images/sproutcore-startup-portrait.png?1285100230" />
  13.           <link rel="apple-touch-startup-image" media="screen and (orientation:landscape)" href="/static/sproutcore/foundation/en/current/images/sproutcore-startup-landscape.png?1285100230" />
  14.           <link rel="shortcut icon" href="" type="image/x-icon" />
  15.    
  16.     <title>Todos</title>
  17.   <script type="text/javascript">
  18. /* >>>>>>>>>> BEGIN source/core.js */
  19. // ==========================================================================
  20. // Project:   SproutCore - JavaScript Application Framework
  21. // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
  22. //            Portions ©2008-2009 Apple Inc. All rights reserved.
  23. // License:   Licensed under MIT license (see license.js)
  24. // ==========================================================================
  25.  
  26.  
  27. /* >>>>>>>>>> BEGIN source/system/browser.js */
  28. // ==========================================================================
  29. // Project:   SproutCore - JavaScript Application Framework
  30. // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
  31. //            Portions ©2008-2009 Apple Inc. All rights reserved.
  32. // License:   Licensed under MIT license (see license.js)
  33. // ==========================================================================
  34.  
  35. var SC = SC || { BUNDLE_INFO: {}, LAZY_INSTANTIATION: {} };
  36.  
  37. SC.browser = (function() {
  38.   var userAgent = navigator.userAgent.toLowerCase(),
  39.       version = (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1] ;
  40.  
  41.   var browser = {
  42.     version: version,
  43.     safari: (/webkit/).test( userAgent ) ? version : 0,
  44.     opera: (/opera/).test( userAgent ) ? version : 0,
  45.     msie: (/msie/).test( userAgent ) && !(/opera/).test( userAgent ) ? version : 0,
  46.     mozilla: (/mozilla/).test( userAgent ) && !(/(compatible|webkit)/).test( userAgent ) ? version : 0,
  47.     mobileSafari: (/apple.*mobile.*safari/).test(userAgent) ? version : 0,
  48.     chrome: (/chrome/).test( userAgent ) ? version : 0,
  49.     windows: !!(/(windows)/).test(userAgent),
  50.     mac: !!((/(macintosh)/).test(userAgent) || (/(mac os x)/).test(userAgent)),
  51.     language: (navigator.language || navigator.browserLanguage).split('-', 1)[0]
  52.   };
  53.  
  54.   browser.current = browser.msie ? 'msie' : browser.mozilla ? 'mozilla' : browser.safari ? 'safari' : browser.opera ? 'opera' : 'unknown' ;
  55.   return browser ;
  56. })();
  57.  
  58. /* >>>>>>>>>> BEGIN source/system/loader.js */
  59. // ==========================================================================
  60. // Project:   SproutCore - JavaScript Application Framework
  61. // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
  62. //            Portions ©2008-2009 Apple Inc. All rights reserved.
  63. // License:   Licensed under MIT license (see license.js)
  64. // ==========================================================================
  65.  
  66. // sc_require("system/browser");
  67.  
  68. SC.bundleDidLoad = function(bundle) {
  69.   var info = this.BUNDLE_INFO[bundle] ;
  70.   if (!info) info = this.BUNDLE_INFO[bundle] = {} ;
  71.   info.loaded = true ;
  72. };
  73.  
  74. SC.bundleIsLoaded = function(bundle) {
  75.   var info = this.BUNDLE_INFO[bundle] ;
  76.   return info ? !!info.loaded : false ;
  77. };
  78.  
  79. SC.loadBundle = function() { throw "SC.loadBundle(): SproutCore is not loaded."; };
  80.  
  81. SC.setupBodyClassNames = function() {
  82.   var el = document.body ;
  83.   if (!el) return ;
  84.   var browser, platform, shadows, borderRad, classNames, style;
  85.   browser = SC.browser.current ;
  86.   platform = SC.browser.windows ? 'windows' : SC.browser.mac ? 'mac' : 'other-platform' ;
  87.   style = document.documentElement.style;
  88.   shadows = (style.MozBoxShadow !== undefined) ||
  89.                 (style.webkitBoxShadow !== undefined) ||
  90.                 (style.oBoxShadow !== undefined) ||
  91.                 (style.boxShadow !== undefined);
  92.  
  93.   borderRad = (style.MozBorderRadius !== undefined) ||
  94.               (style.webkitBorderRadius !== undefined) ||
  95.               (style.oBorderRadius !== undefined) ||
  96.               (style.borderRadius !== undefined);
  97.  
  98.   classNames = el.className ? el.className.split(' ') : [] ;
  99.   if(shadows) classNames.push('box-shadow');
  100.   if(borderRad) classNames.push('border-rad');
  101.   classNames.push(browser) ;
  102.   classNames.push(platform) ;
  103.   if (parseInt(SC.browser.msie,0)==7) classNames.push('ie7') ;
  104.   if (SC.browser.mobileSafari) classNames.push('mobile-safari') ;
  105.   if ('createTouch' in document) classNames.push('touch');
  106.   el.className = classNames.join(' ') ;
  107. } ;
  108.  
  109. /* >>>>>>>>>> BEGIN bundle_loaded.js */
  110. ; if ((typeof SC !== 'undefined') && SC && SC.bundleDidLoad) SC.bundleDidLoad('sproutcore/bootstrap');
  111.  
  112. </script>
  113.  
  114.      <link href="/static/sproutcore/testing/en/current/stylesheet.css?1285100230" rel="stylesheet" type="text/css" />
  115.   <link href="/static/sproutcore/forms/en/current/stylesheet.css?1285100230" rel="stylesheet" type="text/css" />
  116.   <link href="/static/sproutcore/foundation/en/current/stylesheet.css?1285100333" rel="stylesheet" type="text/css" />
  117.  
  118.   <link href="/static/sproutcore/desktop/en/current/stylesheet.css?1285100230" rel="stylesheet" type="text/css" />
  119.   <link href="/static/sproutcore/standard_theme/en/current/stylesheet.css?1285100334" rel="stylesheet" type="text/css" />
  120.   <link href="/static/todos/en/current/stylesheet.css?1284595900" rel="stylesheet" type="text/css" />
  121.    
  122.    
  123.   </head>
  124.    
  125.   <body class="sc-theme focus">  
  126. <script type="text/javascript">
  127. // ==========================================================================
  128. // Project:   SproutCore - JavaScript Application Framework
  129. // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
  130. //            Portions ©2008-2009 Apple Inc. All rights reserved.
  131. // License:   Licensed under MIT license (see license.js)
  132. // ==========================================================================
  133.  
  134. // sc_resource('setup_body_class_names'); // publish into inline format
  135.  
  136. // sc_require("system/loader");
  137.  
  138. if (SC.setupBodyClassNames) SC.setupBodyClassNames() ;
  139.  
  140. </script>
  141.  
  142.  
  143. <div id="loading">
  144. <p class="loading">Loading...<p>
  145.  
  146.  
  147. </div>
  148.   <script type="text/javascript" src="/static/sproutcore/debug/en/current/javascript.js?1285100367"></script>
  149.   <script type="text/javascript" src="/static/sproutcore/testing/en/current/javascript.js?1285100367"></script>
  150.   <script type="text/javascript" src="/static/sproutcore/forms/en/current/javascript.js?1285100367"></script>
  151.   <script type="text/javascript" src="/static/sproutcore/jquery/en/current/javascript.js?1285100367"></script>
  152.   <script type="text/javascript" src="/static/sproutcore/runtime/en/current/javascript.js?1285100367"></script>
  153.  
  154.   <script type="text/javascript" src="/static/sproutcore/foundation/en/current/javascript.js?1285100367"></script>
  155.   <script type="text/javascript" src="/static/sproutcore/desktop/en/current/javascript.js?1285100367"></script>
  156.   <script type="text/javascript" src="/static/sproutcore/datastore/en/current/javascript.js?1285100367"></script>
  157.   <script type="text/javascript" src="/static/sproutcore/en/current/javascript.js?1285100367"></script>
  158.   <script type="text/javascript" src="/static/sproutcore/empty_theme/en/current/javascript.js?1285100231"></script>
  159.   <script type="text/javascript" src="/static/todos/en/current/bundle_info.js?1285100367"></script>
  160.  
  161.   <script type="text/javascript" src="/static/todos/en/current/source/core.js?1284614308"></script>
  162.   <script type="text/javascript" src="/static/todos/en/current/source/controllers/projects.js?1284597498"></script>
  163.   <script type="text/javascript" src="/static/todos/en/current/source/controllers/tasks.js?1284597498"></script>
  164.   <script type="text/javascript" src="/static/todos/en/current/source/data_sources/tasks-datasource.js?1284617337"></script>
  165.   <script type="text/javascript" src="/static/todos/en/current/source/models/project.js?1284597498"></script>
  166.   <script type="text/javascript" src="/static/todos/en/current/source/fixtures/project.js?1284595900"></script>
  167.  
  168.   <script type="text/javascript" src="/static/todos/en/current/source/models/task.js?1284597498"></script>
  169.   <script type="text/javascript" src="/static/todos/en/current/source/fixtures/task.js?1284595900"></script>
  170.   <script type="text/javascript" src="/static/todos/en/current/source/resources/main_page.js?1285094883"></script>
  171.   <script type="text/javascript" src="/static/todos/en/current/source/main.js?1284597498"></script>
  172. <script type="text/javascript">String.preferredLanguage = "en";</script>
  173.         </body>
  174. </html>
clone this paste RAW Paste Data