[WTF CVS] wtf/static general.css,1.4,1.5 tracking.js,1.2,1.3
Brought to you by:
gryphonshafer
|
From: Jason <jbr...@us...> - 2006-11-03 16:29:42
|
Update of /cvsroot/wtf-tracker/wtf/static In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3740/static Modified Files: general.css tracking.js Log Message: Added show/hide functionality to codeline project tables Index: general.css =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/static/general.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** general.css 27 Oct 2006 22:34:51 -0000 1.4 --- general.css 3 Nov 2006 16:29:37 -0000 1.5 *************** *** 31,35 **** font-size: 11pt; padding-top: 2px; ! margin: 0px 0px 3px 0px; } --- 31,35 ---- font-size: 11pt; padding-top: 2px; ! margin: 0px 0px 8px 0px; } *************** *** 38,41 **** --- 38,69 ---- } + a.code_nav { + text-decoration: none; + display: block; + color: #000000; + padding: 1px 3px 1px 3px; + border: 1px solid #999999; + background-color: #fafafa; + font-size: 11pt; + margin: 0px 0px 8px 0px; + } + + a:hover { + background-color: #ccccff; + color: #000000; + } + + a.current_codeline { + text-decoration: none; + display: block; + padding: 1px 3px 1px 3px; + border: 1px solid #999999; + font-size: 11pt; + font-weight: bold; + margin: 0px 0px 8px 0px; + background-color: #ffcccc; + color: #000000; + } + .indent { margin-left: 20px; Index: tracking.js =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/static/tracking.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tracking.js 27 Oct 2006 22:34:51 -0000 1.2 --- tracking.js 3 Nov 2006 16:29:37 -0000 1.3 *************** *** 1,4 **** window.onload = function () { - // activate the "resizeIframeHeight" functionality if the current page // contains a "projects_iframe" object (activate if on the home page) --- 1,3 ---- *************** *** 391,392 **** --- 390,418 ---- } } + + //Javascript for expanding/contracting of specific codeline projects + function expandCodelines(codeline_id, codeline_id_link) { + var CD = document.getElementById(codeline_id).style; + var isIE = window.ActiveXObject ? true : false; // ActiveX is only used in Internet Explorer + // to open a codeline + if (CD.display == 'none') { + document.getElementById(codeline_id_link).className = 'current_codeline'; + if (isIE) { + CD.display = 'block'; + } else { + CD.display = 'table'; + } + // to close a codeline + } else if (CD.display == 'block' || CD.display == 'table') { + CD.display = 'none'; + document.getElementById(codeline_id_link).className = 'code_nav'; + } + } + + + + + + + + |