Wapegocode Bnduongdz nè cho rôi đừng niếm đá nhé

14 bài đăng
30.05.2018 / 13:09
minhmon
Bài đăng: 25
Member
HTML5
  1. <div class="adjust-content">
  2. <div><style>
  3. .box-trap{
  4. background: #fff;
  5. border-radius: 4px;
  6. border: 1px solid #ccc;
  7. border-top-color: #c2c2c2;
  8. box-shadow: inset 0 1px rgba(0,0,0,0.05), 0 1px rgba(255,255,255,0.5);
  9. margin: 0px 15px;
  10. overflow: hidden;
  11. }
  12. .form_step{
  13. background: #e6ecee;
  14. color: #303030;
  15. text-shadow: 0px 1px 0px #fff;
  16. text-align: left;
  17. padding-bottom: 10px;
  18. }
  19. .form_step .step{
  20. border-top: 1px solid #bcbcbc;
  21. }
  22. .form_step .stext {
  23. padding: 7px 15px 3px;
  24. font-weight: bold;
  25. text-transform: uppercase;
  26. }
  27. .hide{
  28. display: none;
  29. }
  30. .suggest {
  31. padding: 7px 15px;
  32. border-radius: 4px;
  33. font-size: 12px;
  34. }
  35. .comment-text{
  36. color: #000;
  37. }
  38. .suggest a{
  39. border: 1px solid;
  40. text-shadow: none;
  41. padding: 5px;
  42. display: inline-block;
  43. line-height: 10px;
  44. margin-right: 10px;
  45. text-transform: uppercase;
  46. }
  47. .suggest a.confirm {
  48. background: #cced9f;
  49. border-color: #78d580 #3dcc48 #6dd542;
  50. color: #428b00;
  51. }
  52. .suggest a.reset{
  53. background: #ed9f9f;
  54. border-color: #d57878 #cc3d3d #d54242;
  55. color: #8b0000;
  56. }
  57. .waiting-upload {
  58. background: #fff;
  59. padding: 7px 15px;
  60. border-top: 1px solid #eee;
  61. }
  62.  
  63. .input-choose, .input{
  64. padding: 3px 7px;
  65. }
  66. .input-choose input{
  67. margin: 0px!important;
  68. width: 100%;
  69. box-sizing: border-box;
  70. border: 0px!important;
  71. }
  72. .sview {
  73. text-align: center;
  74. padding: 10px;
  75. border-bottom: 1px solid #ddd;
  76. }
  77. .step-git {
  78. background: #eee;
  79. margin: 7px;
  80. border: 1px solid #aaa;
  81. }
  82. .step-git .image{
  83. padding: 10px;
  84. display: inline-block;
  85. vertical-align: top;
  86. }
  87. .step-git img{
  88. max-width: 40px;
  89. }
  90. .step-texts {
  91. width: calc(100% - 60px);
  92. display: inline-block;
  93. padding: 10px 10px 10px 0px;
  94. box-sizing: border-box;
  95. vertical-align: top;
  96. }
  97. </style>
  98. <form id="upload_read">
  99. <div class="title-v2"></div></div>
  100. <div class="form_step">
  101. <div class="step" id="step1">
  102. <input type="hidden" id="url_image">
  103. <div class="stext">BƯỚC 1: Chọn têp hình ảnh</div>
  104. <div class="box-trap">
  105. <div class="input-choose"><input type="file" id="choose_image" accept="image/*"></div><div class="hide waiting-upload">Đang tải ảnh lên ...</div>
  106. </div>
  107. </div>
  108. <div class="step hide" id="step2">
  109. <div class="stext">BƯỚC 2: Ảnh đã chọn</div>
  110. <div class="box-trap">
  111. <div class="sview">
  112. <img src="" id="preview">
  113. </div>
  114. <div class="suggest">
  115. <div class="comment-text">Bạn có chắc chắn chia sẻ ảnh này chứ?</div>
  116. <a href="javascript:" class="confirm">Đồng ý</a> <a href="/main.php?f=3640138" class="reset">Làm lại</a>
  117. </div>
  118. </div>
  119. </div>
  120. <div class="step hide" id="step3">
  121. <div class="stext">BƯỚC 3: Nhập tiêu đề cho hình ảnh</div>
  122. <div class="box-trap">
  123. <div class="step-git"><div class="image"><img src=""></div><div class="step-texts">Tập tin đã đính kèm<br>Kích thước: <span class="size">0 kb</span></div></div>
  124. <div class="input"><input type="text" class="input-text" placeholder="Nhập nội dung..." maxlength="50" id="title_image">
  125. <input type="submit" value="Chia sẻ nội dung"></div>
  126. </div>
  127. </div>
  128. </div>
  129. </form>
  130.  
  131. <script>
  132. $("#choose_image").change(function() {
  133. var reader = new FileReader();
  134. reader.onload = function(e) {
  135. $('.waiting-upload').removeClass('hide');
  136. var data = e.target.result.substr(e.target.result.indexOf(",") + 1, e.target.result.length);
  137. $.ajax({
  138. url: 'https://api.imgur.com/3/image',
  139. headers: {
  140. 'Authorization': 'Client-ID ead6e1a75a4eaf3'
  141. },
  142. type: 'POST',
  143. data: {
  144. 'image': data,
  145. 'type': 'base64'
  146. },
  147. success: function(response) {
  148. $('#url_image').val(response.data.link);
  149. $('.size').text(Math.round(response.data.size/1024)+'Kb');
  150. $('#preview, .step-git img').attr('src',response.data.link).load(function(){
  151. $('#step1').addClass('hide');
  152. $('#step2').removeClass('hide');
  153. $('.suggest .confirm').on("click",function(){
  154. $('#step2').addClass('hide');
  155. $('#step3').removeClass('hide');
  156. })
  157. });
  158. }, error: function() {
  159. console.log('error');
  160. }
  161. });
  162. };
  163. reader.readAsDataURL(this.files[0]);
  164. });
  165. $('#upload_read').submit(function(){
  166. if($('#url_image').val() && $('#title_image').val()){
  167. $.post('main.php?id=ch_topic_h&uid=255273',{text: $('#title_image').val()+'[scimg]'+$('#url_image').val()+'[split-image]'},function(){
  168. location.href='/';
  169. })
  170. }else{
  171. alert('Nhập đầy đủ các thông tin.');
  172. }
  173. return false;
  174. })
  175. </script><div></div>
