Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hacksaar
Schmierblatt
Commits
f91617ec
Commit
f91617ec
authored
Nov 13, 2014
by
Tobi
Browse files
fix for
#3
parent
3ea04a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
f91617ec
...
...
@@ -34,12 +34,14 @@
jQcanvas
.
sketch
({
defaultColor
:
colors
[
0
]
});
// Bei jedem Klick auf den Canvas wird Farbe und Gre des Zeichenwerkzeugs und der Hinweistext im Footer neu festgelegt
canvas
.
onclick
=
function
()
{
function
setRandomSettings
()
{
jQcanvas
.
sketch
(
'
color
'
,
getRandomColor
());
jQcanvas
.
sketch
(
'
size
'
,
getRandomSize
());
var
message
=
getRandomMessage
();
$
(
'
#message
'
).
text
(
message
);
};
jQcanvas
.
bind
(
'
click touchstart
'
,
setRandomSettings
);
}
// jQuery ruft initialize() auf, sobald das HTML-Dokument im Browser vollstndig geladen wurde
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment