Difference between revisions of "Template:TecCEM/JsHome"

Line 2: Line 2:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
$(document).ready(function() {
 
$(document).ready(function() {
 +
    opa = 1
 
     $("#audioLanding")[0].play()
 
     $("#audioLanding")[0].play()
 
     $("#audioLanding")[0].loop = true
 
     $("#audioLanding")[0].loop = true
Line 12: Line 13:
 
         growFn = setInterval(function() {
 
         growFn = setInterval(function() {
 
             if($("#audioLanding")[0].volume >= 0.02) {
 
             if($("#audioLanding")[0].volume >= 0.02) {
 +
                opa-=0.001
 +
                $("#centerCircle").css("opacity",opa)
 
                 $("#audioLanding")[0].volume -=0.006
 
                 $("#audioLanding")[0].volume -=0.006
 
             }
 
             }

Revision as of 03:47, 18 October 2018