30.05.2018 / 13:18
bnduongdz
Bài đăng: 250
Member
™™ itym.CF ™™

.éo khác gì tui soi :) Vẫn đel chạy

30.05.2018 / 13:42
minhmon
Bài đăng: 25
Member

chèn css ik ngu

30.05.2018 / 13:55
mad
Bài đăng: 2434
Member
Nhào vô cắn tao đi, tao sợ mày à cắn bừa.

Đây là code của đạt bê đê mà

30.05.2018 / 14:10
Koollzboy
Bài đăng: 178
Member
Đam Mê Chứ Đell Phải Nghiện
minhmon đã viết

chèn css ik ngu

Css co lien quan gi den viec code chay hay k

30.05.2018 / 17:23
minhmon
Bài đăng: 25
Member

có nhé bạn khờ

30.05.2018 / 18:57
dat2013
Bài đăng: 376
Member
Tổn thương :(
mad đã viết

Đây là code của đạt bê đê mà

Code nào nhỉ ?

30.05.2018 / 19:14
mad
Bài đăng: 2434
Member
Nhào vô cắn tao đi, tao sợ mày à cắn bừa.

Trollhs mmmm

30.05.2018 / 19:41
dat2013
Bài đăng: 376
Member
Tổn thương :(
mad đã viết

Trollhs mmmm

Ừ đúng rồi code wap tui mà

30.05.2018 / 21:02
Koollzboy
Bài đăng: 178
Member
Đam Mê Chứ Đell Phải Nghiện
dat2013 đã viết

Ừ đúng rồi code wap tui mà

:))))))))))