1. JavaScript / Говнокод #21745

    −51

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    $scope.advert = {
      weekDays : [1]
    };
    $scope.featuredDays = [0, 3, 7, 14];
    $scope.days = [];
    for (var i = 0; i < 31; i++) {
      var day = i + 1;
      if (day < 10) {
        day = "0" + day;
      }
      $scope.days.push(day);
    }
    
    $scope.monthes = [
      {name:"January", value: 0},
      {name:"February", value: 1},
      {name:"March", value: 2},
      {name:"April", value: 3},
      {name:"May", value: 4},
      {name:"June", value: 5},
      {name:"July", value: 6},
      {name:"August", value: 7},
      {name:"September", value: 8},
      {name:"October", value: 9},
      {name:"November", value: 10},
      {name:"December", value: 11}
    ];
    
    $scope.years = [2016,2017, 2018, 2019, 2020, 2021];

    AngularJS. No idea

    Запостил: dgkj, 29 Ноября 2016

    Комментарии (4) RSS

    • Очевидный datepicker
      <div ng-repeat="d in data.availableDates track by $index" ng-hide="$index == 0">
          <i ng-bind="d"></i>
      </div>
      Ответить
    • > monthes
      features, scopes, names, values, pushes

      monthes, dayes, weekes, yeares
      Ответить

    Добавить комментарий