Footer
This commit is contained in:
6
assets/linker/js/controllers/body-controller.coffee
Normal file
6
assets/linker/js/controllers/body-controller.coffee
Normal 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'
|
||||
]
|
||||
Reference in New Issue
Block a user