Skip to content

Commit

Permalink
fix javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jan 27, 2024
1 parent f1b1b6a commit 805c86c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
javascript
errorHandlerFunction

^ "(JSStream on: 'console.error(arguments[0])') , "(JSStream on:
'document.getElementById("result").style.backgroundColor = "red"')
, (JSStream on:
'document.getElementById("result").innerHTML = "<p>Error</p>"')
^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "Red"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Error</p>"')
asFunction: #( 'result' )
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
javascript
successHandlerFunction

^ "(JSStream on: 'console.log(arguments[0])') ," (JSStream on:
'document.getElementById("result").style.backgroundColor = "darkgreen"')
, (JSStream on:
'document.getElementById("result").innerHTML = "<p>Success</p>"')
^ (JSStream on: 'document.getElementById("result").style.backgroundColor = "DarkGreen"'),
(JSStream on: 'document.getElementById("result").innerHTML = "<p>Success</p>"')
asFunction: #( 'result' )

0 comments on commit 805c86c

Please sign in to comment.