diff options
Diffstat (limited to 'js/background-sparkles.js')
| -rw-r--r-- | js/background-sparkles.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/js/background-sparkles.js b/js/background-sparkles.js index 16cfb4e..bce6b94 100644 --- a/js/background-sparkles.js +++ b/js/background-sparkles.js @@ -1,5 +1,10 @@ -// BACKGROUND SPARKLES -// SCRIPT #1 +// Background only renders based on the original browser window size when +// starting to load the site. Due to rendering issues, I don't think I +// can do it other wise. + +/////////////// +// SCRIPT #1 // +/////////////// // Set up base pattern var pattern = Trianglify({ @@ -25,7 +30,9 @@ document.body.appendChild(pattern.svg()) // png.src = pattern.png() // document.body.appendChild(png) -// SCRIPT #2 +/////////////// +// SCRIPT #2 // +/////////////// $('.title-wrapper').css('width', window.innerWidth); $('.title-wrapper').css('height', window.innerHeight); |