Commit 1dd907aabfb10a7d7d761740e2f82a5fb3b7de1b

Authored by Mukul Rajput
1 parent 55551f19
400-SOURCECODE/AIAHTML5.Web/index.html
... ... @@ -431,7 +431,7 @@
431 431 <div>
432 432 <button type="button" class="btn btn-primary btn-xs pull-left btn-annotation" id="paintLine" data-toggle="tooltip" data-placement="top" title="Paint" style="margin-right:1%;" ng-click="paintBrush()"><i class="fa fa-paint-brush"></i></button>
433 433 <button type="button" class="btn btn-primary btn-xs pull-left btn-annotation" data-toggle="tooltip" data-placement="top" title="Erase" ng-click="EraseDrawing()"><i class="fa fa-eraser"></i></button>&nbsp;
434   - <div class="marginL2 pull-left"><input type="number" id="amount-2" value="25" step="1" style="width:60px;"></div>&nbsp;
  434 + <div class="marginL2 pull-left"><input type="number" id="amount-2" step="1" style="width:60px;" min="0" max="60" oninput="Brushsize(this)"></div>&nbsp;
435 435 <div class="pull-left" style="width:45%; margin-left:2%;">
436 436 <div id="slider-range-min-2"></div>
437 437 </div>
... ... @@ -987,6 +987,26 @@
987 987 div.style.display = 'block';
988 988 }
989 989 </script>
  990 + <script>
  991 + function Brushsize(object) {
  992 +
  993 + if (parseInt(object.value) == 0) {
  994 + object.value = 0;
  995 +
  996 + }
  997 +
  998 + if (parseInt(object.value) <= parseInt(object.max)) {
  999 +
  1000 + object.value = object.value;
  1001 +
  1002 +
  1003 + }
  1004 + else {
  1005 + object.value = object.value.slice(0, 1);
  1006 +
  1007 + }
  1008 + }
  1009 + </script>
990 1010  
991 1011  
992 1012 <!--<script src="libs/jquery/1.11.3/jquery.min.js"></script>-->
... ...