diff --git a/.gitignore b/.gitignore index de60cbe..8b5374e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ /Assignments/JavaScript/MP11_CalebFontenot/nbproject/private/ /Assignments/JavaScript/lab16js_CalebFontenot/nbproject/private/ /Assignments/JavaScript/MP12_CalebFontenot/nbproject/private/ +/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/private/ diff --git a/Assignments/JavaScript/MP12_CalebFontenot/public_html/dice.html b/Assignments/JavaScript/MP12_CalebFontenot/public_html/dice.html new file mode 100644 index 0000000..7b9cf52 --- /dev/null +++ b/Assignments/JavaScript/MP12_CalebFontenot/public_html/dice.html @@ -0,0 +1,83 @@ + + + + + Dice + + + + +
+
+
+
+
+ + + + + diff --git a/Assignments/JavaScript/MP12_CalebFontenot/public_html/index.html b/Assignments/JavaScript/MP12_CalebFontenot/public_html/index.html deleted file mode 100644 index 976d252..0000000 --- a/Assignments/JavaScript/MP12_CalebFontenot/public_html/index.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Dice - - - - -
- - - - -
- - - - diff --git a/Assignments/JavaScript/MP12_CalebFontenot/public_html/wagers.html b/Assignments/JavaScript/MP12_CalebFontenot/public_html/wagers.html new file mode 100644 index 0000000..f013224 --- /dev/null +++ b/Assignments/JavaScript/MP12_CalebFontenot/public_html/wagers.html @@ -0,0 +1,108 @@ + + + + + Dice + + + + +
+
+
+
+
+
+
+
+
+ + + + diff --git a/Assignments/JavaScript/lab16js_CalebFontenot/nbproject/project.properties b/Assignments/JavaScript/lab16js_CalebFontenot/nbproject/project.properties index 1a6f722..fccd5d7 100644 --- a/Assignments/JavaScript/lab16js_CalebFontenot/nbproject/project.properties +++ b/Assignments/JavaScript/lab16js_CalebFontenot/nbproject/project.properties @@ -2,4 +2,3 @@ file.reference.lab16js_CalebFontenot-public_html=public_html file.reference.lab16js_CalebFontenot-test=test files.encoding=UTF-8 site.root.folder=${file.reference.lab16js_CalebFontenot-public_html} -test.folder=${file.reference.lab16js_CalebFontenot-test} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/.bowerrc b/Assignments/JavaScript/lab17js_CalebFontenot/.bowerrc new file mode 100644 index 0000000..0ba26f2 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "public_html/bower_components" +} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/Gruntfile.js b/Assignments/JavaScript/lab17js_CalebFontenot/Gruntfile.js new file mode 100644 index 0000000..496183b --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/Gruntfile.js @@ -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({ + }); +}; diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/bower.json b/Assignments/JavaScript/lab17js_CalebFontenot/bower.json new file mode 100644 index 0000000..e84e7b0 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/bower.json @@ -0,0 +1,13 @@ +{ + "name": "lab17js_CalebFontenot", + "version": "1.0.0", + "main": "path/to/main.css", + "ignore": [ + ".jshintrc", + "**/*.txt" + ], + "dependencies": { + }, + "devDependencies": { + } +} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/gulpfile.js b/Assignments/JavaScript/lab17js_CalebFontenot/gulpfile.js new file mode 100644 index 0000000..eccfb02 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/gulpfile.js @@ -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 +}); diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.properties b/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.properties new file mode 100644 index 0000000..6b00775 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.properties @@ -0,0 +1,5 @@ +file.reference.lab17js_CalebFontenot-public_html=public_html +file.reference.lab17js_CalebFontenot-test=test +files.encoding=UTF-8 +site.root.folder=${file.reference.lab17js_CalebFontenot-public_html} +test.folder=${file.reference.lab17js_CalebFontenot-test} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.xml b/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.xml new file mode 100644 index 0000000..f3d36a6 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/nbproject/project.xml @@ -0,0 +1,9 @@ + + + org.netbeans.modules.web.clientproject + + + lab17js_CalebFontenot + + + diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/package.json b/Assignments/JavaScript/lab17js_CalebFontenot/package.json new file mode 100644 index 0000000..9e4de31 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/package.json @@ -0,0 +1,8 @@ +{ + "name": "lab17js_CalebFontenot", + "version": "1.0.0", + "keywords": ["util", "functional", "server", "client", "browser"], + "author": "caleb", + "contributors": [], + "dependencies": {} +} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.html b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.html new file mode 100755 index 0000000..9b363a8 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.html @@ -0,0 +1,229 @@ + + +Example 8.14 + + + + +
+ +

Jackie's Jewelry Inventory

+
+
+
+ +

Ring Inventory

+
+
+
+ +

Bracelet Inventory

+
+
+
+ +

Pendant Inventory

