Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function(){
- $('.psname > span').each(function(){
- var bodyTitle = $(this).text();
- var bodyColor = $(this).css('color');
- $(this).parents('html').children('head').children('title').html(bodyTitle);
- $(this).parents('#perfilsencillo').prepend('<style>#perfilsencillo {--groups:' + bodyColor + '!important;}</style>');
- });
- $('.psfield .psflabel span').each(function() {
- $(this).parents('.psfield').addClass($(this).text().split(" ")[0].toLowerCase().replace(/'/g, "").replace(/\(|\)/g, ""));
- });
- });
- $(document).ready(function(){
- $('.psfield .psfcontent div:contains("-")').each(function(){
- var myVar = $(this).text();
- var myCount = myVar.length;
- if (myCount == 3) {
- $(this).parents('.psfield').remove();
- }
- });
- });
- $(document).ready(function(){
- $('.pscontact img[src*="icon_contact_www.gif"]').parent().html('<em class="fas fa-envelope"></em>').attr('title', 'Mensaje Privado');
- $('.pscontact img[src*="icon_contact_pm.png"]').parent().html('<em class="fas fa-id-card"></em>').attr('title', 'Expediente de personaje');
- $('.pscontact img[src*="http://placehold.it/1/111.png"]').parent().html('<em class="fas fa-suitcase"></em>').attr('title', 'Baúl');
- $('.pscontact img[src*="http://placehold.it/1/222.png"]').parent().html('<em class="fas fa-search"></em>').attr('title', 'Búsqueda');
- $('.pscontact a[href*="email"]').remove();
- $('.psfield.cita').prependTo('.ps3');
- $('.psfield.información').appendTo('#perfilsencillo');
- $('.pscontact div:contains("-")').each(function(){
- $(this).remove();
- });
- });
- $(window).load(function(){
- $('.psfield img').removeAttr('title');
- });
- </script>
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"/>
- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"/>
- <style>
- #perfilsencillo, .psbody, .psheader, .ps3, .pscontact, .pscontact a, .psh1, .psh2 a, .psh2, .ps2, .psfields .psfield, .psfields, .pscontact div {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- #perfilsencillo {
- flex-direction: column;
- margin: 20px auto;
- width:100%;
- }
- #perfilsencillo {
- --border1: 1px solid #0a0a0a;
- --border2: 1px solid rgba(255,255,255,0.2);
- --shadow-d: 1px 1px rgba(0,0,0,0.2), 1px -1px rgba(0,0,0,0.2), -1px 1px rgba(0,0,0,0.2), -1px -1px rgba(0,0,0,0.2);
- --shadow-b: 1px 1px #0a0a0a, -1px 1px #0a0a0a, 1px -1px #0a0a0a, -1px -1px #0a0a0a;
- --dbckg1: #111;
- --dbckg2: #141414;
- --avawidth: 300px;
- --avaheight: 400px;
- }
- .psheader {
- align-self: stretch;
- justify-content: space-between;
- background: var(--dbckg1);
- padding: 20px 20px 20px 30px;
- font: 12px 'Poppins';
- text-transform: uppercase;
- height: 26px;
- }
- .psbody {
- align-self: stretch;
- margin-top: 20px;
- }
- .psh1 {
- font-weight: 700;
- color: #aaa;
- }
- .psonline:before {
- content: "ESTÁ";
- margin: 0 3px;
- }
- .psname strong {
- color: #aaa;
- }
- .psh2 a {
- border: var(--border2);
- background: var(--groups);
- text-shadow:var(--shadow-d);
- height: 24px;
- width: 24px;
- margin-left: 10px;
- border-radius: 100%;
- font-size: 10px;
- }
- .ps1 {
- flex-shrink: 0;
- }
- .psavatar img {
- width: var(--avawidth);
- height: var(--avaheight);
- object-fit: cover;
- object-position: center;
- border: var(--border1);
- }
- .psavatar {
- width: calc(var(--avawidth) + 2px);
- height: calc(var(--avaheight) + 2px);
- padding: 10px;
- background: var(--dbckg2);
- border: var(--border1);
- }
- .ps2, .ps3 {
- margin-left: 20px;
- height: calc(var(--avaheight) + 24px);
- flex-direction: column;
- }
- .ps2 {
- flex-grow: 1;
- }
- .ps3 {
- flex-shrink: 0;
- width: 200px;
- }
- .psfields {
- flex-grow: 1;
- align-self: stretch;
- background: var(--dbckg2);
- border: var(--border1);
- padding:15px;
- flex-direction: column;
- justify-content: flex-start;
- }
- .psfields .psfield {
- justify-content: flex-start;
- padding: 10px 0;
- border-bottom: var(--border1);
- flex-grow: 1;
- text-transform: uppercase;
- font: 12px 'Poppins';
- align-self: stretch;
- }
- .psfields .psfield:first-of-type {
- padding-top: 0;
- }
- .psfields .psfield:last-of-type {
- padding-bottom: 0;
- border-bottom: 0;
- }
- .psfields .psflabel {
- font-size: 0;
- }
- .psfields .psflabel span {
- font-size: 12px;
- font-weight: 700;
- color: var(--groups)!important;
- }
- .psfields .psflabel span:after {content: ":";margin: 0 3px 0 0;}
- .pscontact:empty {
- display: none;
- }
- .pscontact a, .pscontact div {
- flex-grow: 1;
- margin-left: 20px;
- }
- .pscontact {
- margin-top: 20px;
- align-self: stretch;
- }
- .pscontact div.invisible {
- display: none;
- }
- .pscontact a {
- border: var(--border1);
- background: var(--dbckg1);
- padding: 20px;
- color: var(--groups);
- }
- .pscontact a:hover {
- border: var(--border2);
- background: var(--groups);
- text-shadow:var(--shadow-d);
- color:white;
- }
- .pscontact>*:first-child {
- margin-left: 0;
- }
- .pscontact img {
- display: none;
- }
- .psfield.cita {
- flex-grow: 1;
- align-self: stretch;
- background: var(--dbckg2);
- padding: 20px 15px 20px 20px;
- border: var(--border1);
- }
- .psfield.cita .psflabel {
- display: none;
- }
- .psfield.cita .psfcontent {
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- padding-right: 5px;
- overflow: auto;
- }
- .psfield.información {
- margin-top: 20px;
- border: var(--border1);
- background: var(--dbckg2);
- }
- .ps3:empty {
- display: none;
- }
- .psfield.información .psflabel {
- background: var(--dbckg1);
- padding: 20px;
- font-size: 0;
- border-bottom: var(--border1);
- }
- .psfield.información .psflabel span {
- font: 12px 'Poppins';
- text-transform: uppercase;
- font-weight: 700;
- }
- .psfield.información .psfcontent {
- padding: 20px;
- text-align: justify;
- }
- .psfield.información .psfcontent strong, .psfield.información .psfcontent i, .psfield.información .psfcontent u {
- color: var(--groups);
- }
- .psadmin {
- text-align: center;
- margin-top: 20px;
- }
- .psadmin a {
- font: 12px 'Poppins';
- text-transform: uppercase;
- font-weight: 700;
- border: var(--border1);
- background: var(--dbckg1);
- display: inline-block;
- margin: 0 10px;
- padding: 10px;
- }
- .psrpg {
- margin-top: 20px;
- border: var(--border1);
- background: var(--dbckg2);
- padding: 10px 5px 10px 10px;
- max-height:120px;
- }
- .psrpg:first-child:last-child { max-height:unset; height: 100%; margin: 0; }
- .psrpg .gen {
- width: 100%;
- height: 100%;
- padding-right: 5px;
- overflow: auto;
- box-sizing: border-box;
- text-align: center;
- display: block;
- }
- .psrpg img {
- margin: 3px;
- }
- </style>
- <div id="perfilsencillo">
- <div class="psheader">
- <div class="psh1">
- <div class="psname">{USERNAME}</div><!-- BEGIN switch_show_status --><div class="psonline">{USER_ONLINE}</div><!-- END switch_show_status -->
- </div>
- <div class="psh2">
- <a href="/sta/{PUSERNAME}" title="Temas donde {PUSERNAME} ha participado"><em class="fas fa-folder-open"></em></a>
- <a href="/st/{PUSERNAME}" title="Temas creados por {PUSERNAME}"><em class="fas fa-file-alt"></em></a>
- <a href="/spa/{PUSERNAME}" title="Mensajes de {PUSERNAME}"><em class="fas fa-comments"></em></a>
- </div>
- </div>
- <div class="psbody">
- <div class="ps1">
- <div class="psavatar">{AVATAR_IMG}</div>
- </div>
- <div class="ps2">
- <div class="psfields">
- <div class="psfield">
- <div class="psflabel"><span style="color:#AAAAAA;">{L_RANK}</span> * :</div>
- <div class="psfcontent">{POSTER_RANK}</div>
- </div>
- <!-- BEGIN profile_field -->
- <div class="psfield">
- <div class="psflabel">{profile_field.LABEL}</div>
- <div class="psfcontent">{profile_field.CONTENT}</div>
- </div>
- <!-- END profile_field -->
- </div>
- <div class="pscontact">
- <!-- BEGIN contact_field -->
- {contact_field.CONTENT}
- <!-- END contact_field -->
- </div>
- </div>
- <div class="ps3">
- <!-- BEGIN switch_rpg -->
- <!-- BEGIN rpg_fields_left -->
- <div class="psrpg">{switch_rpg.rpg_fields_left.F_VALUE_NEW}</div>
- <!-- END rpg_fields_left -->
- <!-- BEGIN rpg_fields -->
- <div class="psrpg">{switch_rpg.rpg_fields.F_VALUE_NEW}</div>
- <!-- END rpg_fields -->
- <!-- END switch_rpg -->
- </div>
- </div>
- </div>
- <div class="psadmin">{ADMINISTRATE_USER}{BAN_USER}</div>
Add Comment
Please, Sign In to add comment