Week 13 Thursday (with Page 5 corrections)

Similar documents
Week 12 Thursday. For milestone #2 and #3, also submit a screenshot of your GUI once it is launched.

Week 10 Tuesday. CS 400 Programming III. X-Team Exercise #4: due before 10pm on April 16th

Web Designing HTML5 NOTES

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.

Week 14 Thursday (Last Lecture)

Week 11. CS 400 Programming III. Program 4: due before 10pm on Monday 11/19

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

IBM Forms V8.0 Custom Themes IBM Corporation

<form>. input elements. </form>

Session 6. JavaScript Part 1. Reading

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

INTRODUCTION TO JAVASCRIPT

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

WEB TECHNOLOGY TUTORIAL SESSION #6 FOR WE CREATE IDENTITY. Module 1 - We Create Identity

Software. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading

Responsive Web Design. From: Ethan Marcotte - Responsive Web Design 2011

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

CIS 3308 Web Application Programming Syllabus

Notes General. IS 651: Distributed Systems 1

HTML and CSS MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Introduction to using HTML to design webpages

CS Final Exam Review Suggestions - Spring 2018

CSC Web Programming. Introduction to JavaScript

CIT BY: HEIDI SPACKMAN

Responsive Design. Responsive Design Approach. Technique for building webpages

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006

Sections and Articles

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

G I F T U N I V E R S I T Y

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Programmazione Web a.a. 2017/2018 HTML5

ThingLink User Guide. Andy Chen Eric Ouyang Giovanni Tenorio Ashton Yon

Development Training. For Developer. 4 th May, AOT Intranet Web Portal

Session 16. JavaScript Part 1. Reading

Last &me: Javascript (forms and func&ons)

CSC309 Tutorial CSS & XHTML

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

Week 11 Tuesday. CS 400 Programming III

JavaScript s role on the Web

Basics of Web Technologies

Pop-up. File format/ size: Must provide (.gif or.jpg) still image - max. 75KB for Mobile - max. 400KB for Tablet

Responsive Design for Web Applications R.I.T. S. Ludi/R. Kuehl p. 1 R I T. Software Engineering

CSC309 Winter Lecture 2. Larry Zhang

CISC 1600 Lecture 2.4 Introduction to JavaScript

Problem Description Earned Max 1 HTML / CSS Tracing 20 2 CSS 20 3 PHP 20 4 JS / Ajax / JSON 20 5 SQL 20 X Extra Credit 1 TOTAL Total Points 100

c122mar413.notebook March 06, 2013

Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6

Introduction to Web Development

Creating HTML files using Notepad

University of Washington, CSE 154 Homework Assignment 7: To-Do List

JavaScript: Introduction, Types

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

(Refer Slide Time: 01:40)

Problem Description Earned Max 1 HTML / CSS Tracing 20 2 CSS 20 3 PHP 20 4 JS / Ajax / JSON 20 5 SQL 20 X Extra Credit 1 TOTAL Total Points 100

Basic PHP Lecture 17

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 12

Such JavaScript Very Wow

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

Mul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 06 (Haup-ach)

Programming Lab 1 (JS Hwk 3) Due Thursday, April 28

Note: The screenshots in this document were taken on Windows in Firefox, which may differ from your system.

IN Development in Platform Ecosystems Lecture 2: HTML, CSS, JavaScript

Admin. A2 due next Wed! Exercise 8 posted: should aim to finish part 1 of E8 by next Mon. so you can get help from TA s on Tues./Thurs.

CSC 337. JavaScript Object Notation (JSON) Rick Mercer

CSc 337 LECTURE 5: GRID LAYOUT AND JAVASCRIPT

CSCI 201 Google Chrome DevTools

Web API Lab. The next two deliverables you shall write yourself.

Mobile Site Development

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

First Simple Interactive JSP example

Introduction to WEB PROGRAMMING

JQuery and Javascript

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

Lecture Topic Projects

A Web-Based Introduction

Week 9. CS 400 Programming III

