Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with html5 course example #2293

Closed
ramjr2012 opened this issue Mar 5, 2015 · 6 comments
Closed

problem with html5 course example #2293

ramjr2012 opened this issue Mar 5, 2015 · 6 comments
Labels

Comments

@ramjr2012
Copy link

Hi,

I'm learning/reviewing HTML and HTML5 through courses from John Bura of Mammoth Interactive. One of his example uses this JavaScript code:

var aCanvas = document.getElementById("aCanvas");
var context = aCanvas.getContext("2d");
context.fillStyle('red');
context.fillRect(0,0,100,100);

The HTML page is:

<title>JS Bin</title>

In his example, run, I think, on an older jsbin.com, this draws a red square.

When I plug it into the current jsbin.com I don't see anything.

Since I'm just learning most of this and in particular am not a JavaScript programmer, I don't know if this is a problem with what I've typed (I've reviewed it a dozen times, so I may be missing something), a problem with the original presentation material, or with the web page.

Any help would be greatly appreciated.

Bob

@ramjr2012
Copy link
Author

Oops, it seems I need to escape the HTML, somehow. Please let me know if it is needed and if so how to escape the code.

Thanks.

Bob

@kmgear
Copy link

kmgear commented Mar 22, 2016

Same issue.

@remy
Copy link
Member

remy commented Mar 23, 2016

Can you share a jsbin url (from your code) so I can see?

@kmgear
Copy link

kmgear commented Mar 23, 2016

Hi Remy

Here's the link

https://jsbin.com/tufalaxito/1/edit?html,css,js,output

On 23 March 2016 at 14:10, Remy Sharp notifications@github.com wrote:

Can you share a jsbin url (from your code) so I can see?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#2293 (comment)

@kmgear
Copy link

kmgear commented Mar 28, 2016

my stupidity, forget it, had an '=' after fillRect

@stale
Copy link

stale bot commented Jan 20, 2018

This issue has been automatically marked as stale because it has not had recent activity. More importantly, jsbin has been undergoing a massive refactor by Remy, and a large number of issues have been resolved, but with the growing 600+ open issues, the Stalebot (me), has been brought in to try to manage the issues.
Keep an eye on jsbin.com blog posts and the @js_bin twitter account for updates on the new version of jsbin ❤️
It will be closed next week if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 20, 2018
@stale stale bot closed this as completed Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants