Changeset 812

Show
Ignore:
Timestamp:
04/28/06 13:54:37 (2 years ago)
Author:
bob@redivi.com
Message:

terse

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • presentations/2006/ajax_experience/slides.html

    r811 r812  
    10211021<li>NSColor-like API (from Cocoa)</li> 
    10221022<li>Works in RGB, HSV, HSL</li> 
    1023 <li>Normalized, all components from [0.0, 1.0]</li> 
     1023<li>Normalized to [0, 1.0]</li> 
    10241024</ul> 
    10251025</div> 
     
    10291029<li>Color.fromRGB(r, g, b, alpha=1.0)</li> 
    10301030<li>fromHSL, fromHSV</li> 
    1031 <li>Will also take objects, e.g. {r: 1, g: 0, b: 0, a: 1}</li> 
     1031<li>Also {r: 1, g: 0, b: 0, a: 1}</li> 
    10321032</ul> 
    10331033</div> 
     
    10361036<dl class="docutils"> 
    10371037<dt>Color.fromString(str):</dt> 
    1038 <dd>Any valid CSS color description.  &quot;rgb(...)&quot;, &quot;hsl(...)&quot;, &quot;#RRGGBB&quot;, &quot;blue&quot;</dd> 
    1039 </dl> 
    1040 <p>Implementations in fromRGBString, fromHSLString, fromHexString, fromName.</p> 
     1038<dd>Color from any valid CSS color description</dd> 
     1039</dl> 
     1040<ul class="simple"> 
     1041<li>&quot;rgb(...)&quot;</li> 
     1042<li>&quot;hsl(...)&quot;</li> 
     1043<li>&quot;#RRGGBB&quot;</li> 
     1044<li>&quot;blue&quot;</li> 
     1045</ul> 
    10411046</div> 
    10421047<div class="slide" id="dom-to-color"> 
     
    10441049<ul class="simple"> 
    10451050<li>Color.fromBackground(node)</li> 
    1046 <li>Color.fromComputedStyle(node, style, css)</li> 
    1047 <li>Color.fromText(node)</li> 
     1051<li>fromComputedStyle, fromText, ...</li> 
    10481052</ul> 
    10491053</div> 
     
    11141118<h1>Network Events</h1> 
    11151119<dl class="docutils"> 
    1116 <dt>doSimpleXMLHttpRequest(url[, queryArguments]):</dt> 
     1120<dt>doSimpleXMLHttpRequest(url):</dt> 
    11171121<dd>Deferred from XMLHttpRequest GET</dd> 
    1118 <dt>loadJSONDoc(url[, queryArguments]):</dt> 
     1122<dt>loadJSONDoc(url):</dt> 
    11191123<dd>Deferred from XMLHttpRequest GET then eval</dd> 
    1120 <dt>sendXMLHttpRequest(req, content):</dt> 
     1124<dt>sendXMLHttpRequest(req, data):</dt> 
    11211125<dd>Deferred from async XMLHttpRequest</dd> 
    11221126</dl> 
     
    11881192<h1>Custom Event Object</h1> 
    11891193<ul class="simple"> 
    1190 <li>Consistent event object, NOT the browser's.</li> 
    1191 <li>e.type() is the event type (no &quot;on&quot; prefix)</li> 
     1194<li>Consistent event object!!</li> 
     1195<li>e.type() is the event type</li> 
    11921196<li>e.target() is the event target</li> 
    11931197<li>e.mouse() has mouse coordinates</li> 
    11941198<li>e.key() for keyboard state</li> 
    11951199<li>e.modifiers() for keyboard modifiers</li> 
    1196 <li>e.stop() stopPropagation and preventDefault</li> 
     1200<li>e.stop() to stop</li> 
    11971201</ul> 
    11981202</div> 
     
    12511255<li>Broadcast your own events!</li> 
    12521256<li>connect() and disconnect() are the same</li> 
    1253 <li>signal(src, signal, args...) to fire the event</li> 
     1257<li>signal(src, signal, args...) to fire</li> 
    12541258</ul> 
    12551259</div> 
  • presentations/2006/ajax_experience/slides.txt

    r811 r812  
    642642* NSColor-like API (from Cocoa) 
    643643* Works in RGB, HSV, HSL 
    644 * Normalized, all components from [0.0, 1.0] 
     644* Normalized to [0, 1.0] 
    645645 
    646646 
     
    650650* Color.fromRGB(r, g, b, alpha=1.0) 
    651651* fromHSL, fromHSV 
    652 * Will also take objects, e.g. {r: 1, g: 0, b: 0, a: 1} 
     652* Also {r: 1, g: 0, b: 0, a: 1} 
    653653 
    654654 
     
    657657 
    658658Color.fromString(str): 
    659     Any valid CSS color description.  "rgb(...)", "hsl(...)", "#RRGGBB", "blue" 
    660  
    661 Implementations in fromRGBString, fromHSLString, fromHexString, fromName. 
     659    Color from any valid CSS color description 
     660 
     661- "rgb(...)" 
     662- "hsl(...)" 
     663- "#RRGGBB" 
     664- "blue" 
    662665 
    663666 
     
    666669 
    667670- Color.fromBackground(node) 
    668 - Color.fromComputedStyle(node, style, css) 
    669 - Color.fromText(node) 
     671- fromComputedStyle, fromText, ... 
    670672 
    671673 
     
    741743============== 
    742744 
    743 doSimpleXMLHttpRequest(url[, queryArguments]): 
     745doSimpleXMLHttpRequest(url): 
    744746    Deferred from XMLHttpRequest GET 
    745747 
    746 loadJSONDoc(url[, queryArguments]): 
     748loadJSONDoc(url): 
    747749    Deferred from XMLHttpRequest GET then eval 
    748750 
    749 sendXMLHttpRequest(req, content): 
     751sendXMLHttpRequest(req, data): 
    750752    Deferred from async XMLHttpRequest 
    751753 
     
    822824=================== 
    823825 
    824 * Consistent event object, NOT the browser's. 
    825 * e.type() is the event type (no "on" prefix) 
     826* Consistent event object!! 
     827* e.type() is the event type 
    826828* e.target() is the event target 
    827829* e.mouse() has mouse coordinates 
    828830* e.key() for keyboard state 
    829831* e.modifiers() for keyboard modifiers 
    830 * e.stop() stopPropagation and preventDefault 
     832* e.stop() to stop 
    831833 
    832834 
     
    861863* Broadcast your own events! 
    862864* connect() and disconnect() are the same 
    863 * signal(src, signal, args...) to fire the event 
     865* signal(src, signal, args...) to fire 
    864866 
    865867