Changeset 275

Show
Ignore:
Timestamp:
12/01/06 17:41:19 (2 years ago)
Author:
jf.hovinne
Message:

Improved draggable demo.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.2.1/sites/demo/index.htm

    r274 r275  
    5656 
    5757<body> 
    58  
     58<div id="demo"><h1>WYMstyle0.2 CSS framework demo</h1><div id="democontent"></div></div> 
    5959<div id="page"> 
    6060        <div id="header"> 
  • branches/0.2.1/sites/demo/js/demo.htm

    r273 r275  
    1 <h1>WYMstyle0.2 CSS framework demo</h1> 
    21<div class="wrapper1"> 
    32<div class="wrapper2"> 
  • branches/0.2.1/sites/demo/js/project2.js

    r273 r275  
    1616$(document).ready(function() { 
    1717 
    18  
    19  
    20         $("body").prepend('<div id="demo"></div>').find("div#demo").load("js/demo.htm", function(){ 
     18            // load demo 
     19                $("div#democontent").load("js/demo.htm", function(){ 
    2120            // disable styles 
    2221                disableAllStyles(); 
     
    6261        }); 
    6362 
     63 
    6464        $('#demo').Draggable( 
    6565                { 
    66                         //handle:              'h1',                   
     66                        handle:                'h1',                   
    6767                        zIndex:         1000, 
    68                         ghosting:       true, 
    69                         opacity:        0.3 
     68                        ghosting:       false 
    7069                } 
    71         );         
     70        ); 
     71      
    7272}); 
    7373