Skip to content

Commit 4072cb4

Browse files
committed
fix: remove unnecessary console.log statements from various sections
1 parent 4f725d0 commit 4072cb4

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

dist/index.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,6 @@ <h2 class="export__title">${paletteTitle}</h2>
29332933
const storyScripts = [{
29342934
section: 'intro',
29352935
fn: () => {
2936-
console.log('intro');
29372936
// Disable saturation rings when scrolling back to intro
29382937
$picker.classList.remove('rings-enabled');
29392938
poline = new Poline({
@@ -2950,7 +2949,6 @@ <h2 class="export__title">${paletteTitle}</h2>
29502949
{
29512950
section: 'summoning',
29522951
fn: (section) => {
2953-
console.log('summoning');
29542952
exStartHue = Math.random() * 360;
29552953
poline = new Poline({
29562954
anchorColors: [
@@ -2970,7 +2968,6 @@ <h2 class="export__title">${paletteTitle}</h2>
29702968
{
29712969
section: 'points',
29722970
fn: (section) => {
2973-
console.log('points');
29742971
poline.numPoints = 6;
29752972
updateSVG();
29762973
updateFullCode();
@@ -2980,7 +2977,6 @@ <h2 class="export__title">${paletteTitle}</h2>
29802977
{
29812978
section: 'anchors',
29822979
fn: (section) => {
2983-
console.log('anchors');
29842980
if (poline.anchorPoints.length > 2) {
29852981
poline.anchorPoints.forEach((anchor, i) => {
29862982
if (i > 1) poline.removeAnchorPoint({point: anchor});
@@ -2995,7 +2991,6 @@ <h2 class="export__title">${paletteTitle}</h2>
29952991
{
29962992
section: 'closedLoop',
29972993
fn: (section) => {
2998-
console.log('closedLoop');
29992994
poline.closedLoop = true;
30002995
updateCodeBlock('closedLoop');
30012996
updateSVG();
@@ -3005,7 +3000,6 @@ <h2 class="export__title">${paletteTitle}</h2>
30053000
{
30063001
section: 'positionFunction',
30073002
fn: (section) => {
3008-
console.log('Position Function');
30093003
if (poline.anchorPoints.length > 3) {
30103004
poline.anchorPoints.forEach((anchor, i) => {
30113005
if (i > 1) poline.removeAnchorPoint({ point: anchor });
@@ -3024,7 +3018,6 @@ <h2 class="export__title">${paletteTitle}</h2>
30243018
{
30253019
section: 'positionFunctions',
30263020
fn: (section) => {
3027-
console.log('Position Functions');
30283021
if (poline.anchorPoints.length > 3) {
30293022
poline.anchorPoints.forEach((anchor, i) => {
30303023
if (i > 1) poline.removeAnchorPoint({point: anchor});
@@ -3058,7 +3051,6 @@ <h2 class="export__title">${paletteTitle}</h2>
30583051
{
30593052
section: 'UpdatingAnchors',
30603053
fn: (section) => {
3061-
console.log('Updating Anchors');
30623054
poline.anchorPoints.forEach((anchor, i) => {
30633055
const hsl = anchor.color;
30643056
poline.updateAnchorPoint({
@@ -3078,14 +3070,12 @@ <h2 class="export__title">${paletteTitle}</h2>
30783070
{
30793071
section: 'closestAnchor',
30803072
fn: (section) => {
3081-
console.log('closestAnchor');
30823073
updateCodeBlock('closestAnchor');
30833074
},
30843075
},
30853076
{
30863077
section: 'removeAnchor',
30873078
fn: (section) => {
3088-
console.log('removeAnchor');
30893079

30903080
poline.closedLoop = false;
30913081
if (poline.anchorPoints.length < 3) {
@@ -3105,7 +3095,6 @@ <h2 class="export__title">${paletteTitle}</h2>
31053095
{
31063096
section: 'invertedLightness',
31073097
fn: (section) => {
3108-
console.log('invertedLightness');
31093098
poline.invertedLightness = !systemDarkMode;
31103099
invertedLightness = !systemDarkMode;
31113100
updateCodeBlock('invertedLightness');
@@ -3121,7 +3110,6 @@ <h2 class="export__title">${paletteTitle}</h2>
31213110
{
31223111
section: 'colorSpace',
31233112
fn: (section) => {
3124-
console.log('colorSpace');
31253113
poline.invertedLightness = systemDarkMode;
31263114
invertedLightness = systemDarkMode;
31273115
updateSVG();
@@ -3131,7 +3119,6 @@ <h2 class="export__title">${paletteTitle}</h2>
31313119
{
31323120
section: 'hueShift',
31333121
fn: (section) => {
3134-
console.log('hueShift');
31353122
updateCodeBlock('hueShift');
31363123
globalInterval = setInterval(() => {
31373124
poline.shiftHue(1);
@@ -3143,7 +3130,6 @@ <h2 class="export__title">${paletteTitle}</h2>
31433130
{
31443131
section: 'getColorAt',
31453132
fn: (section) => {
3146-
console.log('getColorAt');
31473133
const $colorAt = section.target.querySelector('[data-colorat]');
31483134
const $colorSample = section.target.querySelector('.color-at-sample');
31493135

@@ -3165,7 +3151,6 @@ <h2 class="export__title">${paletteTitle}</h2>
31653151
{
31663152
section: 'getColors',
31673153
fn: (section) => {
3168-
console.log('getColors');
31693154
updateCodeBlock('getColors');
31703155
updateSVG();
31713156
updateFullCode();
@@ -3174,15 +3159,12 @@ <h2 class="export__title">${paletteTitle}</h2>
31743159
{
31753160
section: 'installation',
31763161
fn: (section) => {
3177-
console.log('Installation');
31783162
// Static examples already highlighted in initCodeExamples
31793163
},
31803164
},
31813165
{
31823166
section: 'playground',
31833167
fn: (section) => {
3184-
console.log('Playground');
3185-
31863168
// Enable saturation rings
31873169
$picker.classList.add('rings-enabled');
31883170

0 commit comments

Comments
 (0)