LING 408/508: Computational Techniques for Linguists Lecture 17
Today's Topics Homework 6 Review Javascript forms BMI calculator example
Homework 6 Review Review is in two stages: Stage 1 today Stage 2 Thursday 2ND CHANCE: to show you understand the code see later slide due tomorrow night
Homework 6 Review File: 15test.html Step 1: test table cell clicking
Homework 6 Review Step 1: test table cell clicking
Homework 6 Review File: 15test2.html Step 2: test can_move()
Homework 6 Review File: 15test3.html Step 3: test move()
Homework 6 Review 2nd chance (due tomorrow night) can you write shuffle() and solved()?
Javascript Forms Example: http://html5doctor.com/demos/forms/forms- example.html HTML Forms: allow the user to input information multiple named input fields for text, numbers, radio buttons, check boxes etc. can be defined within a form values can be sent to a Web server (using GET or POST) by clicking on a button web server implementation: later in this course we'll use forms and call javascript functions (browser-side functionality only)
BMI: Javascript File: bmi-js.html
BMI: Javascript https://www.w3schools.com/html/html_forms.asp
BMI: SVG bmi-gauge.html Download gaugeSVG.js http://www.codeproject.com/Articles/604502/A-universal-gauge-for-your-web-dashboard bmi-gauge.html Download gaugeSVG.js from the course webpage (I've modified his code a bit)
gaugeSVG.js Note: I've modified his code slightly to allow for different colors for lower and upper warning ranges
bmi-gauge.html
bmi-gauge.html
bmi-gauge.html To set the value: gauge.refresh(bmi, true); "" 25 (upperWarningLimit) (lowerWarningLimit) 18.5 30 (upperActionLimit) To set the value: gauge.refresh(bmi, true); "" animation true|false
bmi-gauge.html