Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
marsrobertson committed Oct 26, 2024
1 parent c4741bf commit 2183871
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@

app.controller("HomeCtrl", function($scope, $http) {
$scope.sliderValue = 0;
$scope.sliderValue2 = 0;
$scope.sliderTouched = false;
$scope.sliderTouched2 = false;

$scope.change = function() {
$scope.sliderTouched = true;
console.log("Slider value changed to:", $scope.sliderValue);
}
$scope.change2 = function() {
$scope.sliderTouched2 = true;
}

$scope.submit = function() {
Expand Down Expand Up @@ -101,7 +105,7 @@
</span>
<span class="tobottom">
<span class="label-small" ng-if="!sliderTouched2">move the slider to decide</span>
<span class="label" ng-if="sliderTouched2">{{sliderValue}}</span>
<span class="label" ng-if="sliderTouched2">{{sliderValue2}}</span>
</span>

<br><br>
Expand Down

0 comments on commit 2183871

Please sign in to comment.