This commit is contained in:
Ben Ramey
2014-03-26 17:19:06 -05:00
parent 4626dd0b8a
commit 0943e32710
3 changed files with 25 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'BodyCtrl', ['$scope', ($scope) ->
randomIndex = Math.floor((Math.random() * 10) % 5) + 1
$.backstretch '/images/backgrounds/bg_' + randomIndex + '.jpg'
]