Changeset 221


Ignore:
Timestamp:
Feb 12, 2007 6:36:19 PM (6 years ago)
Author:
dkg
Message:

TOFT/PN: added logo and attribution header to the notes.

Location:
trunk/jobs/toft/publicnotes/web
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobs/toft/publicnotes/web/publicnotes.css

    r210 r221  
    1717} 
    1818 
     19div.attribution img {  
     20  vertical-align: middle; 
     21} 
     22 
     23div.attribution {  
     24  font-style: italic; 
     25  text-align: center; 
     26} 
    1927 
    2028div.note {  
  • trunk/jobs/toft/publicnotes/web/publicnotes.js

    r215 r221  
    1010pointerImage: undefined, 
    1111 
    12 noteWidth: "50%", 
     12noteWidth: "45%", 
    1313 
    1414/* number of pixels away from the left-hand edge of the screen that we'll place a note */ 
     
    4747        allnote.appendChild(fullnote); 
    4848        allnote.noteTitle = notelink; 
     49        PN.wrapShadow(fullnote);  
     50        PN.addAttribution(fullnote); 
    4951        PN.addCloseBox(fullnote, base); 
    50         PN.wrapShadow(fullnote);  
    51  
    5252 
    5353        notelink.style.display = "none"; 
     
    118118        } 
    119119        return PN.pointerImage; 
     120}, 
     121 
     122addAttribution: function(el) { 
     123  var attribution = document.createElement("DIV"); 
     124  attribution.className = "attribution"; 
     125  var aimg = document.createElement("IMG"); 
     126  aimg.src = "logo-tiny.png"; 
     127  aimg.alt = "Time Out From Testing"; 
     128  aimg.title = "Time Out From Testing"; 
     129  var atxt = document.createTextNode(" responds:"); 
     130  attribution.appendChild(aimg); 
     131  attribution.appendChild(atxt); 
     132  var x = el.firstChild; 
     133  el.insertBefore(attribution, x); 
     134  el.insertBefore(document.createElement("HR"), x); 
     135  return el; 
    120136}, 
    121137 
Note: See TracChangeset for help on using the changeset viewer.