ch04
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -18,3 +18,4 @@
 | 
				
			|||||||
/Assignments/MP07_CalebFontenot/nbproject/private/
 | 
					/Assignments/MP07_CalebFontenot/nbproject/private/
 | 
				
			||||||
/Assignments/JavaScript_1/nbproject/private/
 | 
					/Assignments/JavaScript_1/nbproject/private/
 | 
				
			||||||
/Assignments/JavaScript/chapter2LatBame/nbproject/private/
 | 
					/Assignments/JavaScript/chapter2LatBame/nbproject/private/
 | 
				
			||||||
 | 
					/Assignments/JavaScript/lab13js_CalebFontenot/nbproject/private/
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								Assignments/JavaScript/lab13js_CalebFontenot/.bowerrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "directory": "public_html/bower_components"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					/* 
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/Gruntfile.js to edit this template
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					module.exports = function (grunt) {
 | 
				
			||||||
 | 
					    // Project configuration.
 | 
				
			||||||
 | 
					    grunt.initConfig({
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
							
								
								
									
										13
									
								
								Assignments/JavaScript/lab13js_CalebFontenot/bower.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "name": "lab13js_CalebFontenot",
 | 
				
			||||||
 | 
					    "version": "1.0.0",
 | 
				
			||||||
 | 
					    "main": "path/to/main.css",
 | 
				
			||||||
 | 
					    "ignore": [
 | 
				
			||||||
 | 
					        ".jshintrc",
 | 
				
			||||||
 | 
					        "**/*.txt"
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    "dependencies": {
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "devDependencies": {
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										10
									
								
								Assignments/JavaScript/lab13js_CalebFontenot/gulpfile.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					/* 
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
				
			||||||
 | 
					 * Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/gulpfile.js to edit this template
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var gulp = require('gulp');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					gulp.task('default', function () {
 | 
				
			||||||
 | 
					    // place code for your default task here
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					file.reference.lab13js_CalebFontenot-public_html=public_html
 | 
				
			||||||
 | 
					file.reference.lab13js_CalebFontenot-test=test
 | 
				
			||||||
 | 
					files.encoding=UTF-8
 | 
				
			||||||
 | 
					site.root.folder=${file.reference.lab13js_CalebFontenot-public_html}
 | 
				
			||||||
 | 
					test.folder=${file.reference.lab13js_CalebFontenot-test}
 | 
				
			||||||
@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project xmlns="http://www.netbeans.org/ns/project/1">
 | 
				
			||||||
 | 
					    <type>org.netbeans.modules.web.clientproject</type>
 | 
				
			||||||
 | 
					    <configuration>
 | 
				
			||||||
 | 
					        <data xmlns="http://www.netbeans.org/ns/clientside-project/1">
 | 
				
			||||||
 | 
					            <name>lab13js_CalebFontenot</name>
 | 
				
			||||||
 | 
					        </data>
 | 
				
			||||||
 | 
					    </configuration>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					{
 | 
				
			||||||
 | 
					    "name": "lab13js_CalebFontenot",
 | 
				
			||||||
 | 
					    "version": "1.0.0",
 | 
				
			||||||
 | 
					    "keywords": ["util", "functional", "server", "client", "browser"],
 | 
				
			||||||
 | 
					    "author": "caleb",
 | 
				
			||||||
 | 
					    "contributors": [],
 | 
				
			||||||
 | 
					    "dependencies": {}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 | 
				
			||||||
 | 
					<html>
 | 
				
			||||||
 | 
					<head>
 | 
				
			||||||
 | 
					  <title>Example 4.10</title>
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
					function getClass()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					 	document.write('<table width="40%" align = "center">');
 | 
				
			||||||
 | 
						var fname = " ";
 | 
				
			||||||
 | 
						var lname = " ";
 | 
				
			||||||
 | 
						var id = " ";
 | 
				
			||||||
 | 
						var username = 0;
 | 
				
			||||||
 | 
						var course = " ";
 | 
				
			||||||
 | 
						course = prompt("What is the name of this course?");
 | 
				
			||||||
 | 
						document.write('<tr><td colspan =4 align = "center">' + course + '</td></tr>');
 | 
				
			||||||
 | 
						document.write('<tr><td>first name</td><td>last name</td><td>ID number</td><td>username</td></tr>');
 | 
				
			||||||
 | 
						//fname = prompt("Enter one student's first name:");
 | 
				
			||||||
 | 
						//lname = prompt("Enter the student's last name:");
 | 
				
			||||||
 | 
						id = prompt("Enter the student's identification number:");
 | 
				
			||||||
 | 
						do
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							fname = prompt("Enter another student's first name or enter 'X' when finished:");
 | 
				
			||||||
 | 
							lname = prompt("Enter another student's last name or enter 'X' when finished:");
 | 
				
			||||||
 | 
					                username = fname + id;
 | 
				
			||||||
 | 
					                document.write('<tr><td>' + fname + '</td><td>' + lname + '</td><td>' + id + '</td><td>' + username + '</td></tr>');
 | 
				
			||||||
 | 
							id = prompt("Enter another student's identification number or enter -9 when finished:");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						while  (id != -9)
 | 
				
			||||||
 | 
						document.write('</table>');
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
 | 
					</<head>
 | 
				
			||||||
 | 
					<body>
 | 
				
			||||||
 | 
					<table align ="center" width ="70%"><tr><td colspan ="2">
 | 
				
			||||||
 | 
					<h1> </h2>
 | 
				
			||||||
 | 
					<h1>Create Usernames</h1>
 | 
				
			||||||
 | 
					<p>You can enter each student's name and ID number and <br />
 | 
				
			||||||
 | 
					this program will create usernames for you</p>
 | 
				
			||||||
 | 
					<tr><td><p> </p>
 | 
				
			||||||
 | 
					<p><input type="button" id="username" value="Click to begin entering names" onclick="getClass();" /></p>
 | 
				
			||||||
 | 
					</td></tr>
 | 
				
			||||||
 | 
					</table>
 | 
				
			||||||
 | 
					</body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 | 
				
			||||||
 | 
					<html>
 | 
				
			||||||
 | 
					<head>
 | 
				
			||||||
 | 
					  <title>Example 4.11</title>
 | 
				
			||||||
 | 
					<script>
 | 
				
			||||||
 | 
						var name = "MaryAnn";
 | 
				
			||||||
 | 
						var greeting = "Welcome home, ";
 | 
				
			||||||
 | 
						document.write('<p>' + greeting + name + '!</p>');
 | 
				
			||||||
 | 
						document.write('<p>' + greeting.toUpperCase() + name.toLowerCase() + '!</p>');
 | 
				
			||||||
 | 
						document.write('<p>' + greeting.toLowerCase() + name.toUpperCase() + '!</p>');
 | 
				
			||||||
 | 
					</script>
 | 
				
			||||||
 | 
					</<head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					<!DOCTYPE html>
 | 
				
			||||||
 | 
					<!--
 | 
				
			||||||
 | 
					Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 | 
				
			||||||
 | 
					Click nbfs://nbhost/SystemFileSystem/Templates/Other/html.html to edit this template
 | 
				
			||||||
 | 
					-->
 | 
				
			||||||
 | 
					<html>
 | 
				
			||||||
 | 
					    <head>
 | 
				
			||||||
 | 
					        <title>TODO supply a title</title>
 | 
				
			||||||
 | 
					        <meta charset="UTF-8">
 | 
				
			||||||
 | 
					        <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
				
			||||||
 | 
					    </head>
 | 
				
			||||||
 | 
					    <body>
 | 
				
			||||||
 | 
					        <div>TODO write content</div>
 | 
				
			||||||
 | 
					    </body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B  | 
| 
		 Before Width: | Height: | Size: 704 KiB After Width: | Height: | Size: 704 KiB  | 
| 
		 Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB  | 
| 
		 Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B  | 
| 
		 Before Width: | Height: | Size: 704 KiB After Width: | Height: | Size: 704 KiB  | 
| 
		 Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB  | 
| 
		 Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B  | 
| 
		 Before Width: | Height: | Size: 704 KiB After Width: | Height: | Size: 704 KiB  | 
| 
		 Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB  | 
| 
		 Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB  | 
| 
		 Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B  | 
| 
		 Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 306 B  | 
| 
		 Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB  | 
| 
		 Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB  | 
| 
		 Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB  | 
| 
		 Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B  | 
| 
		 Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB  | 
| 
		 Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB  | 
| 
		 Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB  | 
| 
		 Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 750 B  | 
| 
		 Before Width: | Height: | Size: 704 KiB After Width: | Height: | Size: 704 KiB  | 
| 
		 Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB  | 
| 
		 Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B  | 
| 
		 Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB  | 
| 
		 Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB  | 
| 
		 Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB  | 
| 
		 Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB  | 
| 
		 Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB  |