Skip to content

Commit

Permalink
More formatting changes
Browse files Browse the repository at this point in the history
Eslint stop yelling at me please
  • Loading branch information
JLanderman committed Dec 10, 2023
1 parent 43c0c04 commit 76ac4e4
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 57 deletions.
46 changes: 23 additions & 23 deletions Assignment 2/index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<!--CSC 193 Assignment 2 -->
<!--CSC 193 Assignment 2 -->
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
<body>
<h1>Assignment 2: Testing your Understanding</h1>
<p>It's really scary just how low quality locks the company <strong>Masterlock</strong> makes,
despite it being such a large company with products commonplace everywhere.
I have seen so many videos on just about every single lock they make having
unforgivable, easily fixable security flaws in them that it is truly frightening
to know that so many people buy their products. Anyone with simple tools and basic
knowledge of locks can open nearly any <strong>Masterlock</strong> product without a key.
That being said, though, <strong>Masterlock</strong> can make durable locks like any other
company, so the fact that forceful entry methods to bypass locks are much more common probably
tilts things in their favor. If you want to see a few examples of what I am talking about, you
can watch a video <a href=https://www.youtube.com/watch?v=s5jzHw3lXCQ>here</a> on this topic.
</p>
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
<body>
<h1>Assignment 2: Testing your Understanding</h1>
<p>It's really scary just how low quality locks the company <strong>Masterlock</strong> makes,
despite it being such a large company with products commonplace everywhere.
I have seen so many videos on just about every single lock they make having
unforgivable, easily fixable security flaws in them that it is truly frightening
to know that so many people buy their products. Anyone with simple tools and basic
knowledge of locks can open nearly any <strong>Masterlock</strong> product without a key.
That being said, though, <strong>Masterlock</strong> can make durable locks like any other
company, so the fact that forceful entry methods to bypass locks are much more common probably
tilts things in their favor. If you want to see a few examples of what I am talking about, you
can watch a video <a href="https://www.youtube.com/watch?v=s5jzHw3lXCQ">here</a> on this topic.
</p>

<img
src="https://media.istockphoto.com/id/182188389/photo/padlock-open-and-closed.jpg?s=612x612&w=0&k=20&c=_LOOVSF2l6HuYIAFd_aHtWsKz2EDlxtaJstHM0u17Ac="
alt="Padlock icon"
/>
<img
src="https://media.istockphoto.com/id/182188389/photo/padlock-open-and-closed.jpg?s=612x612&w=0&k=20&c=_LOOVSF2l6HuYIAFd_aHtWsKz2EDlxtaJstHM0u17Ac="
alt="Padlock icon"
/>

</body>
</body>
</html>
57 changes: 26 additions & 31 deletions Assignment 5/fancifymytext.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
<!--CSC 193 Assignment 5 -->
<!--CSC 193 Assignment 5 -->

<!DOCTYPE html>
<html>
<head>
<title>Fancify Shamcify</title>
<style>
fieldset {
border: 1px solid #000;
padding: 10px;
margin-bottom: 10px;
}
</style>
</head>
<head>
<title>Fancify Shamcify</title>
<link rel="stylesheet" href="styles.css">

<body>
<h1>Fancify my Text</h1>
<!-- Text field -->
<fieldset>
<legend>Text</legend>
<textarea rows="4" cols="30" id="userText"></textarea>
</fieldset>
</head>

<!-- Fancify controls -->
<fieldset>
<legend>Fancify</legend>
<button onclick="makeBigger()">Bigger!</button><br><br>
<input type="radio" id="fancy" name="fancyType" value="fancy" onchange="applyStyles()">
<label for="fancy">FancyShmancy</label><br>
<input type="radio" id="boring" name="fancyType" value="boring" onchange="applyStyles()">
<label for="boring">BoringBetty</label><br>
<button onclick="mooText()">Moo</button><br><br>
</fieldset>
<body>
<h1>Fancify my Text</h1>
<!-- Text field -->
<fieldset>
<legend>Text</legend>
<textarea rows="4" cols="30" id="user_text"></textarea>
</fieldset>

<!-- Script file inclusion -->
<script src="fancifymytext.js"></script>
</body>
<!-- Fancify controls -->
<fieldset>
<legend>Fancify</legend>
<button onclick="makeBigger()">Bigger!</button><br><br>
<input type="radio" id="fancy" name="fancyType" value="fancy" onchange="applyStyles()">
<label for="fancy">FancyShmancy</label><br>
<input type="radio" id="boring" name="fancyType" value="boring" onchange="applyStyles()">
<label for="boring">BoringBetty</label><br>
<button onclick="mooText()">Moo</button><br><br>
</fieldset>

<!-- Script file inclusion -->
<script src="fancifymytext.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions Assignment 5/fancifymytext.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// javascript functions for assignment 5
function makeBigger() {
var textArea = document.getElementById("userText");
var textArea = document.getElementById("user_text");
textArea.style.fontSize = "24pt";
}

function applyStyles() {
var textArea = document.getElementById("userText");
var textArea = document.getElementById("user_text");
var fancyRadio = document.getElementById("fancy");
var boringRadio = document.getElementById("boring");

Expand All @@ -25,7 +25,7 @@ function applyStyles() {
}

function mooText() {
var textArea = document.getElementById("userText");
var textArea = document.getElementById("user_text");
textArea.value = textArea.value.toUpperCase();

var sentences = textArea.value.split(". ");
Expand Down
5 changes: 5 additions & 0 deletions Assignment 5/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fieldset {
border: 1px solid #000;
padding: 10px;
margin-bottom: 10px;
}

0 comments on commit 76ac4e4

Please sign in to comment.