Course Information. Todd Sproull Jolley 536 Office Hours by Appointment. Monday and Wednesday 10 11:30 AM

Customization Guide 1

CS10001: Computer Literacy Lab Assignment #4

Responsive Design. Responsive design is it important? But typical is not enough. Some typical screen sizes

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

CPSC 481: CREATIVE INQUIRY TO WSBF

The Benefits of CSS. Less work: Change look of the whole site with one edit

Code Editor. The Code Editor is made up of the following areas: Toolbar. Editable Area Output Panel Status Bar Outline. Toolbar

FRONT END DEVELOPER CAREER BLUEPRINT

Chapter 3 HTML Multimedia and Inputs

Brief Intro to Firebug Sukwon Oh CSC309, Summer 2015

JS Lab 1: (Due Thurs, April 27)

PHP with MySQL: What you need to know Chapter 3. This section is on using PHP script tags appropriately in your PHP program.

CERTIFICATE IN WEB PROGRAMMING

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

Ministry of Higher Education and Scientific Research

COMP519 Web Programming Lecture 7: Cascading Style Sheets: Part 3 Handouts

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Computer Science Department

Programming web design MICHAEL BERNSTEIN CS 247

SCHOOL OF COMPUTING, ENGINEERING AND MATHEMATICS SEMESTER 2 EXAMINATIONS 2015/2016 CI135. Introduction to Web Development

Summary 4/5. (contains info about the html)

Transcription:

Week 13 Thursday (with Page 5 corrections) Quizzes: HTML/CSS and JS available and due before 10 pm next Tuesday, May 1 st. You may do your own web research to answer, but do not ask classmates, friends, or other. Can complete multiple times, but may get different questions. Highest score is kept. Team Project: Tournament-Bracket (A-Team 100 pts) Milestone #3: due before 10pm Thursday, May 3 rd For milestone #3, also submit a screenshot of your GUI once it is launched. Milestones #1 and #2 are being graded. Yash's Project 1 Design Diagram is available at: https://pages.cs.wisc.edu/~deppeler/cs400/assignments/project1/files/classdiagram.jpg Read: Module 14 TODAY in Lecture: CSS o Responsive Web Design o key elements Create your own Web Page on the CS Web Servers Chrome Developer Tools o Right click a control -> Inspect o Show Device Mode JavaScript Examples o Click-Me o RideLog HTML5 Web Forms Next Week Python Create Your own Web Site 1. Pair up with someone who has created a web page 2. Follow the instructions from W13 Tuesday Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 1

Chrome Developer Tools https://developers.google.com/web/tools/chrome-devtools/ web authoring and debugging tools built in to Chrome 1. click Customize and control Google Chrome 2. mouse over More tools 3. click Developer Tools Can view and change page styles debug JavaScript view console message analyze performance Demonstrate Device Mode Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 2

Media Queries FYI ONLY not on final exam https://www.w3schools.com/css/css_rwd_mediaqueries.asp 1. Create multiple sets of styles 2. Add code to query what type of device 3. Select the style set accordingly https://www.w3schools.com/css/tryit.asp?filename=tryresponsive_mediaquery_breakpoints Design for smallest device first. Choose breaks in the content to be on their own "page" based on content. Identify where content hits a point where it could adapt to take advantage of a wider width. Write media queries' widths in ems, not pixels so layout will adapt to font size changes in addition to screen widths. To calculate the width in ems, divide the target width in pixels by default font size in pixels. For example: phone width of (320px) divided by 16px (the default font size) = (20em). Use min-width breakpoints that build on top of the mobile styles. The first breakpoint applies layout adjustments on top of the standard mobile styles so these can be fairly lightweight. Additional min-width breakpoints can be added for even wider screens that each build on the previous breakpoint styles. To override framework styles only for smaller screens, use a max-width breakpoint instead. This allows you to constrain your style overrides to only apply below a certain screen width. Above this width, all the normal styles will apply so this is good for certain types of overrides. <style>.example { padding: 20px; color: white; /* Extra small devices (phones, 600px and down) */ @media only screen and (max width: 600px) {.example {background: red; /* Small devices (portrait tablets and large phones, 600px and up) */ @media only screen and (min width: 600px) {.example {background: green; /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min width: 768px) {.example {background: blue; /* Large devices (laptops/desktops, 992px and up) */ @media only screen and (min width: 992px) {.example {background: orange; </style> <p class="example">resize the browser window to see how the background color of this paragraph changes on different screen sizes.</p> Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 3

