Difference between revisions of "Template:AUC TURKEY"

Line 50: Line 50:
 
#contentContainer {
 
#contentContainer {
 
text-align: left;
 
text-align: left;
background-color: white;
+
background-color: rgba(255,0,0,.5);
 
width: 1200px;
 
width: 1200px;
 
margin: auto;
 
margin: auto;
Line 267: Line 267:
 
             var newBlue = beginning_color.blue() + ( ( ending_color.blue() - beginning_color.blue() ) * percentScrolled );
 
             var newBlue = beginning_color.blue() + ( ( ending_color.blue() - beginning_color.blue() ) * percentScrolled );
 
             var newColor = new $.Color( newRed, newGreen, newBlue );
 
             var newColor = new $.Color( newRed, newGreen, newBlue );
             console.log( newColor.red(), newColor.green(), newColor.blue() );
+
             //console.log( newColor.red(), newColor.green(), newColor.blue() );
 
             $('body').animate({ backgroundColor: newColor }, 0);
 
             $('body').animate({ backgroundColor: newColor }, 0);
 
         } else if ( scroll_pos > animation_end_pos ) {
 
         } else if ( scroll_pos > animation_end_pos ) {
Line 275: Line 275:
 
         } else { }
 
         } else { }
 
var temperature=Math.round(-80*percentScrolled+56);
 
var temperature=Math.round(-80*percentScrolled+56);
 +
if(isNaN(temperature)) temperature=-24;
 
$("#temperature").html(temperature+" °C");
 
$("#temperature").html(temperature+" °C");
 
     });
 
     });

Revision as of 10:12, 30 June 2015

37 °C