CS193C Summer 2015, Young



Similar documents
USER S MANUAL JOOMLA! GOVERNMENT WEB TEMPLATE

Google Sites: Creating, editing, and sharing a site

MAGENTO THEME SHOE STORE

Microsoft Expression Web

File types There are certain image file types that can be used in a web page. They are:

Application Note. Building a Website Using Dreamweaver without Programming. Nan Xia. MSU ECE 480 Team 5

Umbraco Content Management System (CMS) User Guide

Web App Development Session 1 - Getting Started. Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola

Dreamweaver and Fireworks MX Integration Brian Hogan

How To Customize A Forum On Vanilla Forum On A Pcode (Forum) On A Windows (For Forum) On An Html5 (Forums) On Pcode Or Windows 7 (Forforums) On Your Pc

Step 2 Open Kompozer and establish your site. 1. Open Kompozer from the Start Menu (at the Polytechnic) or from the downloaded program.

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 1

IE Class Web Design Curriculum

This guide will walk you through the process of disabling pop-up blockers found in three popular web browsers.

WP Popup Magic User Guide

USER GUIDE. Unit 4: Schoolwires Editor. Chapter 1: Editor

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

Using Adobe Dreamweaver CS4 (10.0)

BT CONTENT SHOWCASE. JOOMLA EXTENSION User guide Version 2.1. Copyright 2013 Bowthemes Inc.

Portal Recipient Guide

LaGuardia Community College Thomson Ave, Long Island City, New York Created by ISMD s Dept. Training Team. Overview

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

spring semester course schedule

OPENTABLE GROUP SEARCH MODULE GETTING STARTED ADD RESERVATIONS TO YOUR WEBSITE

Magento Theme EM0006 for Computer store

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Getting Started with the AdVantage Program

Table of Contents. What is ProSite? What is Behance? How do ProSite & Behance work together? Get Started in 6 Easy Steps.

Google Docs, Sheets, and Slides: Share and collaborate

WordPress websites themes and configuration user s guide v. 1.6

Using HTML5 Pack for ADOBE ILLUSTRATOR CS5

Web layout guidelines for daughter sites of Scotland s Environment

Create a Web Page with Dreamweaver

Accessing the Online Meeting Room (Blackboard Collaborate)

The Essential Guide to HTML Design

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

Using your content management system EXPRESSIONENGINE CMS DOCUMENTATION UKONS

Dreamweaver: Getting Started Website Structure Why is this relevant?

Hello. What s inside? Ready to build a website?

Virtual Exhibit 5.0 requires that you have PastPerfect version 5.0 or higher with the MultiMedia and Virtual Exhibit Upgrades.

Sizmek Formats. HTML5 Page Skin. Build Guide

Dreamweaver. Introduction to Editing Web Pages

Volume FIRST WALKTHROUGH. The 10-Minute Guide to Using Newsletter Services. First Walkthrough: the 10-Minute Guide

Hypercosm. Studio.

Reference Guide for WebCDM Application 2013 CEICData. All rights reserved.

CUSTOMER+ PURL Manager

GUIDELINES FOR SCHOOL WEB PAGES

Google Docs Basics Website:

Web Design I. Spring 2009 Kevin Cole Gallaudet University

University of East Anglia Liferay Training Admissions, Recruitment and Marketing Department

Shipment Label Header Guide

Form Builder Manual. A brief overview of your website s Form Builder with screenshots.

IAS Web Development using Dreamweaver CS4

Charts for SharePoint

Terminal Four (T4) Site Manager

TUTORIAL 4 Building a Navigation Bar with Fireworks

Debugging JavaScript and CSS Using Firebug. Harman Goei CSCI 571 1/27/13

Using Style Sheets for Consistency

How to Edit Your Website

Mastering the JangoMail EditLive HTML Editor

Google Drive Create, Share and Edit Documents Online

This Quick Reference Sheet covers the most common technical issues that may be encountered.

Using the Adventist Framework with your netadventist Site

Blueball First Class Sandvox Designs v2.0 Works with Sandvox 2+ only!

