Skip to content

Commit

Permalink
Merge pull request #1 from sutaburosu/fix_paletteknife
Browse files Browse the repository at this point in the history
Update URL for cpt-city
  • Loading branch information
kriegsman authored Jul 11, 2024
2 parents 4a7b6c8 + adcb0d9 commit 5f1a3b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/paletteknife/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ <h3>PaletteKnife for FastLED</h3>

<p>Then:
<ol>
<li>Go to CPT-CITY here, <a href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/\" target=_new>http://soliton.vm.bytemark.co.uk/pub/cpt-city/</a>
<li>Find a palette you like, e.g. <a href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/rc/tn/purplefly.png.index.html" target=_new>http://soliton.vm.bytemark.co.uk/pub/cpt-city/rc/tn/purplefly.png.index.html</a>
<li>Go to CPT-CITY here, <a href="http://seaviewsensing.com/pub/cpt-city/\" target=_new>http://seaviewsensing.com/pub/cpt-city/</a>
<li>Find a palette you like, e.g. <a href="http://seaviewsensing.com/pub/cpt-city/rc/tn/purplefly.png.index.html" target=_new>http://seaviewsensing.com/pub/cpt-city/rc/tn/purplefly.png.index.html</a>
<li>Click PaletteKnife in your toolbar,
<li>Copy the resulting code and paste it into your FastLED project.
<li>Relaxen und watchen das blinkenlights.
Expand Down
8 changes: 4 additions & 4 deletions tools/paletteknife/pk2.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ function adjustGamma( orig, gamma)


var origurl = document.location.href;
//"http://soliton.vm.bytemark.co.uk/pub/cpt-city/dca/tn/alarm.p1.0.2.png.index.html";
//"http://seaviewsensing.com/pub/cpt-city/dca/tn/alarm.p1.0.2.png.index.html";

// origurl = //document.location.href;
var url2 = origurl.replace( "/tn/", "/");
var url3 = url2.replace( ".png.index.html", ".c3g");

var onSite = url3.indexOf("http://soliton.vm.bytemark.co.uk/");
var onSite = url3.indexOf("http://seaviewsensing.com/");
if( onSite != 0) {
window.location.href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/";
window.location.href="http://seaviewsensing.com/pub/cpt-city/";
//return;
}

Expand Down Expand Up @@ -187,7 +187,7 @@ if( onSite == 0) {
i.src = url3;
document.body.appendChild(i);
} else {
window.location.href="http://soliton.vm.bytemark.co.uk/pub/cpt-city/";
window.location.href="http://seaviewsensing.com/pub/cpt-city/";
}
cursor_clear();
//alert(stdout);

0 comments on commit 5f1a3b7

Please sign in to comment.