Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 01week/datatypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,7 @@ if(!(a>0 && b>0)){
console.log ('Lies');
}

yea



1 change: 1 addition & 0 deletions 01week/rockPaperScissors.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ if (typeof describe === "function") {
} else {
getPrompt();
}
yea;
24 changes: 24 additions & 0 deletions 02week/pigLatinGUI/pigLatins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"use strict";

function pigLatin() {
let newWord = document.getElementById("enterhere").value;
newWord = newWord.trim().toLowerCase();
const vowels = ["a", "e", "i", "o", "u"];

let vowelIndex = 0;
let finish;

if (vowels.includes(newWord[0])) {
finish = newWord + "yay";
} else {
for (let char of newWord) {
if (vowels.includes(char)) {
vowelIndex = newWord.indexOf(char);
break;
}
}

finish = newWord.slice(vowelIndex) + newWord.slice(0, vowelIndex) + "ay";
}
document.getElementById("output").innerHTML = finish;
}
338 changes: 338 additions & 0 deletions 02week/pigLatinGUI/piglatin.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,338 @@
body {
display: grid;
grid-template-columns: 100%;
grid-template-rows: 20% 60% 20%;
width: 100%;
height: 150vh;
margin:0;
padding: 0;
background-image: linear-gradient( #966d49, #c3604c, #b09077);
}





header>h1{
font-family: 'Gloria Hallelujah', cursive;
font-size: 45px;
color:black;


}

header>h2{
font-family: 'Gloria Hallelujah', cursive;
font-size: 30px;
color:black;
}


header{
display:flex;
grid-column: 1/1;
grid-row: 1/2;
justify-content: center;
align-items: center;
flex-direction: column;



}


.middle{
display:flex;
grid-column: 1/1;
grid-row: 2/3;

justify-content: center;
align-items: center;
flex-direction: column;
justify-content: space-around;
}

form{
font-size:40px;
font-family: 'Gloria Hallelujah', cursive;
position: relative;

}
input{
height:85px;
Width:800px;
border-radius: 10px;

}
input[type="text"]
{
font-size:35px;
font-family: 'Gloria Hallelujah', cursive;
text-align: center;
}
button{
height:50px;
Width:200px;
font-family: 'Gloria Hallelujah', cursive;
font-size:15px;
background-color:;
border-radius: 10px;
}
.foot{
display:flex;
grid-column: 1/1;
grid-row: 3/4;
justify-content: center;
align-items: center;
justify-content: space-evenly;

}
.foot1:hover{
color:pink;
}

.foot2:hover{
color:pink;
}

.foot3:hover{
color:pink;
}

.foot4:hover{
color:pink;
}


span{
position:relative;
left:215px;
}


.flip-card {
background-color: transparent;
width: 500px;
height: 200px;

perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;

}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: #604330;
color: black;
font-size:20px;
font-family: 'Gloria Hallelujah', cursive;
display:flex;
align-items:center;
justify-content: center;

border-radius: 10px;
}

/* Style the back side */
.flip-card-back {
background-color: #cc9076;
color: black;
transform: rotateY(180deg);
font-size:40px;
display:flex;
align-items:center;
justify-content: center;
font-family: 'Gloria Hallelujah', cursive;
border-radius: 10px;

}



@media (max-width: 575.98px){






header>h1{
font-family: 'Gloria Hallelujah', cursive;
font-size: 45px;
color:black;


}

header>h2{
font-family: 'Gloria Hallelujah', cursive;
font-size: 30px;
color:black;
}


header{
display:flex;
grid-column: 1/1;
grid-row: 1/2;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #966d49;


}


.middle{
display:flex;
grid-column: 1/1;
grid-row: 2/3;
background-color: #c3604c;
justify-content: center;
align-items: center;
flex-direction: column;
justify-content: space-around;
}

form{
font-size:40px;
font-family: 'Gloria Hallelujah', cursive;
position: relative;

}
input{
height:80px;
Width:300px;

}
input[type="text"]
{
font-size:35px;
font-family: 'Gloria Hallelujah', cursive;
text-align: center;
}
button{
height:50px;
Width:200px;
font-family: 'Gloria Hallelujah', cursive;
font-size:15px;
background-color:
}
.foot{
display:flex;
grid-column: 1/1;
grid-row: 3/4;
background-color: #b09077;
justify-content: center;
align-items: center;
justify-content: space-evenly;

}
.foot1{

}

.foot2{
display:none;

}

.foot3:hover{

}

.foot4{
display:none;
}


span{
position:relative;
left:215px;
}


.flip-card {
background-color: transparent;
width: 275px;
height: 200px;

perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;

}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);

}

/* Position the front and back side */
.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;


}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: #604330;
color: black;
font-size:20px;
font-family: 'Gloria Hallelujah', cursive;
display:flex;
align-items:center;
justify-content: center;

}

/* Style the back side */
.flip-card-back {
background-color: #cc9076;
color: black;
transform: rotateY(180deg);
font-size:40px;
display:flex;
align-items:center;
justify-content: center;
font-family: 'Gloria Hallelujah', cursive;

}

}
Loading