Helpful Hints, Inserting Images, and creating Links to documents

Configuring the JEvents Component

Site Maintenance. Table of Contents

Pizza SEO: Effective Web. Effective Web Audit. Effective Web Audit. Copyright Pizza SEO Ltd.

Creating Web Pages with Netscape/Mozilla Composer and Uploading Files with CuteFTP

Using JCPS Online for Websites

Web Developer Jr - Newbie Course

RSW. Responsive Fullscreen WordPress Theme

Page Create and Manage a Presentation 1.1 Create a Presentation Pages Where Covered

Fireworks CS4 Tutorial Part 1: Intro

Ecommerce and PayPal Shopping Cart

Installation & User Guide

Joomla Article Advanced Topics: Table Layouts

JTouch Mobile Extension for Joomla! User Guide

Microsoft Expression Web Quickstart Guide

Creating a Restaurant Website

Official JSN Dome v1 Quick Start Guide

One Page Everywhere. Fluid, Responsive Design with Semantic.gs

Introduction to Microsoft Word 2008

TASKSTREAM FAQs. 2. I have downloaded a lesson attachment, but I cannot open it. What is wrong?

... Asbru Web Content Management System. Getting Started. Easily & Inexpensively Create, Publish & Manage Your Websites

Content Management Manual

STUDENT ADMINISTRATION TRAINING GUIDE SETTING YOUR BROWSER FOR PEOPLESOFT DOWNLOADS

Getting Started with Automizy

This short guide will teach you how to turn your newly installed Joomla 2.5 site into a basic three page website.

WEB DESIGN COURSE CONTENT

Dreamweaver CS5. Module 1: Website Development

BROWSER-BASED DEVELOPMENT & NETWORK MONITORING UTILITIES

UCL INFORMATION SERVICES DIVISION INFORMATION SYSTEMS. Silva. Introduction to Silva. Document No. IS-130

Transcription:

Assignment #2 JavaScript CS193C Summer 2015, Young In this assignment we get a chance to work with JavaScript. Thursday, July 16th at 3:15pm. This assignment is due For this assignment, you are not allowed to use WYSIWYG editors (e.g., no Dreamweaver) and should only use a text editor to compose your assignment. In addition, your files should work on both the latest version of Mozilla Firefox and Google Chrome. Car Options In this part of the assignment you will create a webpage which allows a user to configure a car to see how much it costs. Here is a screenshot showing my version of the assignment: As you can see, the car comes in four different configurations:

GT Manual $17,790.00 GT Automatic $18,590.00 GT-S Manual $22,455.00 GT-S Sportshift $23,155.00 The user chooses a basic configuration and then chooses a factory options package and adds on any dealer options desired. Here are the factory options: Option Combo #1 $1235.00 - Power Windows, Doors, Cruise Control Option Combo #2 $3354.00 - Rear Spoiler and Fog Lamps - Keyless Entry - Power Tilt & Slide Moonroof - Power Windows, Doors, Cruise Control No Combo $0 and here are the dealer options: CD Autochanger $550.00 VIP Security System $399.00 Auto-Dimming Mirror $295.00 When the user clicks on the Calculate Total button, you should determine the price of the car, given their configuration and option choices. In addition, as you can see on the right of the webpage I ve given the user an option to choose a color for their car. When they change the color in the list, the picture of the car should automatically change. I ve included five car photos for you to use with this assignment. I ve gussied up the webpage using stylesheets. Make sure you get the layout right heading across the top of the webpage and then two columns. Additional styling isn t strictly necessary, but is a nice opportunity for CSS practice. In addition, you may notice that I ve converted the total cost back to a price ($20,375.00 instead of simply 20375). You may want to consider doing this using JavaScript strings. Bookland For this part of the assignment, you will create a webpage that allows the user to search for a book with a specific title and/or by a specific author. Then, you will display information about the book on the web page. We are providing book data that you can use in a file called books.txt. For each book, we provide the author s name, the book s title, and a short description of the book. The way this should work is as follows: You should store the book data we provide in arrays. You can use multiple synchronized arrays or one array of objects. The user of your webpage will type in a name and/or a title. You will search for this specific book (or books), using the given name and/or title, in your array(s). Once you find a match, you should display its information on the page. You may need to display information for several books if there are several matches. Please see the Things to note paragraph later on to find out exactly what you need to display. Since we are only displaying text on the page, we can just use a textarea in which to display the information. Here s what the page might look like: 2

