Semester 3 pog
This commit is contained in:
@@ -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({
|
||||
});
|
||||
};
|
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "lab13js_CalebFontenot",
|
||||
"version": "1.0.0",
|
||||
"main": "path/to/main.css",
|
||||
"ignore": [
|
||||
".jshintrc",
|
||||
"**/*.txt"
|
||||
],
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
}
|
||||
}
|
Binary file not shown.
@@ -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,31 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/html.html to edit this template
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Blastoff</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script>
|
||||
function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
async function countdown() {
|
||||
var countdownLength = 5;
|
||||
for (let i = countdownLength; i > 0; i--) {
|
||||
document.write("Countdown in " + i + "..." + "<br>");
|
||||
await sleep(1000);
|
||||
}
|
||||
document.write("BLASTOFF!");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
</html>
|
||||
<body>
|
||||
<button id="countdown" onclick="countdown();">Start Countdown</button>
|
||||
</body>
|
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/html.html to edit this template
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Password Entry</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script>
|
||||
//document.body.innerHTML = "a"; // Clear document contents
|
||||
var password = "";
|
||||
var promptString = "Please enter a password. Your password must be at minimum 8 characters in length.";
|
||||
var timesLooped = 0;
|
||||
do {
|
||||
if (timesLooped === 1) {
|
||||
promptString += " Password is under minimum length.";
|
||||
}
|
||||
password = prompt(promptString);
|
||||
timesLooped++;
|
||||
} while (password.length < 8);
|
||||
document.write("Password meets criteria. Password accepted!");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -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>
|
Reference in New Issue
Block a user