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({
|
||||
});
|
||||
};
|
13
Semester 1/Assignments/JavaScript/chapter2LatBame/bower.json
Normal file
13
Semester 1/Assignments/JavaScript/chapter2LatBame/bower.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "chapter2LatBame",
|
||||
"version": "1.0.0",
|
||||
"main": "path/to/main.css",
|
||||
"ignore": [
|
||||
".jshintrc",
|
||||
"**/*.txt"
|
||||
],
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
}
|
||||
}
|
BIN
Semester 1/Assignments/JavaScript/chapter2LatBame/ch2.pdf
Normal file
BIN
Semester 1/Assignments/JavaScript/chapter2LatBame/ch2.pdf
Normal file
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 @@
|
||||
browser=SL[/Browsers/FirefoxBrowser
|
@@ -0,0 +1,5 @@
|
||||
file.reference.chapter2LatBame-public_html=public_html
|
||||
file.reference.chapter2LatBame-test=test
|
||||
files.encoding=UTF-8
|
||||
site.root.folder=${file.reference.chapter2LatBame-public_html}
|
||||
test.folder=${file.reference.chapter2LatBame-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>chapter2LatBame</name>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "chapter2LatBame",
|
||||
"version": "1.0.0",
|
||||
"keywords": ["util", "functional", "server", "client", "browser"],
|
||||
"author": "caleb",
|
||||
"contributors": [],
|
||||
"dependencies": {}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
<!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>Challenge 1</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript">
|
||||
var firstName = prompt("Please enter your first name");
|
||||
var lastName = prompt("Please enter your last name");
|
||||
var school = prompt("Please enter your school's name", "South Lousiana Community College");
|
||||
var username = firstName.charAt(0) + lastName.charAt(0) + school.slice(0, school.indexOf(" "));
|
||||
document.write("Your username is " + username);
|
||||
</script>
|
||||
</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/ClientSide/html.html to edit this template
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Challenge 2</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript">
|
||||
var age = prompt("Please enter your age.");
|
||||
document.write(age > 18?"You are old enough to vote":"You are not old enough to vote");
|
||||
</script>
|
||||
</html>
|
@@ -0,0 +1,23 @@
|
||||
<!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>Challenge 3</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript">
|
||||
var age = prompt("Please enter your age.");
|
||||
if (age <= 5 & age <= 12) {
|
||||
document.write("Congratulations! Your ticket is free!");
|
||||
} else if (age <= 12) {
|
||||
document.write("Your ticket costs $5.00.");
|
||||
} else {
|
||||
document.write("Your ticket costs $9.00.")
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
@@ -0,0 +1,35 @@
|
||||
<!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>Challenge 4</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script type="text/javascript">
|
||||
var names = new Array(2);
|
||||
var name;
|
||||
for (let i = 0; i < names.length; ++i) {
|
||||
name = prompt("Give me a name.");
|
||||
names[i] = name;
|
||||
console.log(i);
|
||||
}
|
||||
|
||||
if (names[0].charAt(0) > names[1].charAt(0)) {
|
||||
var tmp = names[0];
|
||||
names[0] = names[1];
|
||||
names[1] = tmp;
|
||||
}
|
||||
|
||||
for (let i = 0; i < names.length; ++i) {
|
||||
document.write(names[i] + "</br>");
|
||||
console.log(names[i]);
|
||||
console.log(typeof(names[i]));
|
||||
}
|
||||
|
||||
</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