Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. <style>
  2. .maintitle { margin-top: -10px; margin-right: -10px; }
  3. .title img { vertical-align: middle; padding-right: 13px; }
  4. .title { font-size: 15px; color: #fff; padding: 13px 20px; }
  5. .content { }
  6. .content * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
  7.  
  8. .first .grid { padding: 0 25px; }
  9. .second .grid { padding: 0 30px; }
  10. .grid { float: left; }
  11. .grid.col-1 {}
  12. .grid.col-2 { }
  13. .grid.col-4 { }
  14. .grid.col-4-1 { }
  15.  
  16. .content input[type=text], .content input[type=number], .content textarea { margin:0 auto;border-radius: 0; text-align:center; margin-bottom: 15px; margin-top: 8px; display: block; padding: 10px 7px; border: 2px solid #e9edf1; }
  17. .content input[type=number] { width: 50%; }
  18. .content textarea { min-height: 270px; max-height: 500px; }
  19.  
  20. .content { font-size: 14px; color: rgb(121, 129, 141); }
  21. .content span { color: #98a1b0; font-size: 10px; }
  22.  
  23. #content input[type=submit] { opacity: 0.7;
  24. cursor: pointer;
  25. font-size: 15px;
  26. color: rgb(255, 255, 255);
  27. display: block;
  28. /* width: 100%; */
  29. text-align: center;
  30. padding: 10px;
  31. margin: 0 auto;
  32. background: #a52424;
  33. /* padding-top: 65px; */
  34. /* padding-bottom: 26px; */
  35. border: 2px solid #e9edf1; }
  36. #content input[type=submit]:hover { opacity: 1.0; }
  37.  
  38. .sex { display: inline-block; margin-top: 8px; padding: 0 5px; }
  39. .sex:last-child { border-left: 1px solid #cccfd3; padding-left: 6px; }
  40. .sex > div{ width: 27px; height: 41px; }
  41. .sex.men > div{ background: url({style_images_url}/gamecp_c_char_men.png) no-repeat center center; }
  42. .sex.men.active > div{ background: url({style_images_url}/gamecp_c_char_men_active.png) no-repeat center center; }
  43. .sex.girl > div{ background: url({style_images_url}/gamecp_c_char_girl.png) no-repeat center center; }
  44. .sex.girl.active > div{ background: url({style_images_url}/gamecp_c_char_girl_active.png) no-repeat center center; }
  45.  
  46. .skins { display: none; text-align: center; }
  47. .skins.active { display: block; }
  48. .skins > img { margin-bottom: 6px; margin-right: 3px; cursor: pointer; }
  49.  
  50. .content.second { padding: 50px 90px; }
  51. .second .image { cursor: pointer; position: relative; border: 5px solid #fff; height: 162px; width: 316px; background-repeat: no-repeat; background-size: cover; }
  52.  
  53. .second .image.market { background-image: url({style_images_url}/gamecp_c_char_market_hover.png); float:right; }
  54. .second .image.market:hover, .second .image.market.active { background-image: url({style_images_url}/gamecp_c_char_market.png); }
  55.  
  56. .second .image.sc { background-image: url({style_images_url}/gamecp_c_char_sc_hover.png); }
  57. .second .image.sc:hover, .second .image.sc.active { background-image: url({style_images_url}/gamecp_c_char_sc.png); }
  58.  
  59. .second .image .cover { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
  60. .second .image.active .cover { background: url({style_images_url}/gamecp_c_char_cover.png) repeat-x center bottom; }
  61. .second .image .cover .info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; text-align: center; text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.41);}
  62.  
  63. .second .image .cover .info h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
  64. .second .image .cover .info p { color: #fff; font-size: 11px; line-height: 20px; }
  65. .maintitle_text {
  66. color: #225985;
  67. font-size: 22px;
  68. }
  69. </style>
  70. <form action="" method="post">
  71. <div class="maintitle">Tworzenie postaci</div>
  72. <div class="ipsPad">
  73. <div class="maintitle_text " style="margin-bottom:40px;">
  74. Podstawowe informacje <p style="font-size:10px;">[Uzupełnij tabelki według opisów]</p>
  75. </div>
  76. <div class="content clearfix first">
  77. <div class="grid col-4">
  78. Imię<input type="text" name="firstname" required maxlength="24">
  79. Nazwisko<input type="text" name="surname" required maxlength="24">
  80. Rok urodzenia<input type="number" min="1900" max="2000" name="age" required>
  81. <input type="hidden" name="sex" value="1" />
  82. Płeć<br>
  83. <a href="#" class="sex men active"><div></div></a>
  84. <a href="#" class="sex girl"><div></div></a>
  85. </div>
  86. <div class="content" style=" overflow-y: scroll; height:500px;">
  87. <input type="hidden" name="skin" value="0" />
  88. <div class="skins men active">
  89. <foreach loop="$men_skins as $index=>$value">
  90. <img src="{style_images_url}/skins/{$value}.png" data-id="{$value}" />
  91. </foreach>
  92. </div>
  93. <div class="skins girl">
  94. <foreach loop="$girl_skins as $index=>$value">
  95. <img src="{style_images_url}/skins/{$value}.png" data-id="{$value}" />
  96. </foreach>
  97. </div>
  98. </div>
  99. <div class="grid col-4-1" style="margin-top:40px;">
  100. <div class="maintitle_text ">
  101. Charakterystyka postaci [nieobowiazkowe]<p style="font-size:10px;">[W tej tabelce wpisz opis Twojej postaci, np. ile ma wzrostu, wagi, kolor oczu]</p>
  102. </div>
  103. <textarea name="desc" style=" margin: 8px 296.297px 15px 139.281px;
  104. width: 790px;
  105. height: 270px;"></textarea>
  106. </div>
  107. </div>
  108.  
  109. <input type="submit" name="newchar" value="Kliknij tutaj aby utworzyć postać"/>
  110. </div>
  111. </form>
  112.  
  113. <script>
  114. jQuery(".second .image").click( function () {
  115. var id = jQuery(this).hasClass("sc") ? 2 : 1;
  116. jQuery(".second .image.active").removeClass("active");
  117. jQuery(this).addClass("active");
  118. jQuery("input[name=spawn]").val(id);
  119. });
  120. jQuery(".skins > img").click( function () {
  121. var id = jQuery(this).attr("data-id");
  122. if( jQuery("input[name=skin]").val() != id) {
  123. jQuery("input[name=skin]").val(id);
  124. jQuery(".skins > img").fadeTo("fast", 0.33);
  125. jQuery(this).fadeTo("fast", 1);
  126. } else {
  127. jQuery("input[name=skin]").val('0');
  128. jQuery(".skins > img").fadeTo("fast", 1);
  129. }
  130. });
  131.  
  132. jQuery("a.sex").on("click", function(e) {
  133. var id = jQuery(this).hasClass("men") ? 1 : 0;
  134. jQuery("input[name=sex]").val(id);
  135. jQuery("a.sex.active").removeClass("active");
  136. jQuery(this).addClass("active");
  137. if(id && !jQuery(".skins.active").hasClass("men")) {
  138. jQuery(".skins.active").fadeOut(function() {
  139. jQuery(this).removeClass("active");
  140. jQuery("input[name=skin]").val('0');
  141. jQuery(".skins > img").fadeTo("fast", 1);
  142. jQuery(".skins.men").fadeIn(function() {
  143. jQuery(this).addClass("active");
  144. });
  145. });
  146. }
  147. else if(!id && jQuery(".skins.active").hasClass("men")) {
  148. jQuery(".skins.active").fadeOut(function() {
  149. jQuery(this).removeClass("active");
  150. jQuery("input[name=skin]").val('0');
  151. jQuery(".skins > img").fadeTo("fast", 1);
  152. jQuery(".skins.girl").fadeIn(function() {
  153. jQuery(this).addClass("active");
  154. });
  155. });
  156. }
  157. e.preventDefault();
  158. });
  159. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement