diff --git a/docs/js/background.js b/docs/js/background.js deleted file mode 100644 index 1135a941..00000000 --- a/docs/js/background.js +++ /dev/null @@ -1,25 +0,0 @@ -$(document).ready(function() { - var bgArray = ['1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg']; - var path = '../img/background/'; - - - secs = 5; - bgArray.forEach(function(img){ - // caches images, avoiding white flash between background replacements - new Image().src = path + img; - }); - - function backgroundSequence() { - window.clearTimeout(); - var k = 0; - for (i = 0; i < bgArray.length; i++) { - setTimeout(function(){ - $('#hero').css('background-image', 'url(' + path + bgArray[k] +')'); - if ((k + 1) === bgArray.length) { setTimeout(function() { backgroundSequence() }, (secs * 1000))} else { k++; } - }, (secs * 1000) * i) - } - } - backgroundSequence(); -}); - - diff --git a/docs/js/icons.js b/docs/js/icons.js deleted file mode 100644 index 4856412e..00000000 --- a/docs/js/icons.js +++ /dev/null @@ -1,31 +0,0 @@ -var icons = [ - 'r6', - 'daytona', - 'zx6r', - 'gsxr', - 'cbr600rr' -] - -var container = document.querySelector('.icons') - -function spawn() { - var icon = icons[Math.floor(Math.random() * icons.length)] - - var img = document.createElement("IMG") - img.style.right = 25 + Math.random() * 50 + '%' - img.setAttribute('class', 'icon') - img.setAttribute("src", 'img/icons/' + icon + ".png") - - container.appendChild(img) - - setTimeout(function() { - container.removeChild(img) - }, 3000) -} - -setTimeout(function run() { - spawn() - setTimeout(run, 1300 + Math.random() * 400) -}, 1300 + Math.random() * 400) - -spawn()