In this example, the user typed in Isabel Allende as the author s name and The House of Spirits as the book title. When the user clicked Find book, the short description for this specific book was displayed in the textarea. Things to note: You do not have to worry about case sensitivity. If you want to make the search case insensitive, go for it but it is not required. If a book is not found, your page should do something reasonable, i.e. either display Book not found in the textarea or display nothing. If the user enters both a name and a title, you should display the description of the first match, i.e. the first book found that satisfies the given criteria. If the user only enters an author name, you can either display the title and description of the first match, i.e. the first book that you found by that author, or you can display the titles and descriptions of all books by that author. Similarly, if the user only enters a title, you can display the author and description of the first match, i.e. the first book that you found with that title, or you can display the authors and descriptions of all books with that title. All information must be displayed in the textarea. Assume the user has to enter full names to get a match so Isabel will not get a match, but Isabel Allende will. Once you get the array search working, try to see how you can improve the page using style sheets. Several professional web pages actually use form elements to display text information on pages, as we are doing in this problem. However, they also use CSS to hide the form elements and to make their pages look better. We d like you to experiment with different CSS to see how you can change the form elements. Here s our version of the web page with CSS: 3

We have changed the appearance of the text fields, buttons and textarea using several different style attributes. Your page does not have to look like ours. Feel free to change things any way you want to, as long as you experiment with CSS and form elements. Offices at Tresidder Union In this problem we experiment with dynamically creating a new webpages using the Document object s writeln method. To start out with create the following webpage: 4

Your webpage should have the following characteristics: A banner centered horizontally at the top of the webpage. Use the officesgnr.gif file provided. Center the webpage and set the webpage contents to a width of 640 pixels with the remaining width of the window evenly split between the left and right margins. You can do this by setting margin-left and margin-right to the special value auto instead of providing an actual measurement for them. Place the Stanford seal floated to the right side of the window. Create a pulldown menu listing the following items: Choose an Office, Residential Education (ResEd), Student Services Center, Office of Student Affairs (OSA), and Vice-Provost of Student Affairs. Now, write JavaScript code such that when any of the offices are selected, a popup window is created displaying information about that office. Here is an example of the popup window displayed when the Residential Education menu item is selected: As you can see, each popup window should display the name of the office, the phone number, a brief description, and a logo. Use the ResEd logo for Residential Education use the Stanford Seal for the remaining offices. Unformatted text descriptions for each are included with this assignment s downloads. I ve also included a large version of the ResEd logo and a small-sized version of the Stanford Seal in the downloads. If a previous office s popup window is still up when the user selects a new item make sure you reuse the window (instead of generating an additional popup window). Also make sure your popup window ends up on top of the main window (use the popup window s focus method to bring it to the forefront). The webpage should be dynamically generated (i.e., don t create four different HTML files). Instead store the information about each office in an array in JavaScript and then creating the contents of each popup window dynamically using the document.writeln function. Remember, the window.open function returns the Window object associated with the popup. From the popup s Window object you can access the popup window s document object. Use the document s writeln method to generate the contents. Creating the popup locally will reduce the load on your webserver and may increase the user s response time. 5

Credits The Car photos (and the car prices) are from a Toyota Celica and are taken from www.toyota.com. I ve eliminated car options and car colors to keep the assignment simple. The Stanford Seal used for the Offices webpage was taken from the Stanford Administration homepage. In some cases, the images were modified by cropping or resizing. Text for Tresidder was again borrowed from the official Tresidder Memorial Union pamphlet. Additional text was taken from the VPSA organizational chart found at adminguide.stanford.edu. The ResEd description was taken from resed.stanford.edu. Book problem created by Marina Kassianidou, former CS193C TA. The short description of each book in the books.txt file is taken from the books back cover. 6