【调度系统】广东民航医疗快线调度系统源代码
wzp
2024-12-06 0df39a8c5a45c6ff25411eace15d40a606f9769c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$( document ).ready(function() {
    var $image = $(".image-crop > img");
 
    $image.cropper({
        aspectRatio: 7 / 5,
        preview: ".img-preview"
    });
    
    $("#zoomIn").click(function() {
        $image.cropper('zoom', 0.1);
    });
 
    $("#zoomOut").click(function() {
        $image.cropper('zoom', -0.1);
    });
 
    $("#rotateLeft").click(function() {
        $image.cropper('rotate', 45);
    });
 
    $("#rotateRight").click(function() {
        $image.cropper('rotate', -45);
    });
    
    $("#clear").click(function() {
        $image.cropper('clear');
    });
    
    var $replaceWith = $('#replaceWith');
    $('#replace').click(function () {
      $image.cropper('replace', $replaceWith.val());
    });
    
});