diff --git a/= b/= deleted file mode 100644 index 251b314f..00000000 --- a/= +++ /dev/null @@ -1,110 +0,0 @@ -angular.module('angular-input-stars', []) - - .directive('inputStars', ['$rootScope', function ($rootScope) { - - var directive = { - - restrict: 'EA', - replace: true, - template: '', - require: 'ngModel', - scope: true, - - link: link - - }; - - return directive; - - function link(scope, element, attrs, ngModelCtrl) { - - scope.items = new Array(+attrs.max); - - var emptyIcon = attrs.iconEmpty || 'fa-star-o'; - var iconHover = attrs.iconHover || 'angular-input-stars-hover'; - var fullIcon = attrs.iconFull || 'fa-star'; - var iconBase = attrs.iconBase || 'fa fa-fw'; - scope.listClass = attrs.listClass || 'angular-input-stars'; - scope.readonly = ! (attrs.readonly === undefined); - - ngModelCtrl.$render = function () { - - scope.last_value = ngModelCtrl.$viewValue || 0; - - }; - - scope.getClass = function (index) { - - return index >= scope.last_value ? iconBase + ' ' + emptyIcon : iconBase + ' ' + fullIcon + ' active '; - - }; - - scope.unpaintStars = function ($index, hover) { - - scope.paintStars(scope.last_value - 1, hover); - - }; - - scope.paintStars = function ($index, hover) { - - //ignore painting, if readonly - if (scope.readonly) { - return; - } - var items = element.find('li').find('i'); - - for (var index = 0; index < items.length; index++) { - - var $star = angular.element(items[index]); - - if ($index >= index) { - - $star.removeClass(emptyIcon); - $star.addClass(fullIcon); - $star.addClass('active'); - $star.addClass(iconHover); - - } else { - - $star.removeClass(fullIcon); - $star.removeClass('active'); - $star.removeClass(iconHover); - $star.addClass(emptyIcon); - - } - } - - !hover && items.removeClass(iconHover); - - }; - - scope.setValue = function (index, e) { - - //ignore painting - if (scope.readonly) { - return; - } - var star = e.target; - - if (e.pageX < star.getBoundingClientRect().left + star.offsetWidth / 2) { - scope.last_value = index + 1; - } else { - scope.last_value = index + 1; - } - - ngModelCtrl.$setViewValue(scope.last_value); - - //Execute custom trigger function if there is one - if(attrs.onStarClick){ - $rootScope.$eval(attrs.onStarClick); - } - - }; - - } - - }]); diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T21-40-39.227Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T21-40-39.227Z.png new file mode 100644 index 00000000..2b5fe6a4 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T21-40-39.227Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-10-49.652Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-10-49.652Z.png new file mode 100644 index 00000000..ca754ed5 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-10-49.652Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-18-06.446Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-18-06.446Z.png new file mode 100644 index 00000000..85897fa3 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-18-06.446Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-19-53.000Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-19-53.000Z.png new file mode 100644 index 00000000..85897fa3 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-19-53.000Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-23-13.289Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-23-13.289Z.png new file mode 100644 index 00000000..85897fa3 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-23-13.289Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-24-29.276Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-24-29.276Z.png new file mode 100644 index 00000000..1b34b4cd Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-24-29.276Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-26-09.782Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-26-09.782Z.png new file mode 100644 index 00000000..9b134057 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-26-09.782Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-27-11.237Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-27-11.237Z.png new file mode 100644 index 00000000..18d37f25 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-27-11.237Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-47-17.779Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-47-17.779Z.png new file mode 100644 index 00000000..83e28f3a Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-47-17.779Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-49-05.762Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-49-05.762Z.png new file mode 100644 index 00000000..dc926c2e Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-49-05.762Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-50-12.243Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-50-12.243Z.png new file mode 100644 index 00000000..db6cde65 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-50-12.243Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-51-30.622Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-51-30.622Z.png new file mode 100644 index 00000000..277d6ab5 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-51-30.622Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-34.071Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-34.071Z.png new file mode 100644 index 00000000..15066db4 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-34.071Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-41.915Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-41.915Z.png new file mode 100644 index 00000000..6c3b0897 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-52-41.915Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-07.360Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-07.360Z.png new file mode 100644 index 00000000..71ff2eec Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-07.360Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-55.972Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-55.972Z.png new file mode 100644 index 00000000..711298d3 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-53-55.972Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-16.835Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-16.835Z.png new file mode 100644 index 00000000..4a11be44 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-16.835Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-49.802Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-49.802Z.png new file mode 100644 index 00000000..4682c76b Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T22-54-49.802Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T23-00-48.652Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T23-00-48.652Z.png new file mode 100644 index 00000000..e728b0ed Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-07T23-00-48.652Z.png differ diff --git a/app/e2e_tests/screenshots/ERROR_chrome_2016-11-08T05-44-35.077Z.png b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-08T05-44-35.077Z.png new file mode 100644 index 00000000..8cbf3483 Binary files /dev/null and b/app/e2e_tests/screenshots/ERROR_chrome_2016-11-08T05-44-35.077Z.png differ