Monday, March 24, 2014

Baseball Scorecard, At-Bat Box in HTML5 Canvas - part 2

Blogger's Compose Interface creates issues with all the scorecards for Blogger that I have built.

The Compose Interface is the place where bloggers compose their writing (or score baseball games). It is equipped with all kinds of html shortcuts that write html for you via javascript enabled buttons along the top of the Compose window - just like your Email Compose Box.

When I create the markup for the baseball scorecards in a text editor - and then view the results in my browser - the results are radically different when I then take that code and paste it into the Blogger Compose widow set to 'HTML' - and then switch over to Compose mode tab. And then differently again when I publish it and look at the result on the Blog.

In this version of the html baseball scorecard for Blogger - which I guess I'll call the "Canvas Series" (ending the "Minima Series") - the Javascrpt that creates the box outline; the separation between the pitching notation area and scoring notation area; and the infield and outfield icons - are all produced via script - and that doesn't render in Bloggers Compose Interface at all!



Your browser does not support the HTML5 canvas tag.


BBBB
BBBB





BBBB
1234567
2
3
4
5
6
7
1234567
2
3
4
5
6
7
1
BBBBBB
3
4
5
6
7
#1,#2-1B
2
3
4
5
6
7

That's why I added dashed lines to the text boxes - so I can see which quaderant I'm going to write in, and on which line in that quadrant. Below is an image I took of what I see in the Blogger Compose Interface, that you see rendered just above, as a baseball scorecard 'At-Bat box'.


The next step in this Canvas Baseball Scorecard is to get the colour coding going. I've never seen the coding that makes the Compose shortcuts go ... I'm wondering if I can create some javascript that will allow me to use the text background colour pallet in the Compose Interface to colour code around the infield icon to indicate the progress of a base runner.


Next post is an experiment to see if I can get one javascript 'ChangeStyle' function to render one colour change in a background area in the Compose Interface box.



(Re-posted from Michael Holloway's FilterBlogs | "Baseball Scorecard, At-Bat Box in HTML5 Canvas - part 2" | http://filter--blog.blogspot.ca/2014/03/baseball-scorecard-at-bat-box-in-html5.html)



mh

Sunday, March 23, 2014

Internet Baseball Scorecard - Saturday, March 22, 2014

Los Angeles at Arizona - Game 2
- a scorecard -




(click to embigulate - or click on the link at the top to see the real thing: a full sized, scrolling notations, complete game baseball scorecard - for this game.)



mh