diff --git a/.gitignore b/.gitignore index 78c6bb9..d9bc85e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,7 @@ hackergarten.github.io.iml # external dependencies node_modules + +# generated by gulp +feed.xml +projects.html diff --git a/pictures/header.1.jpg b/pictures/header.1.jpg new file mode 100644 index 0000000..ee3303c Binary files /dev/null and b/pictures/header.1.jpg differ diff --git a/pictures/header.1.png b/pictures/header.1.png deleted file mode 100644 index b93c5de..0000000 Binary files a/pictures/header.1.png and /dev/null differ diff --git a/pictures/header.2.jpg b/pictures/header.2.jpg new file mode 100644 index 0000000..5856b79 Binary files /dev/null and b/pictures/header.2.jpg differ diff --git a/pictures/header.2.png b/pictures/header.2.png deleted file mode 100644 index dc5b533..0000000 Binary files a/pictures/header.2.png and /dev/null differ diff --git a/pictures/header.3.jpg b/pictures/header.3.jpg new file mode 100644 index 0000000..f08cf18 Binary files /dev/null and b/pictures/header.3.jpg differ diff --git a/pictures/header.3.png b/pictures/header.3.png deleted file mode 100644 index 5b21c91..0000000 Binary files a/pictures/header.3.png and /dev/null differ diff --git a/pictures/header.4.jpg b/pictures/header.4.jpg new file mode 100644 index 0000000..332673a Binary files /dev/null and b/pictures/header.4.jpg differ diff --git a/pictures/header.4.png b/pictures/header.4.png deleted file mode 100644 index 8c6e58b..0000000 Binary files a/pictures/header.4.png and /dev/null differ diff --git a/scripts/hgMainPage.js b/scripts/hgMainPage.js index 0ff60b2..acbdd53 100644 --- a/scripts/hgMainPage.js +++ b/scripts/hgMainPage.js @@ -3,12 +3,12 @@ angular.module('hackergartenPage', ['ngDialog']); angular.module('hackergartenPage') - .directive('randomHeaderImage', function () { - return function (scope, element, attrs) { - var image = "pictures/header." + Math.floor((Math.random()*4)+1) + ".png" + .directive('randomHeaderImage', function () { + return function (_scope, element, _attrs) { + var image = `pictures/header.${Math.floor((Math.random() * 4) + 1)}.jpg`; - element.css({ - 'background': 'url("' + image + '") center center no-repeat' - }); - }; + element.css({ + 'background': `url("${image}") center center no-repeat` + }); + }; });