Resources
- //INPUT: Buttons
- //INPUT: Text
- //INIT: Using variables
- //PROCESS: Basic math
-
//OUTPUT:
alert()
,.innerHTML
, andconsole.log()
- //OUTPUT: Changing text styles
- //OUTPUT: Changing an element's position
- //STYLE: Use cut and paste where possible
- //STYLE: Space out mathematical expressions
Evaluation
-
___/10 HTML-CSS:
including ANY TEN of the following:
- a span
- a heading
- a table
- a div for output
- a list
-
a descriptive paragraph
The following must be inside<style>
:
- applying a style to a tag
- applying a style to an #ID or .class
- applying a color, opacity, or background color
- applying a border
- applying a font size
- applying the font family, style, or weight
- applying a width
- applying text-align or vertical-align
- applying a position
- applying a top measurement
- applying a left measurement
- applying a display style
- applying margin-left or margin-right
-
___/10 INPUT: including ANY FOUR of:
- a text area box
- an input line
- buttons
- things that work with
document.getElementById().onclick
- things that work with
document.getElementById().onchange
-
___/10 PROCESS: including:
- successfully reading a text input
- assigning a variable
- using basic math (font-size, probably)
- using
parseInt()
orparseFloat()
-
___/10 OUTPUT: including ANY FOUR of:
- changing the color or background using Javascript
- changing the weight or style of a font using Javascript
- changing the size of a font using Javascript
- changing the top or left position of something using Javascript
- changing the border or width of something using Javascript
- output using
.innerHTML
-
___/10 STYLE:
- add your name to the filename
- write your name as the author
- update the change log
- correctly indent everything
- use lowercase for all your HTML tags
- use camelCase for all your ids and classes
- avoid lines greater than 96 characters in length
- restrict your style code to the head of your HTML file
- space out your mathematical operators
- write comments for your if statements
- use descriptive variable names
The assignment
- Use onclick and Javascript style manipulation to create a simple clicking game
Saving your work
Use Save as...
to save the
empty template as
"2.05H-CakeyClicker-LastName.html
"
in your Computer Programming 12 directory.