Created
May 6, 2016 19:14
-
-
Save anonymous/d0f00af35aabf5e8982e998a5a9bd7da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>mwss Project</title> | |
<link rel="stylesheet" href="Style.css"/> | |
<script src="jquery-1.12.3.js"></script> | |
</head> | |
<body> | |
<div class="divzin"> | |
</div> | |
<div class="divzin2 hidden"> | |
<h2> Testando a tretinha </h2> | |
<p> huehuebrbr hueheu brbr hueheu brbr huehue brbr hue hue brbr huheue brbr huehue brbr </p> | |
</div> | |
<script type="text/javascript"> | |
function teytey(){ | |
var dv2 = $('div.divzin2') | |
dv2offset = 300; | |
documentzin = $(document); | |
documentzin.on('scroll', | |
function(){ | |
if(documentzin.scrollTop() > dv2offset && dv2.hasclass){ | |
dv2.removeClass('hidden'); | |
} | |
} | |
); | |
} | |
window.onload = teytey; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment