index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="css/style.css">
  9. </head>
  10. <body>
  11. <div class="container">
  12. <div class="page-header">
  13. <h1>x-editable <small>jquery</small></h1>
  14. </div>
  15. <ul class="list-group">
  16. <li class="list-group-item"><strong>Firstname: </strong><span editable="text" onbeforesave="validateText" onaftersave="sendToServer">Tony</span></li>
  17. <li class="list-group-item"><strong>Lastname: </strong><span editable="text"></span></li>
  18. <li class="list-group-item"><strong>Age: </strong><span editable="number">25</span></li>
  19. <li class="list-group-item"><strong>Email: </strong><span editable="email">Stark@gmail.com</span></li>
  20. <li class="list-group-item"><strong>Password: </strong><span editable="password">123456789</span></li>
  21. </ul>
  22. <div id="change">
  23. <button type="button" id="firstButton" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-pencil"></span></button>
  24. <button type="button" id="secondButton" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></button>
  25. </div>
  26. </div>
  27. <script src="bower_components/jquery/dist/jquery.min.js"></script>
  28. <script src="js/script.js"></script>
  29. </body>
  30. </html>