-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
20 lines (16 loc) · 722 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$( document ).ready(function() {
//set up random elements on the page
var colours = ['#FFC926','#00DF70','#FA0032','#00EBFF'];
var logos = ['lagoon','canyon','stadium','valley'];
var backgroundsCount = 45;
var random;
random = Math.floor(Math.random()*logos.length);
$(".mainLogo").attr("src","logo/"+logos[random]+".png");
random = Math.floor(Math.random()*backgroundsCount);
$("html").attr("style","background-image: url('sitebackground/img ("+random+").jpg');");
$( ".randomColour" ).each(function() {
var random = Math.floor(Math.random()*logos.length);
$( this ).css( "color", colours[random]);
});
$('[data-toggle="tooltip"]').tooltip()
});