brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
693 stars 530 forks source link

Urgent!!!Can anyone help with the iPad problem #70

Closed mxu0422 closed 8 years ago

mxu0422 commented 9 years ago

When I apply the jSignature plugin to the iPad app, the iPad shows two line, two canvas, but I just need one canvas, anyone can help me remove the second line there? Thank you!

img_9539

Here is the code:

    <script type="text/javascript" src="../shared/js/jSignature.min.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function($) {
            var $sigdiv = $("#signature");
            $sigdiv.jSignature();

        });
    </script>       
        <div style="-webkit-border-radius: 10px 10px 0 0;border-radius: 10px 10px 0 0;text-align: left;color: #fff;background-color: #8c8c8c; font-size: 20px;text-shadow: none !important;font-weight: normal;padding: 15px; font-weight: lighter">Signature</div>
        <div id="signature" ></div>
isAlmogK commented 9 years ago

Hi, your creating the jSignature twice, double check your code also try the following

$("#signature").jSignature();