Advertisement
AlexM1SHOP

Untitled

Oct 26th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. <div class="m1-content" style="width: 570px; height: 390px; color: #000000; font-family: Arial; font-size: 100%;"><div class="m1-top"><div class="m1-left"><h1>Рюкзак хамелеон</h1></div><div class="m1-right"><div class="m1-wrap"><div class="m1-price"><div class="m1-wrap"><div class="m1-left m1-big-text">Цена</div><div id="m1-top-price" class="m1-right m1-big-text"><span class="m1-strike-text">4200 р</span><br>1990 р</div></div></div></div></div></div><div class="m1-bottom"><div class="m1-wrap"><div class="m1-form"><form action="" method="POST" onsubmit="urlGen(this);"><div class="m1-row"><label for="m1-name">ФИО</label><input id="m1-name" name="name" type="text" placeholder="Иванов Иван Иванович" style="background: #ffffff none repeat scroll 0% 0%; color: #000000; height: 33px; width: 100%;"></div><div class="m1-row"><label for="m1-phone">Телефон</label><input id="m1-phone" name="phone" type="text" style="background: #ffffff none repeat scroll 0% 0%; color: #000000; height: 33px; width: 100%;"></div><div class="m1-row m1-price"><div class="m1-left">Стоимость заказа<br>Доставка</div><div id="m1-price" class="m1-right">1990 р<br>390 р</div></div><div class="m1-line"></div><div class="m1-row m1-big-text"><div class="m1-left">ИТОГО</div><div id="m1-total-price" class="m1-right">2380 р</div></div><div class="m1-row m1-align-center"><input type="hidden" name="product_id" value="8164"> <input type="hidden" name="ref" value="21699"><input type="submit" value="ЗАКАЗАТЬ"></div></form></div></div></div></div><style type="text/css">.m1-content,
  2. .m1-content * {
  3. font-family: Tahoma, Helvetica, sans-serif;
  4. outline: none;
  5. }
  6.  
  7. .m1-content {
  8. max-width: 960px;
  9. margin: 0 auto;
  10. }
  11.  
  12. .m1-content h1 {
  13. font-size: 1.5em;
  14. }
  15.  
  16. .m1-left {
  17. float: left;
  18. }
  19.  
  20. .m1-right {
  21. float: right;
  22. }
  23.  
  24. .m1-big-text {
  25. font-size: 24px;
  26. line-height: 28px;
  27. }
  28.  
  29. .m1-strike-text {
  30. text-decoration: line-through;
  31. color: #868686;
  32. }
  33.  
  34. .m1-align-center {
  35. text-align: center;
  36. }
  37.  
  38. @media only screen and (max-width: 768px) {
  39. .m1-big-text {
  40. font-size: 18px;
  41. line-height: 20px;
  42. }
  43. }
  44.  
  45. .m1-top {
  46. height: 90px;
  47. width: 100%;
  48. margin: 30px 0;
  49. position: relative;
  50. }
  51.  
  52. .m1-top .m1-left {
  53. width: 40%;
  54. }
  55.  
  56. .m1-top .m1-left .m1-image {
  57. border: #999999 solid 1px;
  58. }
  59.  
  60. .m1-top .m1-left .m1-image img {
  61. width: 100%;
  62. }
  63.  
  64. .m1-top .m1-right {
  65. width: 56%;
  66. }
  67.  
  68. .m1-top .m1-right h1 {
  69. font-weight: normal;
  70. font-size: 32px;
  71. line-height: 36px;
  72. margin: 20px 0;
  73. }
  74.  
  75. .m1-top .m1-right .m1-price {
  76. clear: both;
  77. background: #cccccc repeat;
  78. position: absolute;
  79. bottom: 0;
  80. width: 56%;
  81. }
  82.  
  83. .m1-top .m1-right .m1-price .m1-wrap {
  84. padding: 20px;
  85. overflow: hidden;
  86. }
  87.  
  88. .m1-top .m1-right .m1-price .m1-wrap .m1-right {
  89. text-align: right;
  90. }
  91.  
  92. @media only screen and (max-width: 768px) {
  93. .m1-top .m1-right h1 {
  94. font-size: 24px;
  95. margin: 10px 0;
  96. }
  97. .m1-top .m1-right .m1-price .m1-wrap {
  98. padding: 10px;
  99. }
  100. }
  101.  
  102. @media only screen and (max-width: 479px) {
  103. .m1-top > .m1-left,
  104. .m1-top > .m1-right {
  105. width: 100%;
  106. float: left
  107. }
  108. .m1-top .m1-right .m1-price {
  109. position: static;
  110. width: 100%;
  111. }
  112. }
  113.  
  114. .m1-bottom {
  115. clear: both;
  116. background: #cccccc repeat;
  117. height: 100%;
  118. }
  119.  
  120. .m1-bottom .m1-wrap {
  121. overflow: hidden;
  122. padding: 20px;
  123. }
  124.  
  125. .m1-bottom .m1-form .m1-row {
  126. clear: both;
  127. margin-bottom: 20px;
  128. float: left;
  129. width: 100%;
  130. }
  131.  
  132. .m1-bottom .m1-form .m1-row:last-of-type {
  133. margin-bottom: 0;
  134. }
  135.  
  136. .m1-bottom .m1-form .m1-row label {
  137. color: #868686;
  138. font-size: 14px;
  139. cursor: pointer;
  140. float: left;
  141. margin-bottom: 5px;
  142. }
  143.  
  144. .m1-bottom .m1-form .m1-row input[name=name],
  145. .m1-bottom .m1-form .m1-row input[name=phone],
  146. .m1-bottom .m1-form .m1-row select[name=country] {
  147. clear: both;
  148. float: left;
  149. width: 97%;
  150. border-radius: 5px;
  151. border: 1px solid #dbd9d7;
  152. padding: 8px;
  153. box-shadow: -1px -1px 1px rgba(134, 134, 134, .5);
  154. }
  155.  
  156. .m1-bottom .m1-form .m1-row select[name=country] {
  157. max-width: 220px;
  158. }
  159.  
  160. .m1-bottom .m1-form .m1-line {
  161. height: 1px;
  162. border-top: #999999 solid 1px;
  163. width: 100%;
  164. clear: both;
  165. margin: 0 0 20px 0;
  166. float: left;
  167. }
  168.  
  169. .m1-bottom .m1-form .m1-price .m1-right {
  170. text-align: right;
  171. }
  172.  
  173. .m1-bottom .m1-form .m1-row input[type=submit] {
  174. max-width: 400px;
  175. width: 261px;
  176. height: 49px;
  177. margin-top: 20px;
  178. cursor: pointer;
  179. border: none;
  180. background: #73A673 repeat;
  181. color: #FFFFFF;
  182. font-size: 25px;
  183. padding: 10px 50px;
  184. }
  185.  
  186. @media only screen and (max-width: 479px) {
  187. .m1-bottom .m1-form .m1-row input[type=submit] {
  188. padding: 10px 30px;
  189. }
  190. }
  191.  
  192. </style><script>function WindowOnload() {
  193. $("form").submit(function() {
  194. var obj= {}
  195. , val= {}
  196. ;
  197. obj.name=$(this).find("input[name=name]");
  198. obj.phone=$(this).find("input[name=phone]");
  199. val.name=obj.name.val().trim();
  200. val.phone=obj.phone.val().trim();
  201. obj.name.val(val.name);
  202. obj.phone.val(val.phone);
  203. if(val.name.length==0) {
  204. alert("Укажите корректные ФИО!");
  205. return false;
  206. }
  207. if(val.phone.length<7) {
  208. alert("Укажите корректный телефон!");
  209. return false;
  210. }
  211. return true;
  212. }
  213. );
  214. $.ajax( {
  215. url: "https://m1-shop.ru/form_lending.js?p=8164", dataType: "json"
  216. }
  217. ).done(function(data) {
  218. $("#m1-total-price").text(data.priceLand + data.deliverLand + " " + data.priceVal);
  219. $("#m1-price").html(data.priceLand + " " + data.priceVal + "<br>" + data.deliverLand + " " + data.priceVal);
  220. $("#m1-top-price").html('<span class="m1-strike-text">'+ data.priceOldLand + " " + data.priceVal +'</span><br>'+ data.priceLand + " " + data.priceVal);
  221. }
  222. ).fail(function() {
  223. console.log("error");
  224. }
  225. );
  226. if(location.hostname !="m1-shop.ru") {
  227. var m1_product_id=8164,
  228. ref=21699,
  229. lnk="",
  230. script=document.createElement("script");
  231. script.src="https://m1-shop.ru/send_order/?ref="+ref+"&lnk="+lnk+"&s=&w=&t=&product_id="+m1_product_id+'&out=1';
  232. document.body.appendChild(script);
  233. }
  234. }
  235.  
  236. if(!window.jQuery) {
  237. var script=document.createElement("script");
  238. script.src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js";
  239. document.getElementsByTagName("head")[0].appendChild(script);
  240. script.addEventListener("load", function() {
  241. WindowOnload();
  242. }
  243. );
  244. }
  245.  
  246. else {
  247. $(function() {
  248. WindowOnload();
  249. }
  250. );
  251. }
  252.  
  253. </script><script src="https://shortm.ru/js/m1ref.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement