Browse Source

Merge pull request #37 from pborreli/typos

Fixed typos
pull/44/head
James Cryer 10 years ago
parent
commit
a89d23ccfb
  1. 2
      demoassets/resemble.css
  2. 2
      index.html
  3. 6
      resemble.js

2
demoassets/resemble.css

@ -58,7 +58,7 @@ footer {
left: 0; left: 0;
} }
#image-diff { #image-diff {
margin-left: 0px; margin-left: 0;
margin-top: 50px; margin-top: 50px;
border-style: solid; border-style: solid;
} }

2
index.html

@ -146,7 +146,7 @@
</p> </p>
<p> <p>
<br/> <br/>
<a class="btn btn-large btn-primary" href="https://github.com/Huddle/Resemble.js"><strong>View project on Github</strong></a> <a class="btn btn-large btn-primary" href="https://github.com/Huddle/Resemble.js"><strong>View project on GitHub</strong></a>
</p> </p>
</div> </div>
<div class="span6"> <div class="span6">

6
resemble.js

@ -262,7 +262,7 @@ URL: https://github.com/Huddle/Resemble.js
var j; var j;
var hasHighContrastSibling = 0; var hasHighContrastSibling = 0;
var hasSiblingWithDifferentHue = 0; var hasSiblingWithDifferentHue = 0;
var hasEquivilantSibling = 0; var hasEquivalentSibling = 0;
addHueInfo(sourcePix); addHueInfo(sourcePix);
@ -288,7 +288,7 @@ URL: https://github.com/Huddle/Resemble.js
} }
if( isRGBSame(sourcePix,targetPix) ){ if( isRGBSame(sourcePix,targetPix) ){
hasEquivilantSibling++; hasEquivalentSibling++;
} }
if( Math.abs(targetPix.h - sourcePix.h) > 0.3 ){ if( Math.abs(targetPix.h - sourcePix.h) > 0.3 ){
@ -302,7 +302,7 @@ URL: https://github.com/Huddle/Resemble.js
} }
} }
if(hasEquivilantSibling < 2){ if(hasEquivalentSibling < 2){
return true; return true;
} }

Loading…
Cancel
Save