You can look at life from a lot of different viewpoints. Reading Biology Fifth Edition by Campbell Reece Mitchell (ISBN: 0-201-52262-4) helped crystallize these thoughts for us, thanks, and provided for todayโs gameโs background image, as well, so double thanks. In biological terms, letโs for now ignore subatomic particles, we could look at life (on Earth) from the viewpoints โฆ
- atomic level (eg. oxygen)
- molecular level (eg. DNA)
- organelle level (eg. cell nucleus)
- cellular level (eg. smooth muscle cell)
- tissue level (eg. smooth muscle tissue)
- organ level (eg. stomach)
- organ system level (eg. digestive system)
- organism level (eg. tiger, consisting of many organ systems)
- higher levels (eg. populations, communities, ecosystems)
Todayโs biological game jumps from the โorganism levelโ down to the โatomic levelโ regarding human beings, asking the user, in laypersonโs terms, โwhat goes to make us upโ.
Like with Body Systems Quiz Game Primer Tutorial, as shown below, all the gameโs HTML elements involve CSS position:absolute property styling, as a few other games have recently, actually. This time though, it is more of a stretch to describe what we do as โoverlayingโ as such, but more the placement of HTML elements so that they do not โoverlayโ (ie. clash). Those things we donโt want to โclashโ are โฆ
- a contextual background image, the dimensions of which we know, so can plan the position:absoluteโs left and top properties for โฆ
- a Google Charts Pie Chart initially showing the proportions of unknown elements but infilled with element names as the game progresses โฆ and โฆ
- some headings โฆ and โฆ
- a select โdropdownโ element consisting of those elements we know of in life and nature and the laboratory (ie. in biology), that are shown in the Periodic Table
โฆ so, as you can imagine, in all likelihood, the user is asked to name the 11 most abundant elements that go to make up the human body in the order from most prevalent to least prevalent, selecting their choice from that select โdropdownโ element and having a score (as an h4 element) be appropriately updated. As per usual with our biology and anatomy and physiology games recently, we add an option to โgive upโ to allow the game to proceed, and learn, while moving on to the next question.
We hope you get something out of todayโs liverun of our โHuman Body โ Naturally Occurring Elementsโ game (or quiz). The HTML and Javascript and CSS is atomic_level_human_body
html for your perusal.
Previous relevant Body Systems Quiz Game Primer Tutorial is shown below.
โRegionalโ click (or touch) web application functionality doesnโt have to be always done via an HTML map element thangthing. Today, as an alternative methodology, we โฆ
- start with a useful โBody Systemsโ image โฆ thanks to HLTAAP001 Recognise healthy body systems TAFE NSW
- set it up as the document.body background: url(โbody_systems.jpgโ) no-repeat; background image
- โoverlayโ a โฆ
โฆ HTML table element โgridโ on top
- add HTML table elementโs cellsโ onclick event logics that work on the scoring for the โBody Systems Quizโ game we have for you today
- an HTML select โdropdownโ element gets randomly selected with a โBody Partโ for which the user then (and features the use of data attributes to store associated data items) โฆ
- clicks (or touches) (a โBody Systemโ arrowhead representing) one of the HTML table elementโs cells (but looks to the user as the original background image showing โBody Systemsโ), triggering the scoring analysis logic for todayโs โBody
Systems (of Body Parts) Gameโ whose HTML and Javascript and bit of CSS source code body_systems
html is there for your perusal
You may wonder, from this, whereโs the relationship among โฆ
- Body System
- Body Part
- Grid Reference (ie. HTML table elementโs cellsโ IDs)
โฆ established? Again, as you may be really sick of by now with us, nothing more complicated data structure wise, than a โBody System:Body Parts List (comma separated):Grid Reference List (comma separated)โ array, as exemplified by the snippet โฆ
var b_s=["Cardiovascular:heart,blood,vessels:3_2,3_3,5_2",
...
];
When taking a look at todayโs HTML and Javascript and bit of CSS source code body_systemshtml you may notice โthe bit of CSSโ, literally โฆ
<style>
td { width: 10%; height: 10%; border: 0px inset red; }
</style>
โฆ and wonder, whatโs the go with the 0px bit of โborder: 0px inset red;โ? Well, itโs a reminder back to how we โdebuggedโ the โGrid Referenceโ array data we collected. When developing this web application, we had, for debugging purposes, this CSS as โฆ
<style>
td { width: 10%; height: 10%; border: 1px inset red; }
</style>
โฆ and just during that period we had a way to tell in which HTML table elementโs cell a โBody Systemโ arrowhead would fall. It may not be to your liking to leave such โkludgesโ in live code, and often weโd agree, but if something is such an obvious code โattention seekerโ, we actually find leaving such โpeccadillosโ in instructive into future revisits of such code.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.