Skip to Navigation | Skip to Content

MAT 175 - Web Design - JavaScript + jQuery

Menu

Index of INSTRUCTOR VIDEO Tutorials

Web Design: JavaScript + jQuery

Overview of Our Class and JavaScript Programming :: Instructor Videos

Hello World

  • Where To Put Your Code (14:20)
    Hello world, <script tags>, inline vs. external code
  • Output and Console (14:56)
    Hello World x 4 (alert, console.log(), document.write, innerHTML) and the browser console

Exercise #1 - Canvas Drawing - Instructor Videos


Introduction to Exrercise #2, my videos, the codeLibrary

Linting and JavaScript Linting Errors in Dreamweaver

Variables and Values

Numbers and Math

Conditional Logic and Decision Making


Working with Functions

  • Functions, Part 1 (11:12)
    Introduction to functions. Declaring and calling functions.
  • Functions, Part 2 (12:23)
    Using parameters and passing arguments. Working with multiple arguments (examples including a keepScore() function and a madLibs() generator)
  • Functions, Part 3 (17:06)
    Returning values from functions (examples including functions for inserting copyright dates and Celsius to Fahrenheit converters)
  • Functions, Part 4 (19:39)
    Function expressions, immediately invoked function expressions (iife), recursive functions.

Simulating a Game of Craps

  • Craps, Part 1 (6:13)
    Variables and Math.random() to simulate a dice roll
  • Craps, Part 2 (19:47)
    Visualizing the output of the dice with text and image (image.src). Random images.
  • Craps, Part 3 (15:24)
    Visualizing output with sprite sheet image and CSS background position (setAttribute)
  • Craps, Part 4 (21:17)
    Understanding the game logic, using if conditional statements and a rollDice() function
  • Craps, Part 5 (19:51)
    Making the game interactive so the user can play, using addEventListener to add click events
  • Craps, Part 6 (15:08)
    Adding user feedback, creating win() and lose() functions.
  • Craps, Part 7 (8:08)
    Tracking bets and the chip stack using variables.
  • Craps, Part 8 (19:41)
    Using an input field to enable the user to change the bet amount and exacting and validating the value of this field (value, paseInt, isNaN).

Looping and Iteration


On Computational Thinking and Problem Solving

Generative Art — Drawing to <canvas> using JavaScript Variables, Loops, Functions, Conditionals, and Randomization


Strings and String Methods

Working with Arrays

  • Arrays, Part 1 - Introduction (12:13)
    Introduction to arrays. Accessing array data. Arrays with values of varying types. Short intro to multidimensional arrays.
  • Arrays, Part 2 - Creating (11:26)
    Creating arrays. Array Constructors and Array Literals. Accessing array elements by their index.
  • Arrays, Part 3 - Looping (14:38)
    The array length property. Looping through arrays with the for loop and for in loop.
  • Arrays, Part 4 - Methods (16:41)
    Array methods including toString(), join(), sort(), reversw(), concat(), and slice().
  • Arrays, Part 5 - Methods (16:37)
    Array methods including push(), pop(), shift(), unshift(), and splice().

Interactive Quiz Example using Arrays, Loops, and Functions (and Prompt)

  • Quiz Example, Part 1 (10:42)
    Using prompt() for output/input and basic quiz logic.
  • Quiz Example, Part 2 (20:23)
    Using arrays and multidimensional arrays to store quiz questions, for loops to access the questions, and a custom function to ask the questions and check the answer logic.

Interactive Guessing Game Example


The Document Object Model (DOM)

Events and Event Handling


Interactive Quiz - Mobile Application Example

 

JavaScript Bell Choir Interactive Quiz Game - Bonus Example


jQuery


jQuery Interactive Slideshow Example #1 with Thumbnails and Foward/Next Buttons - Execise #5A Demos

jQuery Slideshow Example #2 with Pause/Play Interactivity - Execise #5A Demos


Applying jQuery to Create a List-Making Web App (Exercise #6 Demos)

The HTML5 Web Storage APIs (localStorage) and the List-O-Mania App


Generating Sprite Sheets for Animation (for Exercise #7)


Drawing Images and Animating Sprites with HTML5 Canvas and JavaScript (Exercise #7 Demos)

Sprite Sheet Image Files Used in Above Examples:


Drawing Images, Animating Sprites, and HTML5 Gaming with Canvas and JavaScript (Demos for turning Exercise #7 into more of a Final Project)

Sprite Sheet Image Files Used in Above Examples: