Код:/************************************************************* A - SETUP **************************************************************/ /* A1 Import the colour scheme -------------------------------------------------------------*/ /* A1.1 */ @import url(style_cs.css); @import url('https://fonts.googleapis.com/css2?family=Yeseva+One&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Yeseva+One&display=swap'); :root { --label-txt: #918b82; --link: #594423; --link-hover: #957b53; } /* A2 Deal with browser defaults and wonkiness -------------------------------------------------------------*/ /* A2.1 */ html, body { margin: 0; padding: 0; /*background-image: url(https://forumstatic.ru/files/001c/27/97/58757.webp);*/ display: flex; flex-direction: column; align-content: center; align-items: center;} body::before { content: ''; display: block; width: 100%; height: 100%; position: fixed; background: url(https://forumstatic.ru/files/001c/38/bc/89366.png) no-repeat fixed center; background-size: cover; background-attachment: fixed; } /* A2.2 */ .punbb * { margin: 0 } /* A2.3 */ .punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt { padding: 0; list-style: none; } /* A2.4 */ .punbb img { border:none } /* A2.5 */ .punbb .main table { table-layout: fixed; width: 100%; } /* A2.6 */ .checkfield input[type="checkbox"], .radiofield input[type="radio"] {margin: 0 0.3em;} /* A2.7 */ p[class="checkfield"] *, div[class="checkfield"] *, fieldset[class="radiofield"] * { height: 1.8em; vertical-align: middle } /* A3 Text setup -------------------------------------------------------------*/ /* A3.1 */ body { font-size: 100.01%; } #pun-wrap { padding-left: 80px; display: flex; justify-content: center; flex-direction: column; align-items: center; margin: auto; padding-right: 20px; } /* A3.2 */ .punbb { font: normal 68.75% "Inter", verdana, arial, helvetica, sans-serif; } /* 3.3 */ .punbb textarea, .punbb input, .punbb select, .punbb optgroup { font: 1em verdana, arial, helvetica, sans-serif; background: #bdbab3; border: 1px solid #e1e0dd4d; box-shadow: inset 0 0 0 1px #938d803b; } /* A3.4 */ .punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th { font-size: 1em; font-weight: normal; } /* A3.5 */ .punbb h1 span, .punbb h2 span, .punbb legend span { font-size: 1.1em; } /* A3.6 */ .punbb pre { font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace } /* A3.7 */ .punbb address, .punbb em { font-style: normal } /* A3.8 */ .punbb .post-content em { font-style: italic } /* A3.9 */ .punbb .post-content em.bbuline { font-style: normal; text-decoration: underline; } /* A3.10 */ .punbb a { text-decoration: none } /* A3.11 */ .punbb optgroup { font-weight: bold; } /* A4 Float clearing and hidden items -------------------------------------------------------------*/ /* A4.1 */ #pun:after, .punbb .container:after, .punbb .post-links ul:after, .punbb .main div.inline:after, .punbb .post-box:after, .punbb .linksb:after { clear: both; content: "."; display: block; height: 0; visibility: hidden; overflow:hidden; line-height: 0.0; font-size: 0; } /* A4.2 */ .acchide, #pun-index #pun-main h1, #pun-navlinks h2, #pun-pagelinks h2, #pun-status h2, #pun-ulinks h2, .punbb .forum h2, .punbb .multipage .topic h2, .punbb dl.post-sig dt span, .punbb p.crumbs strong, .punbb .divider hr, .punbb .required label em, .punbb .formsubmit label, .punbb .submitfield label, .punbb .modmenu label, topic a.sharelink, #pun-title table, div#pun-live-rusff, #pun-userlist .main h2 { font-size: 0; height: 0; width: 0; line-height: 0.0; position:absolute; left: -9999px; overflow: hidden } /* A5 Basic page layout and borders -------------------------------------------------------------*/ /* A5.1 */ #pun { position: relative; width: 1000px; background: url(https://forumstatic.ru/files/001c/27/97/26446.png); border: 4px solid #BCB5A5; outline: 1px solid #E1E0DD; box-shadow: inset 0 0 0px 1px #b1a38fd9; margin-top: 192px; z-index: 1; } /* A5.2 */ .punbb { float: left; width: 100%; height: auto; padding: 0em 2em; box-sizing: border-box; } /* A5.3 */ #pun-redirect, #pun-maint { margin: 50px 20% 12px 20%; width: auto; float: none; } /* A5.4 */ .punbb .section, .punbb .main { margin-bottom: 1em; } /* A5.5 */ .punbb .category, .punbb .post { margin-top: 0.4em; } /* A5.6 */ .punbb #pun-category1, .punbb .toppost, .punbb .topicpost { margin-top: 0; } /* 5.7 */ #pun-post .topic { margin-top: 1em; } /* A5.8 */ .punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info, .punbb .category, .punbb .post { border-style: none none solid none; border-width: 0px 0px 2px 0px } /* A5.9 */ .punbb .container { border-style: solid; border-width: 1px; } /* A5.10 */ .punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 { padding: 0.5em 1em; border-style: none solid solid none; border-width: 0 1px 1px 0; } #pun-main h1 { padding: 0.5em 1em; border-style: none solid solid none; border-width: 0 1px 1px 0; display: none; } /************************************************************* B - MAIN CONTENT - GENERAL **************************************************************/ /* B1 Parsed Content, Signatures and Scroll Boxes -------------------------------------------------------------*/ /* B1.1 */ .punbb .post-content { padding: 0; margin: 0; width: 100%; overflow: hidden; } /* B1.2 */ .punbb .post-sig dt { display: block; border-top: 1px solid #888; width: 250px; margin: 5px 0; } /* B1.3 */ .punbb .post-content p { margin: 0; padding: 0 0 1em 0; line-height: 150%; } /* B1.4 */ .punbb .post-content img { vertical-align: text-bottom } /* B1.5 */ .punbb .post-content img.postimg { vertical-align: middle; } /* B1.6 */ .punbb .post-content .blockcode, .punbb .post-content blockquote { width: 100%; overflow: hidden; } /* B1.7 */ .punbb .post-content .scrollbox { width: 100%; overflow: auto; } /* B1.8 */ .punbb .post-content .quote-box, .punbb .post-content .code-box { margin: 0.4em 1.8em 1.4em 1.8em; padding: 1em 2em; border-style: solid; border-width: 1px; background: #b3aea66b; box-shadow: inset 0 0 0 1px #938d803b; border: 1px solid #e1e0dd4d; } /* B1.9 */ .punbb .quote-box cite, .punbb .code-box strong.legend { display: block; padding-bottom: 0.7em; font-size: 1.1em; font-weight: bold; font-style: normal; margin: 0; } /* B2 Information boxes -------------------------------------------------------------*/ /* B2.1 */ .punbb .info-box { padding: 1.1em 1.7em 1em 1.7em; border-style: solid; border-width: 1px; margin: 0 0 1.1em 0; } /* B2.2 */ .punbb .info-box * { padding: 0 0 0.7em 0; } /* B2.3 */ .punbb #pun-main .info-box .legend { font-size: 1.1em; font-weight: bold; } /* B3 Pagination and posting links -------------------------------------------------------------*/ /* B3.1 */ .punbb .linkst { float: left; position: relative; width: 100%; font-size: 1.1em; height: 0; margin-top: 1.2em; } /* B3.2 */ .multipage { margin-top: 3em; } /* B3.3 */ .linkst .pagelink { position: absolute; top: -4em; left: 1em; width: 24em; } /* B3.4 */ .linkst .postlink { position: absolute; top: -4em; right: 1em; width: 16em; text-align: right; font-weight: bold; } /* B3.5 */ .punbb .linksb { text-align: right; padding: 0.4em 1em 0.5em 1em; font-size: 1.1em; margin-top: 1.2em; } /* B3.6 */ .linksb .pagelink { float: left; width: 24em; text-align: left; } /* B3.7 */ .linksb .postlink { float: right; width: 16em; font-weight: bold } /* B3.8 */ .subscribelink { clear:both; padding-top: 0.3em; padding-bottom: 0.5em; } /************************************************************* C - MAIN CONTENT - SPECIFIC **************************************************************/ /* C1 Form layout -------------------------------------------------------------*/ /* C1.1 */ .punbb .formal .container { padding: 1.7em 2.3em 1.1em 2.3em; } /* C1.2 */ .punbb .formsubmit { padding: 0 0 0 1.7em; margin: 1em 0 0 0; } /* C1.3 */ .punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span { margin: 0 0.6em 0 0 } /* C1.4 */ .punbb fieldset { border-style: solid; border-width: 1px; padding: 0 18px 0 18px; margin: 0 0 1em 0 } /* C1.5 */ .punbb fieldset legend { padding: 0; margin: 0 0 0 11px; font-size: 1.1em } /* C1.6 */ .punbb fieldset legend span { padding: 0 5px; margin: 0 0 0 -15px; text-transform: uppercase; font-size: .8em; color: #938d80; } /* C1.7 */ .punbb fieldset fieldset { border-style: none; margin: 0; padding: 0 0 8px 0 } /* C1.8 */ .punbb .fs-box { padding: 1em 0 0.8em 0; } /* C1.9 */ .punbb .fs-box p, .punbb .fs-box fieldset { padding: 0 0 0.8em 0 } /* C1.10 */ .punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield { float: left; margin-right: 1em; } /* C1.11 */ .punbb .inline .infofield { clear:both } /* C1.12 */ .punbb .datafield br { display: none } /* C1.13 */ .punbb .required label, .punbb .datafield span.input { font-weight: bold } /* C1.14 */ .punbb .datafield span.input a { font-weight: normal; } /* C1.15 */ .punbb .areafield span.input, .punbb p.longinput span.input { display: block; padding: 0 12em 0 0; height: 100%; /* For IE */ } /* C1.16 */ .punbb textarea, .punbb .longinput input { width: 64%; margin: 0; } /* C1.17 */ .punbb .hashelp { position: relative; } /* C1.18 */ .punbb .helplinks { display: block; position: absolute; top: 1em; right: 0; font-weight: normal; width: 36%; } /* c1.19 */ .punbb #profile .helplinks { top: 1.5em; } /* C1.20 */ .punbb .helplinks span { display: block; padding-bottom: 0.2em; } /* C1.21 */ #pun-post .formal .info-box li { padding-left: 4px; list-style-type: square; list-style-position: inside; line-height: 1.5; margin: 0; } /* C2 Table layout -------------------------------------------------------------*/ /* C2.1 */ .punbb .main .tcl { overflow: hidden; text-align: justify; width: 50%; } /* C2.2 */ .punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod { text-align: center; width: 10%; } /* C2.3 */ .punbb .main .tcr { overflow: hidden; text-align: left; width: 30%; text-transform: lowercase; } /* C2.4 */ #pun-userlist .main .tcl, #pun-searchtopics .main .tcl, #pun-modviewforum .main .tcl { width: 40% } /* C2.5 */ #pun-userlist .main .tc2, #pun-searchtopics .main .tc2 { text-align: left; width: 20%; } /* C2.6 */ #pun-debug table .tcl { width: 15%; white-space:normal; } /* C2.7 */ #pun-debug .tcr { width: 90%; white-space: normal; } /* C2.8 */ #pun-index .tcl h3 { font-size: 1.7em; font-weight: normal; font-family: 'Yeseva One'; text-transform: lowercase; display: flex; width: 100%; justify-content: center; background: #b3aea6; align-items: center; } /* C2.9 */ .punbb td span.youposted { font-weight: bold; margin-left: -1em; position: absolute; } /* C2.10 */ .punbb td .modlist { display: block; padding-top: 0.3em } /* C2.11 */ .punbb .main td { border-style: solid none none solid; border-width: 1px 0 0 1px; padding: 0.8em 1em; } /* C2.12 */ .punbb .main th { border-style: none none none solid; border-width: 0 0 0 1px; padding: 0.4em 1em 0.4em 1em; text-transform: lowercase; color: var(--label-txt); font-size: 88%; } /* C2.13 */ .punbb .main .tcl { border-left-style: none; border-left-width: 0 } /* C2.14 */ .punbb tbody.hasicon td.tcl { padding-left: 3.2em } /* C2.15 */ .punbb div.icon { height: 15px; line-height: 0.0; margin-top: 0.1em; width: 15px; border-radius: 50%; } /* C2.16 */ .punbb table div.icon { font-size: 1.05em; position: absolute; margin-left: -2.2em; } /* C3 Topics -------------------------------------------------------------*/ /* C3.1 */ .punbb .post .container { border-style: none solid solid solid; border-width: 1px; margin-top: -1px; padding-bottom: 1px; } /* C3.2 */ .punbb .post h3 { border-style: solid solid none solid; border-width: 1px; } /* C3.3 */ .punbb .post h3 span { padding: 0.2em 1em; display: block; margin-left: 21em; border-left-style: solid; border-left-width: 1px; background: #b3aea6; box-sizing: border-box; } /* C3.4 */ .punbb .post h3 strong { float: right; width: 5em; text-align: right; font-weight: normal; } /* C3.5 */ .punbb .post .post-author { float: left; width: 209px; margin-top: -1.5em; overflow: hidden; background: #15110F; border: 1px solid var(--link); box-sizing: border-box; } /* C3.6 */ .punbb .post .post-author ul, .punbb .post .post-author p { padding: 5px; line-height: 140%; flex-direction: column; color: #8B857E; text-align: center; } /* C3.7 */ .pa-author { font-size: 14px; font-weight: normal; font-family: 'Yeseva One'; } /* C3.8 */ .pa-author a { text-decoration: none; color: #8B857E !important; } /* C3.9 */ li.pa-title { padding-bottom: 0.4em; font-weight: normal; text-transform: lowercase; font-size: .9em; } li.pa-online { font-weight: normal !important; font-family: 'Inter'; text-transform: lowercase; } /* C3.11 */ .punbb .post-body { margin-left: 19em; border-left-style: solid; border-left-width: 1px; padding: 0 0 1px 0; } /* C3.12 */ .punbb .post-box { padding: 1em; font-family: verdana; padding: 20px; box-sizing: border-box; font-size: 114%; text-align: justify; } /*C3.13 */ .punbb fieldset .post-box { margin-bottom: 0.8em } /* C3.14 */ .punbb .post-links { margin-left: 19em; border-left-style: solid; border-left-width: 1px; } /* C3.15 */ .punbb .post-links ul { padding: 0 1em 0 0; height: 2em; line-height: 2em; margin-left: -19em; border-top-style: dashed; border-top-width: 1px; background: transparent; text-align: right; } /* C3.16 */ .punbb .post-links li { display: inline; padding-left: 1em; } /* C3.17 */ .pl-email, .pl-website { float: left; } /* C3.18 */ .punbb .clearer { clear: both; height: 0; font-size: 0; } /* C4 Moderator menu -------------------------------------------------------------*/ /* C4.1 */ .punbb .modmenu .container { padding: 0.5em 1em; text-align: right; } /* C4.2 */ .punbb .modmenu strong, .punbb .modmenu a { height: 1.8em; line-height: 1.8em; } /* C4.3 */ .punbb .modmenu .container strong { float: left; } /* C4.4 */ .punbb .modmenu input { margin-left: 1em; } /* C5 Message boxes -------------------------------------------------------------*/ /* C5.1 */ .punbb .info .container { padding: 0.8em 1em } /* C5.2 */ .punbb .info .container .backlink { padding-top: 0.8em; } /* C6 Profile -------------------------------------------------------------*/ /* C6.1 */ #profile .container { padding-left: 18.6em; } /* C6.2 */ #profilenav { float: left; width: 14em; margin-left: -16.3em; display: inline; } /* C6.3 */ #profilenav li { padding-bottom: 0.8em; font-weight: bold; } /* C6.4 */ #viewprofile ul, #profilenav ul { border-style: solid; border-width: 1px; padding: 1.5em 18px 0.8em 18px; margin: 0 0 1em 0; } /* C6.5 */ #viewprofile h2, #profilenav h2 { background: transparent; border: none; padding: 0 0 0 0; margin: 0 14px -0.6em 14px; width: 150px; } /* C6.6 */ #viewprofile h2 span, #profilenav h2 span { padding: 0 5px; position: relative; } /* C6.7 */ #viewprofile li, #setmods dl { padding: 0 0 0 16em; margin-bottom: 0.2em; } /* C6.8 */ #viewprofile li span { float: left; width: 14em; margin-left: -16em; padding: 0.5em 1em; font-weight: bold; } /*C6.9 */ #setmods dt { float: left; width: 14em; margin-left: -16em; padding: 0.8em 1em; font-weight: bold; display: inline; } /* C6.10 */ #viewprofile li strong, #viewprofile li div, #setmods dd { display: block; padding: 0.5em 1em; font-weight: normal; } /* C6.11 */ .punbb img.avatardemo { float: right; margin: 0 0 0.8em 1.8em } /* C7 User list -------------------------------------------------------------*/ /* C7.1 */ #pun-userlist .formal, #pun-userlist .formal .container { border-bottom: none; margin-bottom: 0; } /* C7.2 */ #pun-userlist .usertable .container { padding: 0 2.3em 2.3em 2.3em; border-top: none; } /* C7.3 */ #pun-userlist .usertable table { border-style: solid; border-width: 1px; } /************************************************************* D - PUNBB SECTIONS OTHER THAN MAIN CONTENT **************************************************************/ /* D1 Logo and description -------------------------------------------------------------*/ /* D1.1 */ #pun-title { margin: 0; border-style: solid solid none solid; border-width: 1px 1px 0 1px; } /* D1.2 */ #pun-title h1 { display : block; height : 40px; padding: 2em 1em 0 1em; } /* D1.3 */ #pun-title .container { border-style: none solid none solid; } /* D1.4 */ #pun-title h1 span { font-size: 1.5em; } #pun-title table { border: none; height: 40px; width: 100%; } #pun-title td.title-logo-tdl { border: none; width: 100%; } #pun-title td.title-logo-tdr { border: none; width: 468px; } /* D2 Page navigation -------------------------------------------------------------*/ /* D2.1 */ #pun-pagelinks { position: absolute; top: -15px; left: 0; margin: 0; border: none; padding: 0; width: 100%; } /* D2.2 */ #pun-pagelinks .container { background: transparent; border: none; padding: 0} /* D2.3 */ #pun-pagelinks .container li { display: inline } /* D2.4 */ #pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover { height: 2em; line-height: 2em; padding: 0; font-size: 1.2em; margin-left: -9999px; display: block; float:left; width: 100%; } /* D2.5 */ #pun-pagelinks a:active, #pun-pagelinks a:focus { position:relative; margin: 0; } #pun-pagelinks li a span { display:block; margin: 0 1em } /* D3 Forum navigation -------------------------------------------------------------*/ /* D3.1 */ #pun-navlinks, #pun-navlinks .container { border-style: none; border-width: 0; margin: 0; } /* D3.2 */ #pun-navlinks .container { padding: 0.7em 0; display: inline-flex; justify-content: center; width: 100%; margin-top: 1em; } /* D.3 */ #pun-navlinks li { display: inline; padding-right: 1em; } /* D3.4 */ #pun-navlinks li a { font-size: 1.1em; font-family: 'yeseva one'; text-transform: uppercase; } /* D4 User links -------------------------------------------------------------*/ /* D4.1 */ #pun-ulinks { margin-top: 0; } /* D4.2 */ #pun-ulinks .container { border-top: none; padding: 0.7em 0; text-transform: lowercase; display: inline-flex; justify-content: center; width: 100%; } /* D4.3 */ #pun-ulinks li, #pun-ulinks li a { display: inline; border-left-style: solid; border-left-width: 1px; white-space: nowrap; } /* D4.4 */ #pun-ulinks li a { padding: 0 0.3em 0 0.6em } /* D4.5 */ #pun-ulinks li.item1, #pun-ulinks li.item1 a { border-left-style: none; border-left-width: 0; padding-left: 0 } /* D5 Welcome box and Top Breadcrumbs -------------------------------------------------------------*/ /* D5.1 */ #pun-status, #pun-status .container { border-bottom: none; margin-bottom: 0; } /* D5.2 */ #pun-status .container { padding: 0.8em 1em 1em 1em; text-transform: lowercase; } /* D5.3 */ #pun-status span { white-space: nowrap; margin-right: 0.5em; } /* D5.4 */ #pun-crumbs1 { font-weight: bold; overflow: hidden; margin-top: 0; } /* D5.5 */ #pun-crumbs1 p.container { border-top: none; padding: 1em 1em 0.8em 1em; font-size: 1.1em; text-transform: uppercase; } /* D5.6 */ #pun-break1 { margin: 0 1em; border-style: solid none; border-width: 1px 0; height: 0; margin: -2px 1em; position: relative; z-index: 1; } /* D6 Announcement -------------------------------------------------------------*/ /* D6.1 */ #pun-announcement h2 { padding: 0; position: relative; font-weight: bold; height: 0; font-size: 0; } /* D6.2 */ #pun-announcement h2 span { display: block; padding: 1em 0 0.8em 0; border-bottom-style: solid; border-bottom-width: 1px; } /* D6.3 */ #pun-announcement .container { padding: 0; text-align: center; } /* D7 Statistics -------------------------------------------------------------*/ /* D7.1 */ #pun-stats .container { padding: 0.8em 1em } /* D7.2 */ #pun-stats li.item1, #pun-stats li.item2 { float: left; clear: both; line-height: 150%; } /* D7.3 */ #pun-stats li.item3, #pun-stats li.item4 { text-align: right; line-height: 150%; } /* D7.4 */ li#onlinelist { margin-top: 1em; border-top-style: solid; border-top-width: 1px; float: left; width: 100%; line-height: 130%; } /* D7.5 */ li#onlinelist div { border-top-style: solid; border-top-width: 1px; padding: 0.7em 0 0 0; } /* D8 Quick Jump - About - Bottom Breadcrumbs -------------------------------------------------------------*/ /* D8.1 */ #pun-qjump { margin: 0; border: none; width: 50%; position: relative; float: left; } /* D8.2 */ #pun-qjump .container { border: none; background: transparent; padding: 0.8em 1em; } /* D8.3 */ #pun-about { margin-top: 0; } /* D8.4 */ #pun-about .container { border-top-style: none; text-align: right; line-height: 150%; padding: 0.8em 1em; } /* D8.5 */ #pun-about p span { display:block; padding-left: 50%; text-align: center; } /* D8.6 */ #pun-crumbs2 { font-weight: bold; overflow: hidden; margin-bottom: 0; border-bottom: none; } /* D8.7 */ #pun-crumbs2 .container { border-bottom: none; padding: 0.8em 1em; font-size: 1.1em; text-transform: uppercase; } /* D8.8 */ #pun-break4 { margin: -2px 1em; border-style: solid none; border-width: 1px 0; position: relative; height: 0; z-index: 1; } /* D8.9 */ div.punbb-admin #pun-about .container { border-top-style: solid; border-top-width: 1px; } /* D9 Help file -------------------------------------------------------------*/ /* D9.1 */ #pun-help .formal .info-box h3.legend { border-bottom-style: solid; border-bottom-width: 1px; padding-bottom: 0; margin-bottom: 0.8em; } /* D9.2 */ #pun-help .formal .info-box h3.legend span { padding-bottom: 0.6em; display: block; border-bottom-style: solid; border-bottom-width: 1px; font-size: 1.1em; } /* D9.3 */ #pun-help .formal p, #pun-help .formal dd { margin-bottom: 1em } /* D9.4 */ #pun-help .formal ul, #pun-help .formal dl { padding: 0 0 0 1em } /* D9.5 */ #pun-help .formal li { padding: 0; line-height: 130% } /* D9.6 */ #pun-help .formal li * { vertical-align: text-top } /* D9.7 */ #pun-help .formal dt span { font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace } /* D9.8 */ #pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode { padding-bottom: 0; } /* шаблон гостевой (с) astaarus */ /* Контейнер шаблона */ .guest-template-container { width: 500px; margin: 20px auto; padding: 30px; background: url(https://upforme.ru/uploads/001c/38/bc/2/899718.png); border-radius: 15px; display: flex; flex-direction: column; font-family: arial; } /* стиль хедера */ .guest-header { position: relative; text-align: center; background: #756042; color: black; border-radius: 10px; margin-bottom: 20px; } .guest-header h1 { font-size: 60px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; } .guest-header p { font-size: 24px; line-height: 1.6; opacity: 0.85; font-weight: 300; max-width: 900px; margin: 0 auto; } /* стиль для описания форума */ .guest-description { background-color: #756042; color: #000000; padding: 15px !important; text-align: center; border-radius: 10px; margin-top: 0px; width: 470px; margin-bottom: 20px; max-height: 100px; overflow-y: auto; } .guest-description p { font-size: 12px !important; font-family: arial !important; letter-spacing: 1px !important; } /* стиль футера */ .guest-footer { background-color: #756042; text-align: center; padding: 10px !important; border-radius: 10px; margin-top: 25px; } .guest-footer .footer-link { color: #000000 !important; font-weight: bold; font-size: 12px; text-decoration: none; display: inline-block; transition: color 0.3s ease, transform 0.3s ease; } .guest-footer .footer-link:hover { transform: translateY(-2px); } /* Стили для колонок */ .guest-column-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } .guest-column { background-color: #756042; padding: 30px; box-shadow: 0 12px 50px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, background-color 0.3s ease; position: relative; } .guest-column a { color: c5c2bc !important; } .guest-column:hover { transform: translateY(-5px); background-color: #c5c2bc; } .guest-column h3 { font-size: 8px; color: #333; font-weight: 600; margin-bottom: 30px; text-align: center; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #dbdbdb; padding-bottom: 10px; } .guest-item-container { max-height: 150px; overflow-y: auto; } .guest-item { display: flex; justify-content: space-around; } .guest-item a { color: #000000; text-decoration: none; font-weight: 600; } .guest-item a:hover { color: #000000; } /* Стили для прокрутки */ .guest-item-container::-webkit-scrollbar { width: 8px; } .guest-item-container::-webkit-scrollbar-thumb { background-color: #aaa; border-radius: 5px; } .guest-item-container::-webkit-scrollbar-track { background-color: #f3f4f6; }
с невского
Сообщений 1 страница 5 из 5
Поделиться12026-02-05 19:48:18
Поделиться32026-02-05 19:49:11
Код:<!-- Cчётчик Игровых постов --> <script type="text/javascript"> /*************************** Настройки! ***************************/ FORUM._NUMpa_fld = 3; // Номер.Доп.поля, FORUM._color_fld = "inherit"; // Цвет шрифта, FORUM.includeFirstPost = 0; // 0 - не учитывать,1 - учитывать Первопост автора в игровых темах, FORUM.AddOrSlash = 0; //0 - Поле отдельно, 1 - через слешь c общ. числом сообщений, FORUM.Number_winners = [7,[3]]; // Начальное Число отображаемых юзеров в таблице и список форумов показа; FORUM.Subscription_Code = "f87f9524f52b3f15cd458b2bf2a95a906ca5a960"; //Код подписки!!; /**** НАСТРОЙКА Игровых локаций ****/ function ad_ (){/*!~!FORUM.ForArrAy = { //Форум //Темы (включаемые, или исключаемые) f10 :-[0], //том первый f11 :-[0] //том второй //Последний элемент без запятой! } !~!*/}ad_ = ad_.toString().split('!~!')[1];//alert(ad_); </script> <script type="text/javascript" src="https://forumstatic.ru/files/0013/44/56/77707.js"></script> <style>.Form-Table{}.punbb .table_GamePosts tbody th{text-align: center;color:#fff} #pre_placement>a {top:3px;right:2px;border:0 none;z-index:100}.punbb .GamePst{padding:0!important;} .punbb #profile-right li#pa-fld3 strong.GamePst2 {}</style> <!--//END Cчётчик Игровых постов © Deff--> <div class="shapka"></div> <!-- Скрытие профиля в теме тегом © Alex_63 --> <style type="text/css">.hideprofile .post-author,.hideprofile .pl-email,.hideprofile .pl-website{display:none!important} .hideprofile .post-body,.hideprofile .post-links,.hideprofile .post-links ul,.post.hideprofile h3>span{margin-left:0!important}</style> <script> FORUM.set('editor.addition.tags.hideprofile',{name:'Скрыть минипрофиль',onclick:function(){insert('[hideprofile]');}}); $().pun_mainReady(function(){$('.post:contains("[hideprofile]")').addClass('hideprofile').html(function(){return $(this).html().replace(/\[hideprofile\]/gim,'')})}); </script> <!------------------------------------------------------- Быстроплюсы v.2 РЕНО by Deff --> <script type="text/javascript" src="https://forumstatic.ru/files/0012/d8/04/58219.js" addComment="1"></script> <!-- конец --> <!-- СКРЫВАЕМ НАГРАДЫ ИЗ НАВИГАЦИИ --> <style type="text/css"> li#navawards {display: none;} </style> <!-- Скрытие эмодзи реакций --> <script> ReactionsPlugin.setConfig({ disable: true }); </script> <!-- ОТКЛЮЧИТЬ СЕРВИС РЕКОМЕНДАЦИЙ --> <script type="text/javascript"> rusffLive.enable = false; </script> <!-- конец -- > <!--------------------- Выделение кода в блоке "Код" © Alex_63 ---------------------> <script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/26102.js"></script> <script>eval(select_text.toString().replace(/\}$/,'try{document.execCommand("copy")}catch(e){}}'))</script> <script type="text/javascript">select_text.linkText = 'выделить код [копируется сразу]'</script> <!------------------------- Мгновенные уведомления © Alex_63, Deff 2019 ------------------------> <link rel="stylesheet" type="text/css" href="//forumstatic.ru/f/ru/bestbb/notifications.css" /> <style>.punbb #pun-main .pun-modal.unread-notifications .section h2{text-align:center!important} /*.pun-modal.unread-notifications .modal-inner.section {background: rgba(228, 228, 228, 0.92)!important;*/} </style> <script type="text/javascript" src="//forumstatic.ru/f/ru/bestbb/notifications.js"></script> <!--+ Мгновенные уведомления: упоминания © Alex_63, 2020 --> <script>notifications.load('mentions');</script> <!--+ Мгновенные уведомления: комментарии к репутации без переадресации Alex_63, 2019--> <script>notifications.load('reputation');</script> <!--+ Мгновенные уведомления: подписки на форум/тему © Alex_63, 2019 --> <script>notifications.load('subscriptions');</script> <!--+ Мгновенные уведомления: новые посты из важных тем © Alex_63, 2019 --> <script type="text/javascript"> notifications.load('common', {}); notifications.load('important', {topics: [15]}); // ID важных тем (через запятую) </script>
Поделиться42026-02-05 19:49:33
<!-------------------------------------- УНИВЕРСАЛЬНАЯ ЗАМЕНА -------------------------------------->
<script>
function UniverСhange(selektor,changed,substitute){
$(selektor).each(function(){if ($(this).parent().html()!=null){if($(this).parent().html().indexOf(changed)!=-1){
$(this).parent().html($(this).parent().html().replace(changed,substitute));};};});}function Change(sc,ch,st){$(sc).parent().each(function(){$(this).html($(this).html().replace(ch,st));});}
UniverСhange("#pun-stats.section h2","Статистика форума","Статистика");
UniverСhange("#pun-navlinks a","Администрирование","амс");
</script><script src="https://forumstatic.ru/files/0019/cc/52/47499.js"></script>
<script>
hvScriptSet.addMask({
guestAccess: ['"госархив"'],
forumAccessExtended: {
'том первый': ['принятые в игру'],
'том второй': ['принятые в игру'],
'госархив': ['принятые в игру'],
'изба-флудильня': ['принятые в игру'],
'личные темы': ['принятые в игру']
},
changeList: {
'pafld1': {
title: 'лз',
description: 'личное звание',
tag: 'lz',
class: 'pa-fld1',
defaultCode:'<div class="name"><a href="ссылка на анкету">профессия // возраст цифрой </a></div><div class="lz">любая информация о персонаже и <a href="ссылка на пару"><b>его отношениях</b></a> </a><br></div> </div>',
type: 'html'
}
},
userFields: ['pa-author', 'pa-title', 'pa-avatar', 'pa-fld1', 'pa-posts', 'pa-respect', 'pa-fld2', 'pa-fld3', 'pa-online', 'pa-fld5']
});
</script><!----- Предупреждение 18 by g.vatueil ---->
<link rel="stylesheet" type="text/css" href="https://forumstatic.ru/files/000b/09/4f/12176.css" />
<script type="text/javascript" src="https://forumstatic.ru/files/000b/09/4f/10828.js"></script><script>
$(document).ready(function(){
var subforums = {};
$('.category tr').each(function () {
var is_sub = $(this).hasClass('isub');
if (is_sub) {
var parent = $(this).data('parent'),
id = $(this).attr('id').match(/forum_f(\d+)/),
forum_id = id[1],
last = $(this).find('.tcr > a').attr('href');
link = $(this).find('.tcl h3').html();
if (typeof subforums[parent] == 'undefined') subforums[parent] = [];
subforums[parent].push({forum_id: forum_id, link: link, last: last});
}
});
for (var forum_id in subforums) {
var el = '<div class="subforums"><p class="d_title"><strong>Подфорумы: </strong></p><div class="Inner">';
for (var subforum of subforums[forum_id]) {
el += '<span class="sf' + subforum['id'] + '">' + subforum['link'];
if (!subforum['last']) el += '<img class="Icon_LastPost O" src="" title="Подфорум пуст">';
else el += '<a class="Icon_LastPost N" href="' + subforum['last'] + '" title="К последнему сообщению"><img src=""></a>';
el += '</span>';
}
el += '</div></div>';
$('#forum_f' + forum_id + ' .tclcon').append(el);
$('.parent-' + forum_id).remove();
}
});
</script><!-- Стрелки вверх-вниз -->
<div class="go-up" id="ToTop" title="Наверх" onmousedown="$('html,body').animate({scrollTop:0},{ 'duration': 500, 'easing':'linear' });$(this).css({'margin':'0'});" onmouseup="$('html,body')"></div>
<div class="go-down" id="OnBottom" title="Вниз" onmousedown="$('html,body').animate({scrollTop:$(document).height()},{ 'duration': 500, 'easing':'linear' });$(this).css({'margin':'0'});" onmouseup="$('html,body')"></div><!--Стрелки конец-->
<!-------------------------------------------------------
замена коротких тире на длинные -->
<script type="text/javascript">
$(".post-content p").html(function(){return this.innerHTML.replace(/(\s| )?-(\s| )/g,'$1—$2')})
</script>
<!--- конец ---><!-------------------------------------------------------
Счётчик символов в форме ответа © Deff -->
<script>var a,L,epl=$("#main-reply"),ins_str='<div class="symbol-counter">char: <b>00</b> </div>';epl.closest(".fs-box").find("#form-buttons").prepend(ins_str);function epl3(){a=epl.val().length;if(a>9){L=''}else{L='0'};$(".symbol-counter b").text(L+a)};epl3();$(".pl-quote").click(function (){setTimeout('epl3()',100)});epl.on('mouseout mousemove keydown keypress keyup focus blur',epl3);</script><!-------------------------------------------------------
Гость может обращаться к участникам по никам (с) Teswa, 2023 -->
<script>
$('.pa-author a').each((i,a) => $(a).attr('href', "javascript:to('" + a.innerHTML.replace("'", "\\'") + "')"));
</script><!-------------------------------------------------------
Запятая после ника © Duka -->
<script type="text/javascript">
function to(username)
{insert("" + '' + username + '' + "" + ', ');}
</script><!-------------------------------------------------------
Восстановление последнего поста при утере by Человек-Шаман -->
<script>
$(document).ready(function() {
$('#addition-area').append(function() {
return $('<div>Восстановить последний пост</div>').click(restoreLastPost);
});
function restoreLastPost() {
$('#main-reply').val(localStorage.ReservePost);
};
});
</script>
<!--- конец ---><!-------------------------------------------------------
Мгновенный предпросмотр сообщения © Alex_63 -->
<script type="text/javascript">
var PPREV = {};
PPREV.position = 0; //Положение окна Предпросмотра: 0 - над полем ввода, 1 - под полем ввода, 2 - справа
PPREV.quote_cite = 'написал(а):'; //Надпись в окне цитаты
</script>
<!-- обновление от 27.02.2025 с поддержкой бб-блоков, тихих цитат, бб-вкладок от kolobdur74 и медиаспойлеров © hagalnaud -->
<script type="text/javascript" src="https://forumstatic.ru/files/001b/d5/6a/90542.js"></script><!-------------------------------------------------------
Дополнение: кнопка отключения мгновенного предпросмотра -->
<style>#togglePreview{margin-top:-17px}</style>
<script type="text/javascript">(function (){
var a='Включить быстрый предпросмотр';
var b='Отключить быстрый предпросмотр';
var d='_PreviewToggle';
setCookiePPrev=function(a,b,c){if(c){var d=new Date();d.setTime(d.getTime()+c);}if(a && b)document.cookie=a+'='+b+(c ? '; expires='+d.toUTCString() : '');else return false;}
getCookiePPrev=function(a){var b=new RegExp(a+'=([^;]){1,}');var c=b.exec(document.cookie);if(c)c=c[0].split('=');else return false;return c[1] ? c[1] : false;}
$('<small id="togglePreview"><input type="button" class="button" value="'+ b +'" onclick="togglePreview(this)"/></small>').insertAfter('#post fieldset:last legend');
var x = ParseContent;
window.togglePreview = function(sel){//alert(sel.value);
if(sel.value==a){sel.value=b;setCookiePPrev(d,'0',-1000);ParseContent=x;ParseContent();$('#post-preview').show(); return}
if(sel.value==b){sel.value=a;setCookiePPrev(d,'OFF',30*3600*24*30*1000);if($('#pun-viewtopic').length){$('#post-preview').hide()}ParseContent=function(){return};return}
}; if(getCookiePPrev(d)=='OFF'){$('#togglePreview>.button').click()};
}())
</script><script>
$(".post-content").each(function () {
let html = this.innerHTML;
html = html.replace(/\[image\s+style="([\s\S]*?)"\]([\s\S]*?)\[\/image\]/g, '<img style="$1" src="$2">');
this.innerHTML = html;
});
</script>
<!--- конец ---><!-------------------------------------------------------
Быстрое редактирование постов © Alex_63 // V.3 -->
<script src="https://forumstatic.ru/files/0015/c4/3f/97896.js" type="text/javascript"></script>
<!--- конец ---><!-- ТЕГ абзаца - [indent] © Deff -->
<style>#button-indent {background:url(http://s7.uploads.ru/t/mnkgq.png)no-repeat center 6px!important;}</style>
<script type="text/javascript">(function(){ var b = '[indent]';
$("#button-strike").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif" onclick="smile(\''+b+'\')"></td>');
var indent = '<span style="display:inline-block;margin:1em 2.1em;"></span>'; /*удвоенные Отступы сверху и слево*/
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script><!----------------------------------------- НОВЫЕ СОО ----------------------------------------->
<script type="text/javascript">
function show_new() { if(GroupID == 3) return;
$('#pun-ulinks ul').prepend('<li class="item1"><a href="/search.php?action=show_new">Новые сообщения</a></li>');} show_new();
</script><!---------------------------- ЗАПРЕТ РЕКЛАМЫ РЕДАКТИРОВАТЬ ПРОФИЛЬ ------------------------->
<script type="text/javascript">
if(UserLogin=='owl' || UserLogin=='Ник2'&&document.URL.indexOf("profile.php")!=-1){$("#profile .container").replaceWith("<div style='color: red; padding: 10px 10px 10px 10px;'>Администратор запретил вам редактировать профиль.</div>");
}
</script><!-------------------------- ОТКЛЮЧИТЬ ПОДЕЛИТЬСЯ, ГРАФФИТИ, ВЛОЖЕНИЯ -------------------------->
<script type="text/javascript">
RusffCore.sets.share = false;
RusffCore.sets.graffiti = false;
RusffCore.sets.files.button = false;
</script><!----------------------------------------- ССЫЛКИ НЕ СОКРАЩАЮТСЯ ---------------------------------------->
<script type="text/javascript">
FORUM.set("editor.link.short_url", function() { return false; }); </script><!---------------------------------------- ОТКЛЮЧИТЬ "ЭТО ИНТЕРЕСНО" ------------------------------------>
<script type="text/javascript">
rusffLive.enable = false;
</script><!------------------------------------------- КЛИКАБЕЛЬНЫЙ НИК ГОСТЯ ------------------------------------->
<script>$(".post[data-group-id=3]").find(".pa-author").html(function(){return this.innerHTML.replace(/(<.+>)(.+)$/,'$1<a href="javascript:to(\'$2\')">$2</a>')});</script><!-- Мгновенный предпросмотр сообщения © Alex_63 -->
<script type="text/javascript">
var PPREV = {};
PPREV.position = 0; //Положение окна Предпросмотра: 0 - над полем ввода, 1 - под полем ввода, 2 - справа
PPREV.quote_cite = 'написал(а):'; //Надпись в окне цитаты
</script>
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/10524.js"></script><!------------------------------------------- ПИАР ВХОД ------------------------------------->
<script type="text/javascript">
PiarNik="сфинкс";
PiarPas="111111";var L="<div id=\"PR_loginDiv\" style=\"display:none;\">\
<form id=\"form_login\" name=\"login\" method=\"post\" action=\"login.php?action=in\" onsubmit=\"return check_form()\">\
<fieldset>\
<input type=\"hidden\" name=\"form_sent\" value=\"1\"/>\
<input type=\"text\" id=\"fld1\" name=\"req_username\" size=\"21\" maxlength=\"25\"/>\
<input type=\"text\" id=\"fld2\" name=\"req_password\" size=\"7\" maxlength=\"16\"/>\
<input type=\"submit\" class=\"button\" name=\"login\"/>\
</fieldset>\
</form>\
</div>\
<li id=\"navpiar\"><a onclick=\"PiarIn()\"><span style=\"cursor:pointer\">PR</span></a></li>";
if($("#navlogin").html()!=null){$("#navlogin").after(L) //navlogin
$("#PR_loginDiv #fld1").val(PiarNik)
$("#PR_loginDiv #fld2").val(PiarPas)
function PiarIn () {$("#PR_loginDiv input[type='submit']").click();}
}
</script>
<!-- Регулировка размера шрифта в постах © Alex_63 -->
<style>
.FNTslider {
border-radius: 4px;
position:relative;z-index:1000;
background: #E0E0E0;
width: 110px;
height: 5px;
margin: 3px 5px;
border: solid 1px #ccc;
float: right;
margin-right: 7%;
}
.FNTslider .before {
height: 5px;
border: solid 1px transparent;
border-right: none 0;
border-radius: 4px 0 0 4px;
position: absolute;
background: #A0BCDA;
margin-top: -1px;
}
.FNTslider .thumb {
width: 8px;
height: 13px;
border-radius: 3px;
position: relative;
top: -4px;
background: #3980D8;
cursor: pointer;
}
</style>
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/31001.js"></script><!----------------------------------------- БАННЕРЫ ----------------------------------------->
<div id="banners"> </div>
Поделиться52026-02-05 19:51:32
Код:<script type="text/javascript"> function unhtml(s) { return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"); } function numword(s,one,two,many) { return(((s%100>=10 && s%100<=20) || s%10>=5) ? many : (s%10==1 ? one : two)); } function dice() { var FoundErrors = ''; var diceRes="" var CountCube = prompt("Сколько кубиков кидаешь?", "1"); if(CountCube>10 || CountCube<=0) { alert("Можно кинуть не более десяти кубиков."); return false;} var SideCube = prompt("Сколько граней у твоего кубика?", "6"); if(SideCube>100 || SideCube<=0){ alert("Таких кубиков не может быть."); return false;} var ReasonCube = unhtml(prompt("Что спрашиваешь у кубика?", ""). replace(/\s+/g," ").replace("]"," ")); for(i=0; i<CountCube;i++) { var dice = (Math.round(Math.random()*SideCube)); if(dice==0) dice=1; diceRes += dice*1936+"-"; } smile('[dice='+diceRes+CountCube+':'+SideCube+ ':'+ReasonCube+']'); } function addDice(post, from, internal) { var str = post.innerHTML; var a = $(post).closest('.post').innerHTML; var u = ""; var num = +post.id.match(/\d+/g)[0]; var date = new Date(+$(post).attr('data-posted')*1000).getSeconds(); var fCanRandomise = 1; var ran = num + date; return str .replace( /\[dice=((?:\d+[-—])*)(?:(\d)(\d+)|(\d+)(:)(\d+)(?::)()(?:([^\]]*))?)]/g, function(a, dice, diceC, diceS, adieC, fNewScheme, adieS, adieB, adieR) { dice = dice.replace(/[-—]/g, '-'); adieB = adieB.replace(/[-—]/g, '-'); diceC = parseInt(fNewScheme ? adieC : diceC); diceS = parseInt(fNewScheme ? adieS : diceS); adieB = parseInt(adieB ? adieB : 0); if(adieB > 0) adieB='+'+adieB; if(!fCanRandomise && fNewScheme) return '<div class="quote-box"><blockquote><p><b>Что-то не получилось, сообщите администрации</b></p></blockquote></div>'; var i, diceR = 0, s = '<div class="quote-box"><blockquote ' + 'style="text-align:left"><p>' + '<b>Игрок кинул ' + diceC + numword(diceC,' из кубиков с ',' кубика с ',' кубиков с ') + diceS + numword(diceS,' гранью зла',' гранями зла',' гранями зла') + (adieB ? (adieB>0 ? ' и бонусом ' : ' и пенальти ')+adieB : '') + (adieR ? ', чтобы узнать:</b><br><i>'+adieR+'</i><b>' : '') + '<br /><br />Злобные Кубики Бесконечности ответили' + (fNewScheme ? '' : '(старая схема)')+'</b>: ('; dice = dice.split("-"); for (var i=0; i < dice.length-1; ++i) { var d = parseInt(dice[i]/1936); date=((date>>1)+((date&1)<<21))&0x3fffff; num=((num>>1)+((num&1)<<22))&0x7fffff; if(fNewScheme) d = (ran=(((ran>>1)+(((ran&1) ? 0 : 1)<<23)+d+date)^num)&0xffffff)%diceS + 1; diceR += d; s+= (i?' + ':'') + d; } if (adieB) diceR += parseInt(adieB); return (s + (adieB ? ')'+adieB : ')') + '=' + diceR + '</p></blockquote></div>'); } ); } $(document).ready(function() { initDices() }); $(document).on('pun_post', function() { initDices() }); $(document).on('pun_edit', function() { initDices() }); function initDices() { if (! FORUM.topic) return; $('.post-content').each(function(i, post) { var str = post.innerHTML; var isDiceInPost = /\[dice=((?:\d+[-—])*)(?:(\d)(\d+)|(\d+)(:)(\d+)(?::)()(?:([^\]]*))?)]/.test(str); if (!isDiceInPost) return; post.innerHTML = addDice(post); }); } $(document).ready(function() { $('#addition-area').append(function () { return $('<div>Кинуть кубик</div>').click(dice); }); }); </script> <!-- * скрипт стикеров * автор: человек-шаман * version: 1.0.2 --> <script src="https://forumstatic.ru/files/0017/95/29/40399.js"></script> <script> $(document).ready(function() { hvStickerPack.init("https://forumstatic.ru/files/0011/52/ae/36730.txt"); }); </script> <!-- !--Переключение раскладки выделенного текста v.2 --> <style>#button-transL{background-image:url(https://forumstatic.ru/files/001a/48/60/20889.png)}</style> <script type="text/javascript">S='<img src="http://forum.mybb.ru/i/blank.gif" title="Lat ↔ Рус" onclick="LatRus();"/>'; $("#button-font").after('<td id=button-transL>'+S+'</td>'); function LatRus(){ lat0='|@#$^&/?qwertyuiopasdfghjkl;\'zxcvbnm,QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>`~[].'.split(''); lat='qwertyuiopasdfghjkl;\'zxcvbnm\,QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>`~'.split(''); lat.push('\\[','\\]','\\.','\\?','\\/','\\&','\\^','\\$','\\#','\\@','\\|'); rus0=('йцукенгшщзфывапролджэячсмитьбЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮёЁхъю,.?:;№"/').split(''); rus=('\,йцукенгшщзфывапролджэячсмитьбЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮёЁхъю').split(''); rus.unshift ('\\/','\\"','\\№','\\;','\\:','\\?','\\.'); var selstart = document.getElementById("main-reply").selectionStart; var selend = document.getElementById("main-reply").selectionEnd; L=$('#main-reply').val(); if (typeof selstart === "number" && typeof selend === "number"){ var TxtTrans1 = (L.substring(selstart,selend).search(/[qwertyuiopasdfghjklzxcvbnm]/i)!=-1?'rus':'lat'); var ar2=lat0,ar1=rus; if(TxtTrans1=='rus'){ar1=lat;ar2=rus0; selstart+=L.substring(selstart,selend).search(/[.,]*?[qwertyuiopasdfghjklzxcvbnm]/i); latend=L.substring(selstart,selend).search(/[йцукенгшщзфывапролджэячсмитьёхъю]/i); if (latend != -1) {selend = selstart+latend;}} L=L.substring(0,selstart) + L.substring(selstart,selend).replace(/[\s\S]*/mg,function(p){ for(var i=0; i<ar1.length; i++){trans='/'+ar1[i]+'/g';p=p.replace(eval(trans), ar2[i])}return p;}) + L.substring(selend);}$('#main-reply').val(L);}</script>

