Good day. I apologize for the trivial question, but do not really understand the reason. All libraries connected, but app not working.
error: Uncaught TypeError: $(...).croppie is not a function
<head>
<link rel='stylesheet' href='/css/bootstrap.css'/>
<link rel='stylesheet' href='/css/style.css'/>
<link rel='stylesheet' href='/css/jquery-ui.css'/>
<link rel="stylesheet" href="/css/croppie.css"/>
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/bootstrap.js"></script>
<script src="/js/croppie.js"></script>
</head>
<body>
<div id="page">
<div id="demo-basic">
</div>
</div>
<script type="text/javascript">
$(function() {
var basic = $('#demo-basic').croppie({
viewport: {
width: 150,
height: 200
}
});
basic.croppie('bind', {
url: 'https://i.imgur.com/xD9rzSt.jpg',
points: [77, 469, 280, 739]
});
});
</script>
</body>
via Roman Melnyk
No comments:
Post a Comment