Before you comment saying that I should research before asking, I have researched and found it to be no help. This is my first time using Jquery and no close to nothing about it and simply need assistance. I appreciate your help in advanced.
Here is my code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="../../../../../../Coding/websites/Procrastinationwebsite/stylesheets/jquery-1.11.1.min.js"></script>
<script>
$("body").click(function(){
$(".overlay, .popup").fadeToggle();
})
</script>
<style type="text/css">
html,
body {
height: 100%;
}
.overlay {
position:absolute;
display:none;
/* color with alpha transparency */
background-color: rgba(0, 0, 0, 0.7);
/* stretch to screen edges */
top: 0;
left: 0;
bottom: 0;
right: 0;
}
.popup {
position: absolute;
width: 300px;
height: 150px;
display: none;
background-color: white;
text-align: center;
/* center it ? */
top: 50%;
left: 50%;
margin-left: -150px;
margin-top: -75px;
}
</style>
</head>
<body>
<div class="overlay"></div>
<div class="popup">Some popup text</div>
<p>Some content text (click anywhere to toggle overlay)</p>
</body>
</html>
It's supposed to do this:
but when I click there is no pop up and appears as if it's not reading the jquery at all. Did I insert it incorrectly? Please keep in mind I have researched and this is my first time using jquery.