Changeset 1532
- Timestamp:
- 03/08/08 02:00:46 (9 months ago)
- Files:
-
- feedmelinks/frontispiece/index.html (modified) (2 diffs)
- feedmelinks/frontispiece/javascripts/say.js (modified) (5 diffs)
- feedmelinks/frontispiece/stylesheets/yeah.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/frontispiece/index.html
r1531 r1532 8 8 <script type="text/javascript" src="javascripts/moo.js"></script> 9 9 <script type="text/javascript" src="javascripts/say.js"></script> 10 <script type="text/javascript"> 11 window.addEvent('domready', function(){ 12 type_text( "words", "screen", 18, 10 ); 13 type_text( "words_2", "screen_2", 18, 50 ); 14 type_text( "header_txt", "header", 18, 60 ); 15 }); 16 </script> 10 17 </head> 11 18 <body> … … 17 24 18 25 <div id="header_txt" style="display: none;"> 19 FEED ME LINKS : A SOCIAL BOOKMARKING EXPERIMENT</div> 26 FEED ME LINKS : A SOCIAL BOOKMARKING EXPERIMENT 27 STATUS: COMPLETE 28 </div> 20 29 21 30 <div id="words" style="display: none;"> 22 31 THE DATE: 2002. 32 LOCATION: SOMEWHERE IN THE MID-ATLANTIC 23 33 </div> 24 34 feedmelinks/frontispiece/javascripts/say.js
r1524 r1532 1 1 var s = ""; 2 2 var words = "..."; 3 4 function t(s) { 5 //console.log( s ); 6 } 3 7 4 8 function type_text( text, target, height, rate ) { … … 20 24 var lines_in_target = multi_line_from_div( target ); 21 25 if( lines_in_target && lines_in_target.length > $(target).height ) { 22 //console.log( "clipping" );26 t( "clipping" ); 23 27 lines_in_target.shift(); 24 28 $(target).innerHTML = lines_in_target.join(""); … … 28 32 line = line.substring( 1, line.length); 29 33 30 //console.log( line.length + " characters in line" );31 //console.log( lines.length + " lines in story" );34 t( line.length + " characters in line" ); 35 t( lines.length + " lines in story" ); 32 36 33 37 type_by_letter( line, lines, target, rate ); … … 36 40 function type_by_letter( line, lines, target, rate ) { 37 41 if( ! line || ! lines || line.length < 1 ) { 38 //console.log( "writing new line" );42 t( "writing new line" ); 39 43 $(target).innerHTML += "\n"; 40 44 setTimeout( function() { type_line( lines, target, rate);} , rate); // next line … … 53 57 if( lines ) 54 58 lines = lines.split( /$/m ); 59 if( lines && lines.length && lines[0].match( /^\s*$/ )) { 60 t( "trimming empty initial line from " + div ); 61 lines.shift(); 62 } 63 64 if( lines && lines.length > 1 && lines[lines.length-1].match( /^\s*$/ )) { 65 t( "trimming empty final line from " + div ); 66 lines.pop(); 67 } 55 68 return lines; 56 69 } 57 58 window.addEvent('domready', function(){59 type_text( "words", "screen", 18, 10 ); // last is height60 type_text( "words_2", "screen_2", 18, 50 ); // last is height61 type_text( "header_txt", "header", 18, 60 ); // last is height62 });63 feedmelinks/frontispiece/stylesheets/yeah.css
r1527 r1532 18 18 #header { 19 19 font-size: 22px; 20 font-weight: bold; 21 color: #00ff00; 22 background-color: #000; 20 color: purple; 23 21 } 22 24 23 #screen { 25 24 width: 600px; 26 25 float: left; 27 26 } 27 28 28 #screen_2 { 29 29 width: 600px;