File tree Expand file tree Collapse file tree 10 files changed +11
-7
lines changed
Expand file tree Collapse file tree 10 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ hackergarten.github.io.iml
66
77# external dependencies
88node_modules
9+
10+ # generated by gulp
11+ feed.xml
12+ projects.html
Original file line number Diff line number Diff line change 33angular . module ( 'hackergartenPage' , [ 'ngDialog' ] ) ;
44
55angular . module ( 'hackergartenPage' )
6- . directive ( 'randomHeaderImage' , function ( ) {
7- return function ( scope , element , attrs ) {
8- var image = " pictures/header." + Math . floor ( ( Math . random ( ) * 4 ) + 1 ) + ".png"
6+ . directive ( 'randomHeaderImage' , function ( ) {
7+ return function ( _scope , element , _attrs ) {
8+ var image = ` pictures/header.${ Math . floor ( ( Math . random ( ) * 4 ) + 1 ) } .jpg` ;
99
10- element . css ( {
11- 'background' : ' url("' + image + ' ") center center no-repeat'
12- } ) ;
13- } ;
10+ element . css ( {
11+ 'background' : ` url("${ image } ") center center no-repeat`
12+ } ) ;
13+ } ;
1414 } ) ;
You can’t perform that action at this time.
0 commit comments