<%@LANGUAGE="VBSCRIPT" %> <% Response.CacheControl = "no-cache" %>
Assignment 7

Materials to turn in on the server

  • In your Assign07 folder:
    • index.html
    • js folder
      • jquery files
      • jquery.cycle.all.js
      • jquery.easing.1.3.js
    • img folder
    • styles folder
      • styles.css

Introduction Video

Expand/Collapse Section ImagejQuery Cycle, Easing, Video Embedding, CSS Alpha Layers, Screen Resizing

Description: In this assignment, you will use get extensive experience with CSS. This assignment will introduce you to two new jQuery libraries: cycle and easing. You will use both of these libraries on this assignment. Additionally, you will embed videos within this assignment and use alpha layers to control transparency of elements to give the page a sense of depth and overlay. Finally, you will adjust CSS for given screen sizes so that when a user adjusts the width of the browser, the CSS will automatically adjust.

Expand/Collapse Section ImageExercise Specifications

  1. jQuery Cycle, Easing, Video Embedding, CSS Alpha Layers, Screen resizing
    • Files:
    • Including files
      • Include the JS files in this order:
        • jQuery first
        • Cycle second
        • Easing third
    • Cycle
      • There are many different options for how we can cycle through items. You can cycle through images, or text, or other objects. It is not limited to images. You can find all of the options for cycle here:
        http://jquery.malsup.com/cycle/
      • We will use two of the cycle options: scrollLeft and fade
      • Both cycles you create will have a delay. One will use easing, one will not.
    • Easing
      • Easing is a method of transitioning. Think of a ball bouncing... the ball starts fast, but slows down as it loses momentum. This would be called easing out. You can find all of the options for easing here:
        http://gsgd.co.uk/sandbox/jquery/easing/
      • We will only use one instance of easing on this assignment: easeInOutBack
      • You should be able to see applications of easing on many things that you do outside of this assignment.
    • Video Embedding
    • CSS
      • This assignment has extensive CSS in it. The goal is to expose you to large amounts of CSS in order to increase your time spent writing CSS in hopes that writing it in the future will come more naturally to you.
      • CSS Alpha Layers
        • You can achieve semi-transparency by using alpha layers. You should first set the color using rgb and then set it again using rgba. This is a method of degrading gracefully. If rgba does not work for some reason, rgb should still work. Here are some examples:
          • background-color: rgb(50, 50, 50);
            background-color: rgba(50, 50, 50, .99);
             
          • background-color: rgb(177, 148, 108);
            background-color: rgba(177, 148, 108, .75);
             
          • color: rgb(14, 32, 59);
            color: rgba(14, 32, 59, .75);
    • Screen Resizing
      • Screen resizing in CSS can be done with statements similar to this:
        @media screen and (min-width: 480px) { ... }
        @media screen and (min-width: 768px) { ... }
      • This section of the CSS is given to you below so that you can copy and paste it. However, spend some time looking at it. I provided it to copy and paste because the rest of the code was already so long.
    • Validation:
      • Turn off accessibility validation for this one.
      • There will be HTML5 validation errors for frameborder within the iframe, that is ok for this one.
      • There should not be any other validation errors.
    • Code
      • Here is the code for this entire exercise. Proper use would be: look at the code to make sure you are approaching the assignment the correct way. Then try to do it on your own. Then use the code to make sure you've done it correctly. Improper use would be: copying without interpreting, which would result in not really learning what you're doing. The code is provided to help you be successful and so that you don't have to ask as many questions about the assignment.
      • index page code
      • css code part 1
      • css code part 2
      • css code part 3 screen resizing (you can copy & paste this part. paste after part 2 in same file)
      • text for articles
    • Screen Captures

Grading Rubric

CSS -7 pts max
HTML5 -6 pts max
JavaScript / jQuery -5 pts max
Validation -4 pts max
Comments -2 pts max
Total 24 pts total