Mr. Mac's Magical Lego Tour logo

Mr. Mac's Magical Lego Tour

a Lego rocket

Teacher Demos

Not linked in the nav. Each demo is this same site with one mistake.

Break It Demos

Each page below is broken on purpose to show one variable mistake from the lesson. A red box at the top of each one explains what is wrong, where to look, and how to fix it.

  1. #1 Used before it is set
    titlevar set after the header include: the browser tab shows the variable name.
  2. #2 Spaces around the =
    sitenamevar never gets set: header, tab, and footer show it in brackets.
  3. #3 Misspelled name
    header.inc uses [sitnamevar]: the header shows the typo as plain text.
  4. #4 Variable named date
    [text]date=hello[/text] takes over the real date tag in the footer.
  5. #5 Stray space in a value
    one space at the end of pathvar: every include errors and the error shows the space.
  6. #6 Forgot vars.inc
    no vars.inc line: every include asks for [incvar]... and fails.
  7. #7 Short paths (last lesson)
    css/style.css and images/... in header.inc: works on the homepage, breaks in a subfolder.
  8. #8 Built before pathvar
    cssvar comes before pathvar in vars.inc: the page loses its styling.