bruh moment
This commit is contained in:
parent
139266aae4
commit
e190e73b08
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,3 +27,4 @@
|
||||
/Assignments/JavaScript/lab15js_CalebFontenot/nbproject/private/
|
||||
/Assignments/JavaScript/MP11_CalebFontenot/nbproject/private/
|
||||
/Assignments/JavaScript/lab16js_CalebFontenot/nbproject/private/
|
||||
/Assignments/JavaScript/MP12_CalebFontenot/nbproject/private/
|
||||
|
3
Assignments/JavaScript/MP12_CalebFontenot/.bowerrc
Normal file
3
Assignments/JavaScript/MP12_CalebFontenot/.bowerrc
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"directory": "public_html/bower_components"
|
||||
}
|
BIN
Assignments/JavaScript/MP12_CalebFontenot/7-1.pdf
Normal file
BIN
Assignments/JavaScript/MP12_CalebFontenot/7-1.pdf
Normal file
Binary file not shown.
9
Assignments/JavaScript/MP12_CalebFontenot/Gruntfile.js
Normal file
9
Assignments/JavaScript/MP12_CalebFontenot/Gruntfile.js
Normal file
@ -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/MP12_CalebFontenot/bower.json
Normal file
13
Assignments/JavaScript/MP12_CalebFontenot/bower.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "MP12_CalebFontenot",
|
||||
"version": "1.0.0",
|
||||
"main": "path/to/main.css",
|
||||
"ignore": [
|
||||
".jshintrc",
|
||||
"**/*.txt"
|
||||
],
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
}
|
||||
}
|
10
Assignments/JavaScript/MP12_CalebFontenot/gulpfile.js
Normal file
10
Assignments/JavaScript/MP12_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.MP12_CalebFontenot-public_html=public_html
|
||||
file.reference.MP12_CalebFontenot-test=test
|
||||
files.encoding=UTF-8
|
||||
site.root.folder=${file.reference.MP12_CalebFontenot-public_html}
|
||||
test.folder=${file.reference.MP12_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>MP12_CalebFontenot</name>
|
||||
</data>
|
||||
</configuration>
|
||||
</project>
|
8
Assignments/JavaScript/MP12_CalebFontenot/package.json
Normal file
8
Assignments/JavaScript/MP12_CalebFontenot/package.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "MP12_CalebFontenot",
|
||||
"version": "1.0.0",
|
||||
"keywords": ["util", "functional", "server", "client", "browser"],
|
||||
"author": "caleb",
|
||||
"contributors": [],
|
||||
"dependencies": {}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,40 @@
|
||||
<!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>Dice</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<label id="valueOutput"></label><br>
|
||||
<label id="cpuText">CPU Die:<br></label>
|
||||
<label id="cpuDie"></label>
|
||||
<label id="PlayerText">Your Die:<br></label>
|
||||
<label id="playerDie"></label>
|
||||
<br>
|
||||
<label id="input"><input type="button" onclick="rollDie()" value="Roll Die"/></label>
|
||||
</body>
|
||||
<script>
|
||||
function printDie(dieNumber, elementId) {
|
||||
let filename = "DieSet/Die" + dieNumber + ".png";
|
||||
document.getElementById(elementId).innerHTML += "<image src=" + filename + ">";
|
||||
}
|
||||
function rollDie() {
|
||||
document.getElementById("playerDie").innerHTML = "";
|
||||
let diceTotal = 0;
|
||||
for (let i =0; i < 2; i++) {
|
||||
let dieValue = Math.trunc((Math.random() * 6) + 1);
|
||||
printDie(dieValue, "playerDie");
|
||||
diceTotal += dieValue;
|
||||
}
|
||||
writeValue(diceTotal);
|
||||
}
|
||||
function writeValue(yourDiceRoll) {
|
||||
document.getElementById("valueOutput").innerHTML = "Your Dice roll: " + yourDiceRoll
|
||||
}
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user