Skip to content

Commit

Permalink
beta.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hope41 authored Jul 22, 2024
1 parent ed2d07d commit 177400a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ function makeColorPick(button, div, message, color, command) {
goal.value = lastChar
goal.focus()
}

if (Number(val.value) > 255) val.value = '255'

setBackgroundColor(chosenColor)
}
r.oninput = () => restrict(r, g)
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ centerSplash.onmousedown = () => {
const tip = document.createElement('div')
const options = [
'To create a batch of shapes with the same colour, simply press the save icon next to the colour selector.',
'Tired of the copying templates for multiple shapes? Select the "Set template as default" button for an automatic assignment.',
'Tired of the copying templates for multiple shapes? Press the "tick" icon for an automatic assignment.',
'You can ask for advanced help by typing your query into CanvasCraft\'s homepage.',
'Hover over anything and help assistant will explain it. You can disable it by pressing the question mark at the top-left of the screen.',
'Properties are an easy way to store specific details about a shape. You can use the feature in a variety of ways, from designing game worlds to simply annotating shapes.'
'Properties are an easy way to store specific details about a shape. You can use the feature in a variety of ways from designing game worlds to simply annotating.'
]
tip.innerHTML = '<b>Pro-tip!</b> ' + options[Math.floor(Math.random() * options.length)]
tip.style.color = '#fb0'
Expand Down
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ h3.center {
height: 100%;
padding: 50px 10%;
transition: .8s cubic-bezier(.66,0,.54,1);
background-color: #000;
background-color: #111;
overflow: scroll;
}

Expand Down

0 comments on commit 177400a

Please sign in to comment.