+
+
+
+
+ + + + diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.js b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.js new file mode 100755 index 0000000..a86aeed --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/ex_8_14.js @@ -0,0 +1,12 @@ +function getRings() +{ + var rings = new Array("gold band", "silver band", "turquoise inlay", "emerald stone", "ruby stone"); + var r = rings.length; + r_title = "Ring Inventory"; + document.getElementById('ring_head').innerHTML = r_title; + for (i = 0; i <= (r - 1); i++) + { + document.getElementById('ring_inventory').innerHTML = (rings[i] + "
"); + } + document.write(""); +} diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/public_html/images/jewel_box1.jpg b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/images/jewel_box1.jpg new file mode 100755 index 0000000..8f906c6 Binary files /dev/null and b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/images/jewel_box1.jpg differ diff --git a/Assignments/JavaScript/lab17js_CalebFontenot/public_html/index.html b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/index.html new file mode 100644 index 0000000..8176272 --- /dev/null +++ b/Assignments/JavaScript/lab17js_CalebFontenot/public_html/index.html @@ -0,0 +1,48 @@ + + + + + TODO supply a title + + + + +
+
+
+
+
+ + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8.zip b/Chapter ZIPs/JavaScript/ch8.zip new file mode 100644 index 0000000..99e4283 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch8.zip differ diff --git a/Chapter ZIPs/JavaScript/ch8/.DS_Store b/Chapter ZIPs/JavaScript/ch8/.DS_Store new file mode 100644 index 0000000..51f8dd1 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch8/.DS_Store differ diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_10.html b/Chapter ZIPs/JavaScript/ch8/ex_8_10.html new file mode 100755 index 0000000..5f2aceb --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_10.html @@ -0,0 +1,31 @@ + + +Example 8.10 + + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_11.html b/Chapter ZIPs/JavaScript/ch8/ex_8_11.html new file mode 100755 index 0000000..57875e2 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_11.html @@ -0,0 +1,31 @@ + + +Example 8.11 + + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_12.html b/Chapter ZIPs/JavaScript/ch8/ex_8_12.html new file mode 100755 index 0000000..be60f49 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_12.html @@ -0,0 +1,31 @@ + + +Example 8.12 + + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_13.html b/Chapter ZIPs/JavaScript/ch8/ex_8_13.html new file mode 100755 index 0000000..6c15dfc --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_13.html @@ -0,0 +1,31 @@ + + +Example 8.13 + + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_14.html b/Chapter ZIPs/JavaScript/ch8/ex_8_14.html new file mode 100755 index 0000000..626a94b --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_14.html @@ -0,0 +1,107 @@ + + +Example 8.14 + + + + +
+ +

Jackie's Jewelry Inventory

+
+
+
+ +

Ring Inventory

+
+
+
+ +

Bracelet Inventory

+
+
+
+ +

Pendant Inventory

+
+
+
+
+ + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_14.js b/Chapter ZIPs/JavaScript/ch8/ex_8_14.js new file mode 100755 index 0000000..a86aeed --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_14.js @@ -0,0 +1,12 @@ +function getRings() +{ + var rings = new Array("gold band", "silver band", "turquoise inlay", "emerald stone", "ruby stone"); + var r = rings.length; + r_title = "Ring Inventory"; + document.getElementById('ring_head').innerHTML = r_title; + for (i = 0; i <= (r - 1); i++) + { + document.getElementById('ring_inventory').innerHTML = (rings[i] + "
"); + } + document.write(""); +} diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_16.html b/Chapter ZIPs/JavaScript/ch8/ex_8_16.html new file mode 100755 index 0000000..f52df44 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_16.html @@ -0,0 +1,27 @@ + + +Example 8.16 + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_17.html b/Chapter ZIPs/JavaScript/ch8/ex_8_17.html new file mode 100755 index 0000000..fdd46f9 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_17.html @@ -0,0 +1,58 @@ + + +Example 8.17 + + + + +

Loading a 2-Dimensional Array

+ + + + + + + + + + + + + + + + +
cell 00 cell 01 cell 02
cell 10 cell 11 cell 12
cell 20 cell 21 cell 22
+ + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_2.html b/Chapter ZIPs/JavaScript/ch8/ex_8_2.html new file mode 100755 index 0000000..1ffaea6 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_2.html @@ -0,0 +1,23 @@ + + + + Example 8.2 + + + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_3.html b/Chapter ZIPs/JavaScript/ch8/ex_8_3.html new file mode 100755 index 0000000..0af7520 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_3.html @@ -0,0 +1,18 @@ + + + + + Example 8.3 + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_6.html b/Chapter ZIPs/JavaScript/ch8/ex_8_6.html new file mode 100755 index 0000000..62f51ae --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_6.html @@ -0,0 +1,19 @@ + + + + + Example 8.6 + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_7.html b/Chapter ZIPs/JavaScript/ch8/ex_8_7.html new file mode 100755 index 0000000..39e9105 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_7.html @@ -0,0 +1,18 @@ + + + + Example 8.7 + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_8.html b/Chapter ZIPs/JavaScript/ch8/ex_8_8.html new file mode 100755 index 0000000..bcbd061 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_8.html @@ -0,0 +1,33 @@ + + + + Example 8.8 + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/ex_8_9.html b/Chapter ZIPs/JavaScript/ch8/ex_8_9.html new file mode 100755 index 0000000..8ecb722 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/ex_8_9.html @@ -0,0 +1,37 @@ + + +Example 8.9 + + + + + diff --git a/Chapter ZIPs/JavaScript/ch8/greg/greg.css b/Chapter ZIPs/JavaScript/ch8/greg/greg.css new file mode 100755 index 0000000..521d0a2 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/greg/greg.css @@ -0,0 +1,122 @@ +body { background-color: #000040; + background-image: url(background.gif); + color: #88ffff; + font-family: Verdana, Arial, sans-serif; +} +#container { margin-left: auto; + margin-right: auto; + width:80%; + min-width:700px; + } + + +#logo { + text-align:center; + margin: 0; + font-family: Geneva, Arial, Helvetica, sans-serif; + padding-top: 30px; + padding-bottom: 20px; + +} +#nav { + float: left; + width: 200px; + padding-top: 10px; + text-align:left; + color: #88FFFF; + font-size: 12px; +} +#nav a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +#content { + margin-left: 150px; + padding: 30px; + overflow:auto; + border: medium groove #88FFFF; + line-height: 135%; + +} + +.floatright {padding-left:20px; + float:right; + } +.floatleft { + float:left; + padding: 30px 0px 20px; +} +#footer { font-size: .60em; + font-style: italic; + text-align: center; + border-top: 2px double #000040; + padding-top: 20px; + padding-bottom: 20px; +} + +h2 { text-transform: uppercase; + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px none; + margin-right: 20px; +} +h3 { + color: #88ffff; + font-size: 1.2em; + border-bottom: 1px solid #000000; + margin-right: auto; + text-align: left; + padding-top: 10px; + padding-right: 20px; + padding-bottom: 10px; + padding-left: 20px; + line-height: 120%; +} +.details { padding-left:20%; + padding-right:20%; +} + + +img {border:0; } + + +.content { + margin: 20px; + padding: 20px; + height: 3700px; + width: 500px; +} +a {text-decoration:none; + margin: 15px; + display: block; + color: #88FFFF; + font-size: 12px; +} +a:hover { + color: #000040; + background-color: #88ffff; +} +span { + font-size: 20px; + font-weight: bold; + font-family: "Courier New", Courier, mono; + color: #88ffff; + background-position: center center; + text-align: center; + vertical-align: middle; +} +table { + border-collapse: collapse +} +td { + border: 2px solid #88ffff; + width: 5em; + color: #88ffff; + text-align: center; +} +.nobdr { + border: none; + cell-padding: 5px; +} diff --git a/Chapter ZIPs/JavaScript/ch8/greg/greg_game_15.html b/Chapter ZIPs/JavaScript/ch8/greg/greg_game_15.html new file mode 100755 index 0000000..61389c4 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/greg/greg_game_15.html @@ -0,0 +1,135 @@ + + +Greg's Gambits | Greg's 15 + + + + +
+ +

Greg's 15

+

 

+ +
+

+

You can move any number into an empty spot by moving up, down,right, or left. Diagonal moves are not allowed. The object is to get all the numbers into correct order, from 1 through 15 with the empty space at the end.

+ + + + + + + + + + + + + + + + + + + + + + +
    
    
    
    
+
+ +
+ diff --git a/Chapter ZIPs/JavaScript/ch8/greg/images/superhero.jpg b/Chapter ZIPs/JavaScript/ch8/greg/images/superhero.jpg new file mode 100755 index 0000000..5f64be5 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch8/greg/images/superhero.jpg differ diff --git a/Chapter ZIPs/JavaScript/ch8/greg/play_games.html b/Chapter ZIPs/JavaScript/ch8/greg/play_games.html new file mode 100755 index 0000000..cedb232 --- /dev/null +++ b/Chapter ZIPs/JavaScript/ch8/greg/play_games.html @@ -0,0 +1,44 @@ + + + +Greg's Gambits | Games Menu + + + + + +
+ + +

Play A Game

+
+ +
+

Menu of Available Games

+ + + + + + + + + + + + + +
Greg's Tales Madame Vadoma Sees All
The Secret Message Encoder Battle the Evil Troll
The Game of 15  
+

 

+
+ +
+ + diff --git a/Chapter ZIPs/JavaScript/ch8/images/jewel_box1.jpg b/Chapter ZIPs/JavaScript/ch8/images/jewel_box1.jpg new file mode 100755 index 0000000..8f906c6 Binary files /dev/null and b/Chapter ZIPs/JavaScript/ch8/images/jewel_box1.jpg differ diff --git a/ZIPs/JavaScript/MP12_CalebFontenot.zip b/ZIPs/JavaScript/MP12_CalebFontenot.zip new file mode 100644 index 0000000..31e2aaa Binary files /dev/null and b/ZIPs/JavaScript/MP12_CalebFontenot.zip differ diff --git a/ZIPs/JavaScript/lab17js_CalebFontenot.zip b/ZIPs/JavaScript/lab17js_CalebFontenot.zip new file mode 100644 index 0000000..ee041f3 Binary files /dev/null and b/ZIPs/JavaScript/lab17js_CalebFontenot.zip differ