Web Frameworks Provide a library of styles and JavaScript that are standard and ready to use Can download the frameworks or link to the required files online https://www.w3schools.com/bootstrap/default.asp http://jquerymobile.com/ JavaScript is a programming language allows users to interact with and control the page content syntax similar to Java Reference Strings objects with properties and methods use single or double quotes, escape "\'" "JavaScript".length.toUpperCase().toLowerCase().trim() Numbers single type for integer and decimal values literal and expressions var x = 1 + 0.5; x = 1 + 1/2; x += 3.14 * 2 + (-7-3); Booleans var lighton = true; lighton = false; Operators + - * / ( ) = + is add or concatenate Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 4

Variables var x = 3; var y = x + 3; Conditionals if ( x > y ) { else { Arrays var a = [ 10, [ "hello", "good-bye" ], d ] var e = a[0]; // a[-1] a[ 2 ] = new String(3)+ +; a.length a.concat(b) a.pop() a.push() a.reverse(); Objects contain other objects var s1 = { name: "Deb", pets: [ "Bo", "Kiwi" ], course: "cs400" ; s1.pets[0] // "Bo" s1["pets"][1] // "Kiwi" s1["greeting"] = "hi" Console use to display information to the console window (instead of browser page) console.log( s1.pets[0] ); Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 5

Click Me Button <button id="click" onclick="clickme()">click Me</button><br> <label id="tally"> </label> <p id="count"> </p> <script> var n = 0; function clickme() { n += 1; var button = document.getelementbyid("click"); var tally = document.getelementbyid("tally"); var count = document.getelementbyid("count"); if ( button.innerhtml == "Click Me" ) { button.innerhtml = "Don't Click Me"; tally.innerhtml += "1" ; <!-- up arrow " "; --> else { button.innerhtml = "Click Me"; tally.innerhtml += "0" ; <!-- down arrow " "; --> count.innerhtml = "" + n; </script> Log Button <button id="clear" onclick="clearlog()">clear Log</button><br> <input type="text" id="msg" onchange="log(this.value);" /><br> <p id="log"></p> <script> var logstring = ""; // add date -> msg to the logstring function log(msg) { if (msg=="") return; var date = new Date(); var logmsg = date.getmonth() + "/" + date.getdate() + "/" + date.getfullyear() + " -> " + msg; logstring += logmsg + "<br>"; document.getelementbyid("log").innerhtml = logstring; function clearlog() { logstring = ""; document.getelementbyid("log").innerhtml = logstring; </script> Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 6

Forms get information from the user and process on server action determines where to send form information target determines how to display response submit responses to the script using get or post https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit_id https://www.w3schools.com/php/default.asp // php tutorial <form action="/action_page.php" method="get" target="_self"> First name:<br><input type="text" name="firstname" value="mickey"><br> Last name:<br> <input type="text" name="lastname" value="mouse"><br><br> <input type="submit" value="submit"> </form> Form action: GET vs POST Notes on GET: (from w3c) Appends form-data into the URL in name/value pairs The length of a URL is limited (about 3000 characters) Never use GET to send sensitive data! (will be visible in the URL) Useful for form submissions where a user wants to bookmark the result GET is better for non-secure data, like query strings in Google Notes on POST: POST has no size limitations, and can be used to send large amounts of data. Form submissions with POST cannot be bookmarked Use POST if the form data contains sensitive or personal information. POST does not display info in address Copyright 2018 Deb Deppeler, @2014-2016 Jim Skrentny CS 400 (S18): W13R - 7