You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

new-Postv2.html 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset='utf-8'>
  5. <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  6. <title>Post Editor</title>
  7. <meta name='viewport' content='width=device-width, initial-scale=1'>
  8. <link rel='stylesheet' type='text/css' media='screen' href='styles.css'>
  9. <script src='new-Postv2.js'></script>
  10. <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  11. </head>
  12. <body>
  13. <div class="main">
  14. <div class="container postContainer" id="box">
  15. <div class=topper>
  16. <button id="cancelBtn" title="Cancel">&times;</button>
  17. </div>
  18. <div class="editor">
  19. <div class="editor-menubar">
  20. <button class="editor-button icon-picture" data-popup-target="#addPopup" data-attribute="insertImage" title="Add Image"></button>
  21. <div class="" id="overlay"></div>
  22. <div class="popup" id="addPopup">
  23. <div class="popup-header">
  24. <div class="title">Add Picture</div>
  25. <button data-close-btn class="close-btn">&times;</button>
  26. </div>
  27. <div class="popup-body">
  28. <div class="" id="formNewUser">
  29. <div class="regSection">
  30. <input type="text" id="url" required placeholder="URL">
  31. </div>
  32. <div class="btn">
  33. <button type="submit" value="Create" id="add">
  34. <span>Add</span>
  35. </button>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. <button class="editor-button icon-bold" data-attribute="bold" title="Bold"></button>
  41. <button class="editor-button icon-italic" data-attribute="italic" title="Italic"></button>
  42. <button class="editor-button icon-underline" data-attribute="underline" title="Underline"></button>
  43. <button class="editor-button icon-superscript" data-attribute="superscript" title="Superscript"></button>
  44. <button class="editor-button icon-subscript" data-attribute="subscript" title="Subscript"></button>
  45. <input class="color-select" data-attribute="forecolor" type="color" id="forecolor" title="Text Colour">
  46. </div>
  47. <div id="title-text">
  48. <div class="canvas" id="title-canvas" contenteditable=true data-text="Title"></div>
  49. <div class="canvas" id="editor-canvas" contenteditable=true data-text="Content"></div>
  50. </div>
  51. <div class="editor-menubar">
  52. <button class="editor-button icon-undo" data-attribute="undo" title="Undo"></button>
  53. <button class="editor-button icon-repeat" data-attribute="redo" title="Redo"></button>
  54. <button class="editor-button icon-align-left" data-attribute="justifyleft" title="Justify Left"></button>
  55. <button class="editor-button icon-align-center" data-attribute="justifycenter" title="Justify Center"></button>
  56. <button class="editor-button icon-align-right" data-attribute="justifyright" title="Justify Right"></button>
  57. <input class="color-select" data-attribute="backcolor" type="color" id="backcolor" title="Background Colour" value="#ffffff">
  58. </div>
  59. </div>
  60. <div class="lower">
  61. <div class="calendar">
  62. <label for="start">Start date:</label>
  63. <input class="calendar-element" type="date" id="startDate" value=2020-01-01 min=2020-01-01>
  64. </div>
  65. <div class="calendar">
  66. <label for="start">End date:</label>
  67. <input class="calendar-element" type="date" id="endDate" value=2020-01-01 min=2020-01-01>
  68. </div>
  69. <button id="submit-post">Submit</button>
  70. </div>
  71. </div>
  72. </div>
  73. </body>
  74. </html>