Commit 679a8d2a7d7a68d59c762954f4b55db39eb2f6c7

Authored by unknown
1 parent a2917327

removed code

400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1451,104 +1451,9 @@ @@ -1451,104 +1451,9 @@
1451 </script>--> 1451 </script>-->
1452 1452
1453 <script> 1453 <script>
1454 - function onBrushSizeChange() {  
1455 - $('.btnCursor').addClass('activebtncolor');  
1456 - $(".btn-annotation").removeClass("activebtncolor");  
1457 - $(".btn-annotation-erase").removeClass("activebtncolor");  
1458 - $(".btn-annotation-erase").removeClass("activebtncolor");  
1459 - $(".annotationpaintbrushsize").removeClass("activebtncolor");  
1460 - var x = $('#canvasPaint').css("z-index");  
1461 -  
1462 - var y = $('#canvas').css("z-index");  
1463 - if (x > y) {  
1464 - y = parseInt(x) + 1;  
1465 - } else {  
1466 - y = parseInt(y) + 1;  
1467 - }  
1468 - $('#canvas').css("z-index", y);  
1469 - } 1454 +
1470 $(function () { 1455 $(function () {
1471 - $("#slider-range-min-2").slider({  
1472 - range: "min",  
1473 - min: 1,  
1474 - max: 60,  
1475 - value: 1,  
1476 - slide: function (event, ui) {  
1477 - onBrushSizeChange();  
1478 - $("#btnBrushSize").val(ui.value);  
1479 -  
1480 - },  
1481 - stop: function (event, ui) {  
1482 -  
1483 - $("#paintLine").attr("data-size", ui.value);  
1484 -  
1485 - }  
1486 -  
1487 - });  
1488 -  
1489 -  
1490 - $("#btnBrushSize").keydown(function () {  
1491 - onBrushSizeChange();  
1492 - var brushSizevalue = this.value;  
1493 - $("#slider-range-min-2").slider("value", parseInt(brushSizevalue));  
1494 - });  
1495 - $("#btnBrushSize").keyup(function () {  
1496 - onBrushSizeChange();  
1497 - var brushSizevalue = this.value;  
1498 - $("#slider-range-min-2").slider("value", parseInt(brushSizevalue));  
1499 - });  
1500 - $("#btnBrushSizeIncrement").click(function () {  
1501 - onBrushSizeChange();  
1502 - var brushIncrementVar = $("#btnBrushSize").val();  
1503 - if (brushIncrementVar >= 60) {  
1504 - $("#slider-range-min-2").slider("value", 60);  
1505 - }  
1506 - else if (brushIncrementVar == "") {  
1507 - var brushIncrementedValue = 1;  
1508 - $("#btnBrushSize").val(brushIncrementedValue);  
1509 - $("#slider-range-min-2").slider("value", parseInt(brushIncrementedValue));  
1510 - }  
1511 - else {  
1512 - var brushIncrementedValue = parseInt(brushIncrementVar) + 1;  
1513 - $("#btnBrushSize").val(brushIncrementedValue);  
1514 - $("#slider-range-min-2").slider("value", parseInt(brushIncrementedValue));  
1515 - }  
1516 - });  
1517 - $("#btnBrushSizeDecrease").click(function () {  
1518 - onBrushSizeChange();  
1519 - var brushDecreaseVar = $("#btnBrushSize").val();  
1520 - if (brushDecreaseVar == "") {  
1521 - var brushDecrementedValue = 1;  
1522 - $("#btnBrushSize").val(brushDecrementedValue);  
1523 - $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue));  
1524 - }  
1525 - else if (brushDecreaseVar <= 1) {  
1526 - $("#slider-range-min-2").slider("value", 1);  
1527 - }  
1528 - else {  
1529 - var brushDecrementedValue = parseInt(brushDecreaseVar) - 1;  
1530 - $("#btnBrushSize").val(brushDecrementedValue);  
1531 - $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue));  
1532 - }  
1533 - });  
1534 -  
1535 - $("#btnBrushSize").val($("#slider-range-min-2").slider("value"));  
1536 -  
1537 -  
1538 -  
1539 -  
1540 -  
1541 - //$("#slider-range-min-2").on("slidestart", function (event, ui) {  
1542 -  
1543 - // $('.btnCursor').trigger('click');  
1544 - // $(".btn-annotation").removeClass("activebtncolor");  
1545 - // $('.btnCursor').addClass('activebtncolor');  
1546 - // // ctx.clearRect(0, 0, canvasPaint.width, canvasPaint.height);  
1547 -  
1548 -  
1549 - //});  
1550 - // $("#slider-range-min-2").on("slidechange", function (event, ui) { alert("ssasa"); });  
1551 - 1456 +
1552 1457
1553 $(function () { 1458 $(function () {
1554 $('[data-toggle="tooltip"]').tooltip(); 1459 $('[data-toggle="tooltip"]').tooltip();