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
12 changes: 7 additions & 5 deletions AGoodLaugh/app.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
let comeco = new Audio('comeco.wav'),
fim = new Audio('fim.wav');
let comeco = new Audio('comeco.wav'),
fim = new Audio('fim.wav'),
strange = document.getElementById('color');


$("#devitoButton").click(e => {
comeco.play();
$("#sure").attr("style", "display: none");
});

$(document).ready(event =>
{
$(document).ready(event => {
$("#cabeca img").draggable();
$("#inter").droppable({
drop: function(e) {
drop: function (e) {
fim.play();
strange.classList.add("color");
}
});
});
4 changes: 4 additions & 0 deletions AGoodLaugh/index.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -8,12 +9,14 @@
<link rel="stylesheet" href="style.css">
<title>Danny DeVitto</title>
</head>

<body>
<div id="land">USE YOUR DEVICE ON LANDSCAPE MODE AAAAAAAAAAAAAAAAA</div>
<div id="sure">
ARE YOU DANNY DEVITO??????
<button id="devitoButton">YES</button>
</div>
<h1 id="color">YOU BEEN HACKED!</h1>
<main>
<div id="cabeca">
<img src="head.png">
Expand All @@ -28,4 +31,5 @@
<script src="jqueryTouch.js"></script>
<script src="app.js"></script>
</body>

</html>
83 changes: 83 additions & 0 deletions AGoodLaugh/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,89 @@ main
z-index: 5;
}

.color {
display: block;
text-align: center;
margin-top: 50px;
position: relative;
z-index: 1;
animation: move 3s ease-in;
color: orangered;
}
@keyframes move{
0% { transform: none; color: red;}
5% {color: green;}
10% {
color: yellow;
}
15% {
color: purple;
}
20% {
color: blue;
}

25% {
color: orangered;
}
30% {
color: lightskyblue;
}
35% {
color: hotpink;
}
40% {
color: rebeccapurple;
}
45% {
color: yellow;
}

50% {
color: purple;
}

55% {
color: blue;
}

60% {
color: orangered;
}

65% {
color: lightskyblue;
}

70% {
color: hotpink;
}

75% {
color: rebeccapurple;
}

80% {
color: yellow;
}

85% {
color: purple;
}

90% {
color: blue;
}

95% {
color: orangered;
}
100% {
transform: rotate(1080deg);
color: orangered;
}
}

#corpo
{
position: relative;
Expand Down