Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Debugger <pre> classnames #7

Merged
merged 1 commit into from

2 participants

@vancura

Hi,

I added classnames to the pre tags generated by the debugger. This way I can style them.

Thanks,
Vaclav

@vancura vancura Debugger <pre> classnames (.foresight-debug.global, .foresight-debug.…
…local)

Signed-off-by: Vaclav Vancura <vaclav@vancura.org>
f73943f
@vancura

Actually now I see I used tabs instead of spaces, I hope it's not a problem, and it could be easily fixed :]

@adamdbradley

Added CSS classnames to the debugger

 elements, good thinkin

@adamdbradley adamdbradley merged commit 95ddec2 into adamdbradley:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 13, 2012
  1. @vancura

    Debugger <pre> classnames (.foresight-debug.global, .foresight-debug.…

    vancura authored
    …local)
    
    Signed-off-by: Vaclav Vancura <vaclav@vancura.org>
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  demos/foresight-debugger.js
View
2  demos/foresight-debugger.js
@@ -33,6 +33,7 @@ var initForesightDebugger = function () {
var docPre = docPres[ 0 ];
} else {
var docPre = document.createElement( 'pre' );
+ docPre.className = "foresight-debug global";
if( foresight.images.length ) {
foresight.images[ 0 ].parentElement.insertBefore( docPre, foresight.images[ 0 ] );
} else {
@@ -83,6 +84,7 @@ var initForesightDebugger = function () {
}
var newInfoElement = document.createElement( 'pre' );
+ newInfoElement.className = "foresight-debug local";
newInfoElement.innerHTML = imgInfo.join( '<br>' );
img.infoElement.appendChild(newInfoElement);
}
Something went wrong with that request. Please try again.