Jump to content
Rhododendron

Oh god script

Recommended Posts

Just in case anyone cares:

 

><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<style>
   #ohGod
   {
       position: fixed;
       bottom: 0;
       left: 0;

       width: 200px;
       height: 30px;

       text-align: center;

       border-top: 1px solid grey;
       border-left: 1px solid grey;
       border-right: 1px solid grey;
   }
</style>

<script type="text/javascript">
   jQuery(function($) {
       $("#ohGodSound").prop('volume', 0.2);

       setTimeout(function() {
           $('#ohGod').fadeIn('fast');
       }, 15000);

       $('#ohGod').click(function()
       {
           $(this).text("Volume increased by 100%!");

           $('#ohGodSound').prop('volume', 1.0);
       });
   });
</script>

<div id="ohGod" style="display: none;">Turn off Music</div>

<audio id="ohGodSound" autoplay="">
   <source src="https://xenogamers.com/aprilfools/spam.mp3" type="audio/mp3"></source>
</audio>

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now