...
Коды. Нужное и не очень
Сообщений 1 страница 4 из 4
Поделиться22018-02-18 23:05:08
<!--кнопка хтмл в быстром ответе-->
<style>
#button-html {background-image:url('http://funkyimg.com/i/21TAY.png'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%}
</style>
<script type="text/javascript">
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(12).innerHTML="<img src='/i/blank.gif' id='button-html' onclick=\"bbcode('Код:[html]', '');\"/>"
</script><!— HTML в постах —>
<script type="text/javascript">
function Transform_Code_Box_in_HTML(aX){
var TemLnk=aX.replace(/^(.*viewtopic\.php\?id=\d*).*$/ig,"$1");
var PstId=aX.replace(/^.*viewtopic\.php\?id=.*(#p\d+)$/ig,"$1");
var L=document.URL.replace(TemLnk,'');
if(L!=document.URL&&(L.slice(0,1)).search(/\d/ig)==-1 ){
L=$("div.topic "+PstId);
if(L.length==1){
var Lhtm=L.find(".post-content .code-box:first .scrollbox pre").text();
L.find(".post-content .code-box:first").replaceWith(Lhtm)
}}}
function Demo_HTML(Ts){var Ll=Ts.parents(".htmldemo").find(".code-box .scrollbox pre").text();
Ts.parents(".htmldemo").after('<div class="demHtml">'+Ll+'</div>');Ts.replaceWith(DemoButt0);
}
$(document).ready(function() {
$("#pun-viewtopic .post .code-box").each(function(){
if($(this).text().indexOf('[html]')!=-1){
$(this).wrap('<div class="htmldemo"></div>')
$(this).replaceWith($('.htmldemo').text().split('[html]')[1]);
}
});
});
</script>
Поделиться32018-02-25 23:42:30
#post-form h2 { text-align: center !Important; font: 20px arial !important; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 15px; background: url(http://sg.uploads.ru/d/8q7CV.jpg) top center no-repeat; width: 100%; height: 65px; margin-top: 0px; margin-left: 0px; }
Поделиться42018-03-02 00:17:30
/* C3 Topics
-------------------------------------------------------------*/
/* C3.1 */
.punbb .post .container {
border-style: none solid solid solid;
border-width: 0px;
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.5em 1em;
display: block;
margin-left: 19em;
border-left-style: solid;
border-left-width: 0px}
/* 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: 19em;
margin-top: -1.5em;
overflow: hidden;}
/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
padding: 0 1em 1em 1em;
line-height: 140%;
text-align: center;}
/* C3.7 */
.pa-author {
font-size: 1.1em;
font-weight: bold;}
/* C3.8 */
.pa-author a {
text-decoration: none}
/* C3.9 */
li.pa-title {
padding-bottom: 0.4em;
font-weight: bold;}
li.pa-online {
line-height: 0.8em;
border-left-style: solid;
border-left-width: 0;
padding-left: 0.4em;
margin-top: 0.7em;}
/* C3.11 */
.punbb .post-body {
margin-left: 19em;
border-left-style: solid;
border-left-width: 0px;
padding: 0 0 1px 0;}
/* C3.12 */
.punbb .post-box {
padding: 1em;
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: 0px;}
/* 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: 0px;
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;}