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() {
     //$("#audioLanding").play()
+
     $("#audioLanding")[0].play()
     $("#audioLanding").loop = true
+
     $("#audioLanding")[0].loop = true
  
 
     $('[data-toggle="popover"]').popover()
 
     $('[data-toggle="popover"]').popover()
Line 13: Line 13:
  
 
         growFn = setInterval(function() {
 
         growFn = setInterval(function() {
             if($("#audioLanding").volume >= 0.2) {
+
             if($("#audioLanding")[0].volume >= 0.2) {
                 $("#audioLanding").volume -=0.05
+
                 $("#audioLanding")[0].volume -=0.05
 
             }
 
             }
 
             if ($("#main-container #button").width() <= 2 * $(window).width()) {
 
             if ($("#main-container #button").width() <= 2 * $(window).width()) {

Revision as of 21:56, 17 October 2018