Skip to content

Commit

Permalink
links fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
giventofly committed Jul 3, 2019
1 parent 5690c75 commit b3c071c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions docs/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,15 @@ document.getElementById("pixlInput").onchange = function(e) {
//function to apply effects
const pixelit = ()=>{
document.querySelector('.loader').classList.toggle('active');
setTimeout(() => {
document.querySelector('.loader').classList.toggle('active');
}, 500);
px.setScale(blocksize.value).setPalette(paletteList[currentPalette]).draw().pixelate();
greyscale.checked ? px.convertGrayscale() : null;
palette.checked ? px.convertPalette() : null;
maxheight.value ? px.setMaxHeight(maxheight.value).resizeImage() : null;
maxwidth.value ? px.setMaxWidth(maxwidth.value).resizeImage() : null;
setTimeout(() => {
document.querySelector('.loader').classList.toggle('active');
}, 250);


}

Expand Down
7 changes: 4 additions & 3 deletions docs/assets/mainmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ document.addEventListener("DOMContentLoaded", function () {

var pixelit = function pixelit() {
document.querySelector('.loader').classList.toggle('active');
setTimeout(function () {
document.querySelector('.loader').classList.toggle('active');
}, 500);
px.setScale(blocksize.value).setPalette(paletteList[currentPalette]).draw().pixelate();
greyscale.checked ? px.convertGrayscale() : null;
palette.checked ? px.convertPalette() : null;
maxheight.value ? px.setMaxHeight(maxheight.value).resizeImage() : null;
maxwidth.value ? px.setMaxWidth(maxwidth.value).resizeImage() : null;
setTimeout(function () {
document.querySelector('.loader').classList.toggle('active');
}, 250);

};

var makePaletteGradient = function makePaletteGradient() {
Expand Down
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>Pixel it<span></span></h1>
<a href="#tryit" class="btn call">try it</a>
<a href="#examples" class="btn ">examples</a>
<a href="#docs" class="btn">Documentation</a>
<a href="https://github.com/giventofly/pixelit" class="btn" rel="nofollow noopener" target="_blank" title="github repository">github</a>
</div>

</header>
Expand Down Expand Up @@ -139,7 +140,7 @@ <h3>Known Problems/bugs</h3>

</section>
<section class="links"><div class="wrap">
<a href="" class="btn call github" rel="nofollow noopener" target="_blank" title="github repository">github</a>
<a href="https://github.com/giventofly/pixelit" class="btn call github" rel="nofollow noopener" target="_blank" title="github repository">github</a>
<a href="https://twitter.com/heyzeto" class="btn call twitter" rel="nofollow noopener" title="twitter" target="_blank">twitter</a>
</div></section>
<img src="assets/sky.jpg" id="pixelitimg" alt="">
Expand Down

0 comments on commit b3c071c

Please sign in to comment.