1
I’m having trouble in the following section of the code
<!DOCTYPE html>
<html lang="pt-br">
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<div id="lista" class="draggable">
<p>Isto é uma</p>
<p>Figurinha</p>
</div>
<div id="resizable" class="ui-widget-content">
<h3 class="ui-widget-header">Figurinha</h3>
</div>
<img id="fla" src="./img/crf.png" class="draggable" />
<img id="liberta" width="250px" height="600px" src="./img/liberta.png" class="draggable" />
<script type="text/javascript" src="./animation.js"></script>
</body>
</html>
and the JS:
$( function() {
$( ".draggable" ).draggable();
$( ".draggable" ).resizable();
} );
$( function() {
$( ".ui-widget-content" ).resizable();
$( ".ui-widget-content" ).draggable();
} );
Only div`s are running draggable and resizable (In images only resizable works). I’m still beginner in JS, if anyone can help me in the solution, from now, I thank.
Solved! Thank you very much!
– BR3N0