home *** CD-ROM | disk | FTP | other *** search
/ developer.apple.com / developer.apple.com.tar / developer.apple.com / safaridemos / sticky-notes.php.orig < prev    next >
Text File  |  2010-08-17  |  14KB  |  286 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html lang="en-us">
  3. <head>
  4.     <title>Sticky Notes - Safari Technology Demos- Safari Dev Center - Apple Developer</title>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.apple.com" r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.apple.com" r (n 0 s 0 v 0 l 0))'>
  7. <meta name="Author" content="Apple Inc.">
  8.  
  9. <meta name="viewport" content="width=1024">
  10. <link rel="stylesheet" href="http://devimages.apple.com/assets/styles/base.css" type="text/css" charset="utf-8">
  11. <link rel="stylesheet" href="http://devimages.apple.com/assets/styles/adc.css" type="text/css" charset="utf-8">
  12.  
  13. <script src="http://devimages.apple.com/assets/scripts/lib/prototype.js" type="text/javascript" charset="utf-8"></script>
  14. <script src="http://devimages.apple.com/assets/scripts/lib/scriptaculous.js" type="text/javascript" charset="utf-8"></script>
  15. <script src="http://devimages.apple.com/assets/scripts/browserdetect.js" type="text/javascript" charset="utf-8"></script>
  16. <script src="http://devimages.apple.com/assets/scripts/apple_core.js" type="text/javascript" charset="utf-8"></script>
  17. <script src="http://devimages.apple.com/assets/scripts/search_decorator.js" type="text/javascript" charset="utf-8"></script>
  18. <script src="http://devimages.apple.com/assets/scripts/adc_core.js" type="text/javascript" charset="utf-8"></script>
  19. <script type="text/javascript" charset="utf-8">
  20.     document.write('<link rel="stylesheet" type="text/css" href="http://devimages.apple.com/assets/styles/script.css" media="screen">');
  21. </script>    
  22.     <link rel="stylesheet" href="/assets/styles/devcenter.css" type="text/css" charset="utf-8">
  23.     <link rel="stylesheet" href="/safaridemos/styles/demos.css" type="text/css" charset="utf-8" />
  24.     
  25.     <script type="text/javascript" src="/safaridemos/scripts/demos_browsercheck.js"></script>
  26.     <script type="text/JavaScript">
  27.         Event.onDOMReady(function() {
  28.             new viewDemo($$('.popup-link'));
  29.         });
  30.     </script>
  31.     <!--[if IE]>
  32.         <script>
  33.             document.createElement("audio");
  34.             document.createElement("header");
  35.             document.createElement("footer");
  36.             document.createElement("nav");
  37.             document.createElement("article");
  38.             document.createElement("section");
  39.         </script>
  40.     <![endif]-->
  41.     
  42.     
  43. </head>
  44. <body id="demos" class="detail devcenter safari">
  45.     <div id="globalheader">
  46.     <h1><a href="/">Apple Developer</a></h1>
  47.     <ul id="gh-nav">
  48.         <li id="gh-nav-technologies"><a href="/technologies/">Technologies</a></li>
  49.         <li id="gh-nav-resources"><a href="/resources/">Resources</a></li>
  50.         <li id="gh-nav-programs"><a href="/programs/">Programs</a></li>
  51.         <li id="gh-nav-support"><a href="/support/">Support</a></li>
  52.         <li id="gh-nav-membercenter"><a href="/membercenter/">Member Center</a></li>
  53.     </ul>
  54.  
  55.     <div id="gh-search">
  56.         <form action="/cgi-bin/simpsearch.pl" method="post" accept-charset="utf-8"><div>
  57.             <label for="gh-adcsearch">Search Developer
  58.                 <input type="text" name="Search" id="gh-adcsearch" class="adcsearch prettysearch">
  59.             </label>
  60.         </div></form>
  61.     </div>
  62.     <script type="text/javascript" charset="utf-8">
  63.         Event.onDOMReady(function() {
  64.             // Get root path for Global Header Active class
  65.             ghLocation = location.pathname.split('/')[1];
  66.             // Make sure it doesn't try to add a file extension to the css class
  67.             if(ghLocation.include('.')) ghLocation = ghLocation.split('.')[0];
  68.             // Add Global Header Active State Class
  69.             $$('body')[0].addClassName('gh-nav-'+location.pathname.split('/')[1]+'-active');
  70.         });
  71.     </script>
  72. </div>
  73.     <!-- SiteCatalyst code version: H.8. Copyright 1997-2006 Omniture, Inc. -->
  74. <script language="JavaScript"><!--
  75. /* RSID: */
  76. var s_account="appleglobal,appleusdeveloper"
  77. //--></script>
  78.  
  79. <script language="JavaScript" type="text/javascript" src="http://images.apple.com/global/metrics/js/s_code_h.js"></script>
  80.  
  81. <script language="JavaScript"><!--
  82. s.pageName=document.title+" (US)";
  83. s.server=""
  84. s.channel="www.us.developer"
  85. s.pageType=""
  86. s.prop1=""
  87. s.prop2=""
  88. s.prop3=""
  89. s.prop4=document.location;
  90.  
  91. /* E-commerce Variables */
  92. s.campaign=""
  93. s.state=""
  94. s.zip=""
  95. s.events=""
  96. s.products=""
  97. s.purchaseID=""
  98. s.eVar1=""
  99. s.eVar2=""
  100. s.eVar3=""
  101. s.eVar4=""
  102. s.eVar5=""
  103.  
  104. /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
  105. var s_code=s.t();if(s_code)document.write(s_code)//--></script>
  106. <!-- End SiteCatalyst code version: H.8. -->
  107.  
  108.     <div id="header">
  109.     <h2><a href="/safari/">Safari Dev Center</a></h2>
  110.     <ul class="devcenterMenu">
  111.         <li class="iphone_devcenter"><a href="/iphone/">iPhone Dev Center</a></li>
  112.         <li class="mac_devcenter"><a href="/mac/">Mac Dev Center</a></li>
  113.         <li class="safari_devcenter active"><a href="/safari/">Safari Dev Center</a></li>
  114.     </ul>
  115. </div><!--/header-->    <div id="main">
  116.         <div class="maincap top"></div>
  117.     <div id="content">
  118.  
  119.         <h1><img src="http://devimages.apple.com/safaridemos/images/safari_technology_demo_title.png" alt="Safari Technology Demos" width="547" height="33" /></h1>
  120.         <a href="/safaridemos/" class="right more backtooverview">Back to Overview</a>    
  121.             <div class="grid2col">
  122.                 <div class="column first">
  123.                     <img src="http://devimages.apple.com/safaridemos/images/demo_stickynotes.jpg" alt="Sticky Notes" width="430" class="left" />
  124.                     <div class="grid2colb bestviewed">
  125.                         <div class="column first">
  126.                             <h6>Best Viewed: <span class="lightgrey">Safari on iOS, Mac OS X, Windows</span></h6>
  127.                         </div>
  128.                         <div class="column last">
  129.                             <p class="button-spacing right"><a class="button liteblue popup-link" href="/safaridemos/StickyNotes/"><span>View Demo</span></a></p>
  130.                         </div>
  131.                     </div>
  132.                 </div>
  133.                 <div class="column last">
  134.                     <h2>Sticky Notes</h2>
  135.                     <p>The HTML5 SQL database API is a powerful technology that enables structured storage in a client-side database.  As you create notes, JavaScript is used to execute SQL statements to store the position and text of each note in a database on your computer.  When you revisit the Sticky Notes demo page, information for each note is retrieved from the database to restore the page to the state that you left it in.  If you're viewing the Sticky Notes demo in Safari on the desktop, you can inspect the contents of the client-side database in the Web Inspector.</p>
  136.                     <p class="aboveList">In this example:</p>
  137.                     <ul class="square">
  138.                         <li>The HTML5 SQL database API stores and restores the state of the notes.</li>
  139.                         <li>DOM touch events enable note dragging on iOS.</li>
  140.                         <li>CSS3 animates note deletion.</li>
  141.                     </ul>
  142.                                         
  143.                     <h3>Related Resources</h3>
  144.                         <ul class="icons">
  145.                             <li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariHTMLRef/Introduction.html">Safari HTML Reference</a></li>
  146.                             <li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/WebKitDOMRef/">WebKit DOM Reference</a></li>
  147.                             <li class="book"><a href="/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/">Safari Client-Side Storage and Offline Applications Programming Guide</a></li>
  148.                             <li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariJSRef/index.html">Safari DOM Extensions Reference</a></li>
  149.                             <li class="book"><a href="/safari/library/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html">Safari Web Content Guide: Handling Events</a></li>
  150.                             <li class="book"><a href="/safari/library/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/1Introduction/Introduction.html">Safari User Guide for Web Developers</a></li>
  151.               <li class="code"><a href="/safari/library/samplecode/SlideMe/Introduction/Intro.html">SlideMe</a></li>
  152.                         </ul>
  153.                 </div>
  154.                 <div class="warning_container scaling_pane _transformOrigin" id="warning_container" style="display: none;">
  155.         <section class="warning_content">
  156.             <header>
  157.                 <h1>You‚Äôll need to download Safari to view this demo.</h1>
  158.             </header>
  159.             <p>This demo was designed with the latest web standards supported by Safari. If you‚Äôd like to experience this demo, simply download Safari. It‚Äôs free for Mac and PC, and it only takes a few minutes.</p>
  160.             <div class="grid2col">
  161.                 <p>
  162.                     <a href="http://www.apple.com/safari/download/" class="" id="warning_safari">
  163.                         <b>Safari</b>
  164.                         For Mac + PC
  165.                         <span class="more">Download Safari</span>
  166.                     </a>
  167.                 </p>
  168.             </div>
  169.             <a href="#close" class="warning_close" id="warning_close">Close</a>
  170.         </section>
  171. </div>                
  172.             </div>
  173.             <div id="pagenav">
  174.                 <div class="column first previous">
  175.                       <a class="arrow" href="/safaridemos/canvas-pixel.php">Pixel Manipulation</a>
  176.                 </div>
  177.                 <div class="column last next">
  178.                     <a class="arrow" href="/safaridemos/concert-poster.php">Concert Poster</a>
  179.                 </div>
  180.             </div>
  181.             </div><!-- /content -->
  182.  
  183.             <div class="maincap bottom"></div>
  184.         </div><!-- /main -->
  185.     
  186. <div id="promofooter4" class="chrome">
  187.     <ul>
  188.         <li class="promo"><h3>Develop Safari Extensions</h3>
  189. <p><a href="/programs/safari/">The Safari Developer Program includes all the resources you need to create and sign Safari extensions.</a></p>
  190. <a href="/programs/safari/" class="image"><img width="244" height="180" alt="" src="http://devimages.apple.com/assets/promos/four/safari-extensions/image.png"/></a></li>
  191.         <li class="promo"><h3>Preparing Your Web Content for iPad</h3>
  192. <p><a href="http://developer.apple.com/safari/library/technotes/tn2010/tn2262.html">Learn how to make your website look and work great on iPad.</a></p>
  193. <a href="http://developer.apple.com/safari/library/technotes/tn2010/tn2262.html" class="image"><img width="244" height="180" alt="" src="http://devimages.apple.com/assets/promos/four/ipad-web/image.png"/></a>
  194. </li>
  195.         <li class="promo"><h3>Safari Developer Tools</h3>
  196. <p><a href="/technologies/safari/developer-tools.html">Tools to optimize a website for peak performance and compatibility.</a></p>
  197. <a href="/technologies/safari/developer-tools.html" class="image"><img width="244" height="180" alt="" src="http://devimages.apple.com/assets/promos/four/safari-dev-tools/image.png"/></a>
  198. </li>
  199.         <li class="promo"><h3>WebKit</h3>
  200. <p class="cheat"><a href="http://webkit.org/">Developed by Apple, WebKit is the most advanced browser engine, drawing the web pages you see in Safari.</a></p>
  201. <a href="http://webkit.org/" class="image"><img width="244" height="180" alt="" src="http://devimages.apple.com/assets/promos/four/webkit-program/image.png"/></a>
  202. </li>
  203.     </ul>
  204. </div><!--/promos/footer--><div id="globalfooter">
  205.     <div id="breadory">
  206.         <ol id="breadcrumbs">
  207.             <li class="home"><a href="/">Developer</a></li>
  208.             <li><a href="/safari/">Safari Dev Center</a></li>
  209.             <li><a href="/safaridemos/">Safari Technology Demos</a></li>
  210.             <li>Sticky Notes</li>
  211.         </ol>
  212.             <div id="directorynav" class="ipoditunes">
  213.         <div id="dn-cola" class="column first">
  214.             <h3><a href="/technologies/">Technologies</a></h3>
  215.             <ul>
  216.                 <li><a href="/technologies/tools/">Developer Tools</a></li>
  217.                 <li><a href="/technologies/iphone/">iOS</a></li>
  218.                 <li><a href="/technologies/mac/">Mac OS X</a></li>
  219.                 <li><a href="/technologies/safari/">Safari</a></li>
  220.             </ul>
  221.         </div><!--/dn-cola-->
  222.         <div id="dn-colb" class="column">
  223.             <h3><a href="/resources/">Resources</a></h3>
  224.             <ul>
  225.                 <li><a href="/iphone/">iPhone Dev Center</a></li>
  226.                 <li><a href="/mac/">Mac Dev Center</a></li>
  227.                 <li><a href="/safari/">Safari Dev Center</a></li>
  228.                 <li><a href="/appleapplications/">Apple Applications</a></li>
  229.                 <li><a href="/hardwaredrivers/">Hardware & Drivers</a></li>
  230.                 <li><a href="/programs/mfi/cases.html">iPod, iPhone & iPad Cases</a></li>
  231.             </ul>
  232.         </div><!--/dn-colb-->
  233.         <div id="dn-colc" class="column">
  234.             <h3></h3>
  235.             <ul>
  236.                 <li> </li>
  237.                 <li><a href="/videos/">Development Videos</a></li>    
  238.                 <li><a href="/devforums/">Developer Forums</a></li>                
  239.                 <li><a href="/iphone/appstore/">App Store Resource Center</a></li>            
  240.                 <li><a href="/iphone/news/">iOS Developer News</a></li>
  241.                 <li><a href="/softwarelicensing/">Licensing & Trademarks</a></li>                
  242.             </ul>
  243.         </div><!--/dn-colc-->
  244.         <div id="dn-cold" class="column">
  245.             <h3><a href="/programs/">Programs</a></h3>
  246.             <ul>
  247.                 <li><a href="/programs/iphone/">iPhone Developer Program</a></li>
  248.                 <li><a href="/programs/iphone/enterprise/">iPhone Enterprise Program</a></li>
  249.                 <li><a href="/programs/iphone/university/">iPhone University Program</a></li>
  250.                 <li><a href="/programs/mac/">Mac Developer Program</a></li>
  251.                 <li><a href="/programs/safari/">Safari Developer Program</a></li>                
  252.                 <li><a href="/programs/mfi/">MFi Program</a></li>
  253.                 <li><a href="/programs/register/">Register as an Apple Developer</a></li>
  254.             </ul>
  255.         </div><!--/dn-cold-->
  256.         <div id="dn-cole" class="column last">
  257.             <h3><a href="/support/">Support</a></h3>
  258.             <ul>
  259.                 <li><a href="/support/iphone/">iPhone Developer Program</a></li>
  260.                 <li><a href="/support/mac/">Mac Developer Program</a></li>
  261.                 <li><a href="/support/mac/">Safari Developer Program</a></li>                
  262.                 <li><a href="/support/adc/">ADC Members</a></li>
  263.                 <li><a href="/bugreporter/">Bug Reporting</a></li>
  264.                 <li><a href="/support/resources/itunes-connect.html">iTunes Connect Support</a></li>
  265.                 <li><a href="/support/resources/technical-support.html">Technical Support</a></li>
  266.             </ul>
  267.         </div><!--/dn-cole-->
  268.         <div class="capbottom"></div>
  269.     </div><!--/directorynav-->
  270.     </div><!--/breadory-->
  271.     <p class="gf-buy">Shop the <a href="http://www.apple.com/store/">Apple Online Store</a> (1-800-MY-APPLE), visit an <a href="http://www.apple.com/retail/">Apple Retail Store</a>, or find a <a href="http://www.apple.com/buy/locator/">reseller</a>.</p>
  272. <ul class="gf-links piped">
  273.     <li><a href="http://lists.apple.com/mailman/listinfo" class="first">Mailing Lists</a></li>
  274.     <li><a href="/rss/">RSS Feeds</a></li>
  275. </ul>
  276. <div class="gf-sosumi">
  277.     <p>Copyright ¬© 2010 Apple Inc. All rights reserved.</p>
  278.     <ul class="piped">
  279.         <li><a href="http://www.apple.com/legal/terms/site.html" class="first">Terms of Use</a></li>
  280.         <li><a href="http://www.apple.com/legal/privacy/">Privacy Policy</a></li>
  281.     </ul>
  282. </div></div><!--/globalfooter-->
  283.  
  284.  
  285. </body>
  286. </html>