Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.50 KB | None | 0 0
  1. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script><link href="http://translate.googleapis.com/translate_static/css/translateelement.css" charset="UTF-8" rel="stylesheet" type="text/css" /><script src="http://translate.googleapis.com/translate_static/js/element/main_pt-BR.js" charset="UTF-8" type="text/javascript"></script><script src="http://translate.googleapis.com/translate_static/js/element/10/element_main.js" charset="UTF-8" type="text/javascript"></script><script type="text/javascript">
  2. jQuery(document).ready(function(){
  3. jQuery('.Tabs li').click(function(){
  4. jQuery('.Tabs li').removeClass('active');
  5. jQuery(this).addClass('active');
  6. jQuery(this).find('a');
  7. return false;
  8. });
  9. jQuery('a.all_itens').click(function(){
  10. jQuery('.abas').hide();
  11. jQuery('#abas1').show();
  12. });
  13. jQuery('a.all_pay').click(function(){
  14. jQuery('.abas').hide();
  15. jQuery('#abas2').show();
  16. });
  17. });
  18. </script><script type="text/javascript">
  19. (function($){
  20. $(document).ready(function(){
  21. var $total = 0.0
  22.  
  23. $('.addButton').click(function (){
  24. var theID ='#' + $(this).attr('data-item');
  25. var pointstoAdd = parseFloat($(theID).find('.points').attr('data-myprice'));
  26. $total += pointstoAdd;
  27. $('.totaler').html('Total = ' + $total.toFixed(2));
  28. var $newItem = '<li class="cart-item" data-points="'+ pointstoAdd+'">' + $(theID).find('span:first').html()+ '</li>';
  29. $('.theList').append($newItem);
  30. BindIt();
  31. });
  32.  
  33. function BindIt(){
  34.  
  35. $('.cart-item').unbind('click');
  36.  
  37. $('.cart-item').click( function(){
  38. $total -= parseFloat($(this).attr('data-points'));
  39. $('.totaler').html('Total de Moedas = €' + $total.toFixed(2));
  40. $(this).remove();
  41. });
  42. }
  43. });
  44. $(document).ready(
  45. function() {
  46. $('#submitCart').click(function() {
  47. var text = '';
  48. var total = 0;
  49.  
  50. $(".theList li").each(function () {
  51. var string = $(this).text();
  52. var points = parseInt($(this).data('points'));
  53.  
  54. //capitalize first letter of string
  55. text += string.charAt(0).toUpperCase() + string.slice(1)
  56. //add line break at the end
  57. + ' = ' + points + "\n";
  58.  
  59. total += points;
  60. });
  61.  
  62. //I think calculating total is easier than trying to manipulate $(".totaler")
  63. text += "Total de Moedas = €" + total;
  64. $("#cartMessage").text(text);
  65. });
  66. });
  67. })(jQuery);
  68. </script><script>
  69. function enviatag(tag, local) {
  70. var message = "
  71. [center][b]Loja[/b][/center]
  72. [center]&nbsp;[/center];
  73. jQuery(local).html(message);
  74. jQuery(local).closest('form').find('input[name="post"]').click();
  75. }
  76. $(function() {
  77. $.get('/profile?mode=editprofile', function(prof) {
  78. var link=$('form[action="/profile"] .main-head .subtitle a[href^="/u"]',prof).attr('href');
  79. $.get(link, function(cash) {
  80. my_cash=$('#profile-advanced-details .main-content .middleline dl:contains("Pontos") dd',cash).text();
  81. $('.myc cash').html(my_cash);
  82. });
  83. });
  84. });
  85. </script><style type="text/css">
  86. li.views.desc {
  87. list-style: none !important;
  88. }
  89. .cart_items, #checkout {
  90. padding: 10px;
  91. border-radius: 3px;
  92. margin: 2px 10px;
  93. }
  94. .cartWrapper{width:100%;}
  95. .statused li {list-style-type: none;}
  96. .theList li {
  97. list-style-type: upper-hexadecimal;
  98. background: rgb(75, 66, 54);
  99. margin: 1px 3px;
  100. color: white;
  101. font: bold italic 12px helvetica;
  102. border-radius: 3px 5px 5px 3px;
  103. display: inline-block;
  104. padding: 2px 10px 2px 2px;
  105. cursor: pointer;
  106. }
  107. .theList li:before {
  108. content: " ";
  109. position: relative;
  110. display: inline-block;
  111. height: 1px;
  112. width: 5px;
  113. border-top: 5px solid transparent;
  114. border-bottom: 5px solid transparent;
  115. border-right: 5px solid rgb(75, 66, 54);
  116. left: -14px;
  117. top: 1px;
  118. }
  119. .main .cont, .box_r, .box_t{
  120. padding: 9px;
  121. }
  122. .box_r {
  123. background: rgba(49, 42, 38, 1);
  124. box-shadow: #000 0px 0px 5px;
  125. }
  126. .box_t {
  127. box-shadow: inset #000 0px 0px 5px;
  128. background: #413931;
  129. }
  130. .LayoutLeft {
  131. padding-left: 150px;
  132. }
  133. .Layout_smallleft {
  134. position: relative;
  135. width: 150px;
  136. margin-left: -190px;
  137. float: left;
  138. }
  139. .Tabs ul {
  140. width: 149px !important;
  141. margin-top: 10px;
  142. border-left: 1px solid #DBE4EF;
  143. list-style: none !important;
  144. }
  145. .Tabs li {
  146. background: #241F1B;
  147. color: #634D42;
  148. font-size: 13px;
  149. }
  150. .Tabs li.active a {
  151. width: 135px;
  152. position: relative;
  153. z-index: 8000;
  154. background: rgba(49, 42, 38, 1);
  155. color: #3A3532 !important;
  156. font-weight: bold;
  157. text-shadow: 1px 1px 0px #695B51, -1px -1px 0px #1A1512;
  158. }
  159. .Tabs li a {
  160. display: block;
  161. padding: 10px 8px;
  162. color: #241F1D !important;
  163. font-weight: bold;
  164. text-shadow: 1px 1px 0px #695B51, -1px -1px 0px #000000;
  165. -webkit-transition: background-color 0.1s ease-in-out;
  166. -moz-transition: background-color 0.3s ease-in-out;
  167. }
  168. .Tabs li a:hover {
  169. background: transparent !important;
  170. text-shadow: #9C7F71 0px 0px 3px;
  171. }
  172. #usercp_content {
  173. min-height: 395px;
  174. }
  175. .message {
  176. background: #8A7A6C;
  177. padding: 10px;
  178. color: #3A2F27;
  179. line-height: 1.6;
  180. font-size: 12px;
  181. box-shadow: inset #000 0px 0px 10px;
  182. }
  183. .pun table.table td {padding: 10px;}
  184. .pun table.table td.row2 {
  185. background-color: #f1f6f9;
  186. }
  187. input[type="button"] {
  188. margin: -28px 0px 0px 145px;
  189. position: absolute;
  190. }
  191. .myc {cursor: pointer;}
  192.  
  193. table.tbl {
  194. margin: 10px;
  195. }
  196.  
  197.  
  198. </style>
  199. <div class="main">
  200.  
  201. <div class="main-head">
  202.  
  203. <div class="page-title">
  204. <h2>Loja
  205. </h2>
  206. </div>
  207.  
  208. </div>
  209.  
  210. <div class="main-content cont">
  211.  
  212. <div class="LayoutLeft clearfix">
  213.  
  214. <div class="Tabs Layout_smallleft">
  215.  
  216. <ul>
  217.  
  218. <li class="active">
  219. <a class="all_itens" title="Todos os ítens" href="#">Todos os ítens</a>
  220. </li>
  221.  
  222. <li>
  223. <a class="all_pay" title="Carrinho de Compras" href="#">Concluir o pedido</a>
  224. </li>
  225.  
  226. </ul>
  227. </div>
  228.  
  229. <div id="usercp_content">
  230.  
  231. <div class="box_r">
  232.  
  233. <div class="box_t">
  234. <!-- Início aba 1 -->
  235. <div class="abas" id="abas1">
  236.  
  237. <div style="margin:10px" class="message">
  238. <strong class="myc">Sua carteira: <cash style="font-style: italic;">0</cash></strong> <br /> Esse valor é determinado por sua participação no fórum ao postar mensagens, criar tópicos, etc.
  239. </div>
  240. <div class="main-head">
  241.  
  242. <div class="page-title">
  243. <h2>
  244. Ítens
  245. </h2>
  246. </div>
  247.  
  248. </div>
  249. <li class="views desc">
  250. <form name="post" method="post" action="/privmsg">
  251. </form><input value="Carrinho" style="display:none" type="text" name="username[]" /><input class="usernameinput" type="text" name="subject" maxlength="64" style="display:none;" value="Loja" /><textarea id="taglocal" style="display:none" name="message"></textarea></span>
  252. </li>
  253. <table class="tbl" cellspacing="0">
  254.  
  255. <tbody class="statused">
  256. <tr class="item" id="item1">
  257. <td style="text-align:center;width:10%;margin:5px" class="row2"><span><img style="width:50px;height:50px;" src="http://s25.postimg.org/5r71i5i4b/assinatura.png" /></span>
  258. </td>
  259. <td style="width:40%;" class="col_f_content">
  260. <strong>Assinatura</strong>
  261. <br /> <span class="desc lighter blend_links">Pacote que garante direito de uso da assinatura. Duração de 1 mês.</span>
  262. </td>
  263. <td class="col_f_post">
  264.  
  265. <ul>
  266.  
  267. <li data-myprice="500" class="views desc points">
  268. <img src="http://i.imgur.com/qdiucii.png" /> Preço: 500
  269. </li>
  270.  
  271. <li class="views desc">
  272. <img src="http://i.imgur.com/pb1WAow.png" /> Estoque: Disponível
  273. </li>
  274.  
  275. <li class="views desc">
  276. <input value="Comprar" data-item="item1" class="addButton" type="button" />
  277. </li>
  278.  
  279. </ul>
  280.  
  281. </td>
  282. </tr>
  283.  
  284. <tr class="item" id="item2">
  285. <td style="text-align:center;width:10%;margin:5px" class="row2"><span><img style="width:50px;height:50px;" src="http://s25.postimg.org/mqfzxetbv/pacexp.png" /></span>
  286. </td>
  287. <td style="width:40%;" class="col_f_content">
  288. <strong>Pacote EXP</strong>
  289. <br /> <span class="desc lighter blend_links">Compre EXP extra caso não consiga tempo para upar! Compra limitado por jogador.</span>
  290. </td>
  291. <td class="col_f_post">
  292.  
  293. <ul>
  294.  
  295. <li data-myprice="1000" class="views desc points">
  296. <img src="http://i.imgur.com/qdiucii.png" /> Preço: 1000
  297. </li>
  298.  
  299. <li class="views desc">
  300. <img src="http://i.imgur.com/pb1WAow.png" /> Estoque: Disponível
  301. </li>
  302.  
  303. <li class="views desc">
  304. <input value="Comprar" data-item="item2" class="addButton" type="button" />
  305. </li>
  306.  
  307. </ul>
  308.  
  309. </td>
  310. </tr>
  311.  
  312. <tr class="item" id="item3">
  313. <td style="text-align:center;width:10%;margin:5px" class="row2"><span><img style="width:50px;height:50px;" src="http://s25.postimg.org/j5k4e6osb/persextra.png" /></span>
  314. </td>
  315. <td style="width:40%;" class="col_f_content">
  316. <strong>Personagem Extra</strong>
  317. <br /> <span class="desc lighter blend_links">Compre mais um personagem para jogar. Nível básico.</span>
  318. </td>
  319. <td class="col_f_post">
  320.  
  321. <ul>
  322.  
  323. <li data-myprice="1500" class="views desc points">
  324. <img src="http://i.imgur.com/qdiucii.png" /> Preço: 1500
  325. </li>
  326.  
  327. <li class="views desc">
  328. <img src="http://i.imgur.com/pb1WAow.png" /> Estoque: Disponível
  329. </li>
  330.  
  331. <li class="views desc">
  332. <input value="Comprar" data-item="item3" class="addButton" type="button" />
  333. </li>
  334.  
  335. </ul>
  336.  
  337. </td>
  338. </tr>
  339.  
  340. </tbody>
  341. </table>
  342.  
  343. </div>
  344.  
  345. </div>
  346. <!-- Fim aba 1 -->
  347. <div class="box_t">
  348. <!-- Início aba 2 -->
  349. <div style="display: none" class="abas" id="abas2">
  350. <div class="main-head">
  351. <div class="page-title">
  352. <h2>
  353. Carrinho de Compras
  354. </h2>
  355. </div>
  356.  
  357. </div>
  358. <div class="cartWrapper">
  359. <div id="cartj" class="cart">
  360. <div class="cart_body">
  361. <div class="cart_items">
  362. <ul class="theList">
  363. </ul>
  364. </div>
  365. </div>
  366. <span class="totaler"></span>
  367. </div>
  368. <form name="post" method="post" action="/privmsg" id="privatemessage"><input value="Administrador" style="display:none" type="text" name="username[]" /><input class="usernameinput" type="text" name="subject" maxlength="64" style="display:none" value="Loja" /><textarea name="message" class="noThis" style="display:none" id="cartMessage"></textarea><span class="buttons"><input onclick="this.disabled = false;document.getElementById('sendingBut').disabled = false;return false;" value="Confirmar compra" type="submit" id="submitCart" /> Confirme seus produtos. <input disabled="disabled" id="sendingBut" name="post" value="Enviar pedido" type="submit" /></span>
  369. </form>
  370.  
  371. </div>
  372. <div id="checkout">
  373. Para comprar basta confirmar suas escolhas e em seguida enviar o pedido. Num prazo máximo de 24 horas ele será atendido. Agradecemos a preferência!</span>
  374. </div>
  375.  
  376. </div>
  377. </div>
  378. <!-- Fim aba 2 -->
  379. </div>
  380. </div>
  381.  
  382. </div>
  383.  
  384. </div>
  385. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement