jhylands

Time selection

Jan 18th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html lang="en">
  2. <head>
  3.   <meta charset="utf-8" />
  4.   <title>jQuery UI Resizable - Maximum / minimum size</title>
  5.   <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
  6.   <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
  7.   <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
  8.   <link rel="stylesheet" href="/resources/demos/style.css" />
  9.   <style>
  10.   #resizable { width: 200px; height: 150px; padding: 5px; }
  11.   #resizable h3 { text-align: center; margin: 0; }
  12.   </style>
  13.   <script>
  14.   $(function() {
  15.     $( "#resizable" ).resizable({
  16.       maxHeight: 250,
  17.       maxWidth: 200,
  18.       minHeight: 10,
  19.       minWidth: 200
  20.     });
  21.     $( "#resizable" ).draggable({ axis: "y" });
  22.   });
  23.   </script>
  24. </head>
  25. <body>
  26.  
  27. <div id="resizable" class="ui-widget-content">
  28.   <h3 class="ui-widget-header">Resize larger / smaller</h3>
  29. </div>
  30.  
  31.  
  32. </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment