Code Lab
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
dasaasfagaegadfgsgsgs gssfgsfSat Sep 01, 2018 2:56 pmBetaTester
dasaasfagaegadfgsgsgs gssfgsfTue Mar 27, 2018 5:35 amBetaTester
dasaasfagaegadfgsgsgs gssfgsfTue Mar 27, 2018 5:35 amBetaTester
dasdadadad adssadadad asdsadadadadTue Mar 27, 2018 5:29 amBetaTester
dasdadadad adssadadad asdsadadadadTue Feb 27, 2018 1:33 pmAdmin
pruebassssssssTue Feb 27, 2018 9:42 amAdmin
probando probandoSun Feb 11, 2018 4:13 amBetaTester
[test] test ok ok ok ok Sat Dec 23, 2017 7:14 pmBetaTester
Probando :)Sat Mar 04, 2017 7:09 amBetaTester

Go down
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty The Bible - Honey Be Good (Vinyl, 12") 1989

Tue Oct 25, 2016 10:37 pm
Code:
console.log('//-----Written by Chalo ------- Open Source 2014-2016 -----//');
console.log('//------------ http://www.opensourcephpbb3.com ------------//');
console.log('//--------------------- Version: 1.1 ----------------------//');
console.log('//Reply, preview, quote, delete and more, without reload   //');
var os = {
    lang: {
        success_reply: 'Your message has been entered successfully', // <--- change this text exactly like is display in your language board
        flood: 'Flood control is active on this forum, please wait 10 second(s) before replying or posting',
        newpost: 'A new message has been posted',
        error_reply: 'Try again',
        words_reply: 'You need 5 letters at least',
        button_send_reply: 'Send data...',
        notice_original: 'No predefined text',
        no_message: 'There is nothing written in the editor',
        no_subject: 'You must specify a subject for your message.',
        placeholder: 'write something here...',
        main_delete: 'Do you want delete the post #',
        delete_yes: 'Delete',
        delete_cancel: 'Cancel',
        loading: 'Loading...',
        wait_notice: 'Please be patient, sending data to the server',
        color_a: 'linear-gradient(to bottom, #febbbb 0%,#fe9090 45%,#ff5c5c 100%)',
        color_b: 'linear-gradient(to bottom, #ffaf4b 0%,#ff920a 100%)',
        color_c: 'linear-gradient(to bottom, #87e0fd 0%,#53cbf1 40%,#05abe0 100%)',
        color_d: 'linear-gradient(to bottom, #ff3019 0%,#cf0404 100%)',
        color_e: 'linear-gradient(to bottom, #d2ff52 0%,#91e842 100%)'
    },
    length_reply: 5, //min letters in the textarea before reply
    time: 3000,
    previewHTML: '<div id="preview_content"><a id="close" style="float:right;cursor:pointer;" onclick="os.close(\'preview\')"><img src="http://2img.net/i/fa/prosilver/icon_post_delete.gif"></a></div>',
    delete_style: '#confirm_content { color: #fff; margin-bottom: 7px; padding-bottom: 5px; font-size: 30px}#confirm > div { display: inline-block; padding: 4px 12px; margin-bottom: 0; font-size: 12px; line-height: 20px; color: #333; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; cursor: pointer; text-decoration: none!important;}#yes { color: #fff!important; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; background-image: linear-gradient(to bottom, #62c462, #51a351)!important; background-repeat: repeat-x; border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;}#cancel { margin-left: 5px; color: #fff!important; background: linear-gradient(to bottom, #db5530 5%, #db1f1f 100%)!important; background-color: #db5530; text-shadow: 0 1px 0 #854629;}',
    init: function () {
        os.isTheme = /\/t\d+/g.test(window.location.pathname);
        os.isPost = /\/post/.test(window.location.pathname);
        os.phpbb2 = document.getElementsByClassName('bodylinewidth').length;
        os.phpbb3 = document.getElementById('phpbb');
        os.invision = document.getElementById('ipbwrapper');
        os.punbb = document.getElementById('pun-intro');
        os.form = document.forms.post;
        os.b_r = os.form.post;
        os.b_r_v = os.form.post.value;
        os.textarea = os.form.message;
        os.action = os.form.action;
        os.b_p = os.form.preview;
        os.b_p_v = os.b_p.value;
        os.url = os.isTheme ? '/post?t=' + os.form.t.value + '&mode=reply' : os.isPost && document.location.href;
        os.sceditor = $(os.textarea).sceditor('instance');
        os.b_p.setAttribute('onclick', 'os.prev(this);return false');
        os.b_r.setAttribute('onclick', 'os.post(this);return false');
        os.a = document.getElementsByTagName('a');
        os.form.getElementsByTagName('textarea')[1].placeholder = os.lang.placeholder;
        for (var i = 0; i < os.a.length; i++) {
            /(?!\&(mode)\=)(quote)/.test(os.a[i].href) && os.a[i].setAttribute('onclick', 'os.quote(this);return false');
            /(?!\&(mode)\=)(delete)/.test(os.a[i].href) && os.a[i].setAttribute('onclick', 'os.set_delete(this);return false');
        }
    },
    notice: function (c, f) {
        var a, b, d, e, g;
        g = document.getElementsByClassName('notice_reply');
        b = document.getElementsByClassName('sceditor-group')[0];
        d = b.parentNode;
        a = !g.length ? document.createElement('DIV') : g[0];
        e = 'height:20px;line-height: 1.5;border-radius: 3px; text-shadow: 0 1px rgba(255, 255, 255, 0.46);text-align:center';
        !g.length && (a.classList.add('notice_reply'), a.setAttribute('style', e), d.insertBefore(a, b));
        a.style.display = 'block';
        a.innerHTML = 'undefined' == typeof c ? os.lang.notice_original : c;
        a.style.background = 'undefined' == typeof f ? os.lang.color_a : f;
        setTimeout(function () {
            a.style.display == 'block' && (a.style.display = 'none')
        }, os.time)
    },
    quote: function (c) {
        os.XML('', c.href, function (e) {
            var x = e.responseXML,
                f = x.forms.post.message.value;
            os.sceditor.val(f);
            os.scroll(5);
        })
    },
    overlay: function () {
        var a = document.createElement('div');
        a.style = 'display:block;position:fixed;top:0;left:0;min-height:101%;width:100%;background-color:rgba(0, 0, 0, .4);z-index:999;color:#fff;';
        a.id = 'overlay';
        document.body.appendChild(a);
    },
    set_delete: function (f) {
        var d, b, c;
        b = document.createElement('div');
        c = document.createElement('style');
        b.innerHTML = '<div id="confirm_content">' + os.lang.main_delete + os.post_number(f.href) + '?' + '</div><div id="confirm"><div id="yes" onclick="os.delete(\'' + f.href + '\')">' + os.lang.delete_yes + '</div><div id="cancel" onclick="os.close(\'delete\')">' + os.lang.delete_cancel + '</div></div>';
        b.id = 'confirm_wrap';
        b.style = 'display: inline-block; vertical-align: top; width: auto; text-align: center; z-index: 9999; padding: 7px 13px; position: fixed; top: 35%; left: 30%';
        os.overlay();
        document.body.appendChild(b);
        c.innerHTML = os.delete_style;
        c.type = 'text/css';
        c.id = 'd_style';
        !document.getElementById('d_style') && document.head.appendChild(c);
        d = document.getElementById('yes');
    },
    delete: function (f) {
        os.XML('&confirm=1', f, function (e) {
            var a = document.getElementsByClassName('post--' + os.post_number(f)),
                b = document.getElementById('confirm_wrap'),
                c = document.getElementById('overlay');
            a.length && (a[0].remove());
            b && b.remove();
            c && c.remove();
        })
    },
    prev: function (c) {
        os.sceditor.updateOriginal();
        c.value = os.lang.loading;
        c.style.background = os.lang.color_c;
        if (0 != os.sceditor.val()) {
            var a, b, d;
            os.XML(os.serialize(os.form) + '&preview=Preview', os.url, function (e) {
                b = e.responseXML.getElementsByClassName('postbody')[0];
                a = document.createElement('div');
                a.style = 'background:#fff;left:15%;position:fixed;top:10%;width:70%;height:65%;overflow:auto;z-index:999;box-shadow:10px 10px 40px black;border-radius:3px;font-size:1.2em;padding:10px;font-family:Arial;text-shadow:0 1px 1px white;color:#666;';
                a.id = 'preview_content';
                a.innerHTML = os.previewHTML;
                os.overlay();
                document.body.appendChild(a);
                d = document.getElementById('preview_content');
                d.appendChild(b);
                os.fadeIn(b, 500);
                os.b_p.value = os.b_p_v;
                os.b_p.style.background = ''
            })
        } else(os.notice(os.lang.no_message), os.b_p.value = os.b_p_v, os.b_p.style.background = '');
    },
    post: function (f) {
        var c, h, a, d, b, v, i, x, y, z;
        h = os.action, os.sceditor.updateOriginal(), z = document.getElementsByClassName('new_ajax_post'), z.length && z[0].classList.remove('new_ajax_post'), os.sceditor.val().length > os.length_reply ? os.isPost && 0 != os.form.subject.value || os.isTheme ? (f.value = os.lang.button_send_reply, os.XML(os.serialize(os.form) + '&post=1&prevent_post=1', h, function (e) {
            for (x = e.responseXML, y = x.getElementById(os.phpbb2 ? 'page-body' : 'main'), a = y.innerHTML.indexOf(os.lang.success_reply), b = y.innerHTML.indexOf(os.lang.flood), v = x.getElementsByTagName('a'), i = 0; i < v.length; i++) /\/viewtopic/g.test(v[i].href) && (c = v[i].href, d = v[i].href.match(/(\d+)$/g)[0]);
            b > 0 ? (os.notice(os.lang.flood, os.lang.color_b), f.value = os.b_r_v) : y.innerHTML.indexOf(os.lang.newpost) > 0 ? os.XML(os.serialize(x.forms.posts), '/post', function () {
                0 > a ? os.notice(os.lang.error_reply) : (os.get(c, d), f.value = os.b_r_v)
            }) : 0 > a ? os.notice(os.lang.error_reply) : os.isTheme ? (os.get(c, d), f.value = os.b_r_v, os.notice(os.lang.wait_notice, os.lang.color_c)) : document.location.href = c
        })) : os.notice(os.lang.no_subject, os.lang.color_d) : os.notice(os.lang.words_reply, os.lang.color_d);
    },
    get: function (c, a) {
        var f, g, h, b, m, n, s, x;
        os.XML('', c, function (e) {
            x = e.responseXML;
            b = x.getElementsByClassName('post--' + a)[0];
            b.style.display = 'none';
            b.className += ' new_ajax_post';
            os.set_post(b);
            os.sceditor.val('');
            os.notice(os.lang.success_reply, os.lang.color_e);
        })
    },
    set_post: function (h) {
        var e = os.punbb ? document.getElementsByClassName('topic')[0] : os.phpbb2 ? document.getElementsByClassName('catBottom')[0].parentNode.previousElementSibling : os.phpbb3 ? document.getElementsByName('bottomtitle')[0].previousElementSibling : os.invision && document.getElementsByClassName('topic-footer')[0].previousElementSibling;
        os.punbb ? e.appendChild(h) : e.parentNode.insertBefore(h, e.nextSibling);
        os.fadeIn(h, 500);
    },
    XML: function (a, b, f) {
        var c;
        c = window.XMLHttpRequest ? new XMLHttpRequest : window.ActiveXObject && (new ActiveXObject('Microsoft.XMLHTTP'));
        'undefined' != typeof a ? c.open('POST', b) : c.open('GET', b, true);
        c.responseType = 'document';
        c.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        'undefined' != typeof a ? c.send(a) : c.send();
        c.onreadystatechange = function () {
            this.readyState == 4 && this.status == 200 && (f(this));
        };
    },
    serialize: function (b) {
        var a, i, j, l, s = [];
        if ('object' == typeof b && 'FORM' == b.nodeName) {
            l = b.elements.length;
            for (i = 0; l > i; i++)
                if (a = b.elements[i], a.name && !a.disabled && 'file' != a.type && 'reset' != a.type && 'submit' != a.type && 'button' != a.type)
                    if ('select-multiple' == a.type)
                        for (j = b.elements[i].options.length - 1; j >= 0; j--) a.options[j].selected && (s[s.length] = encodeURIComponent(a.name) + '=' + encodeURIComponent(a.options[j].value));
                    else('checkbox' != a.type && 'radio' != a.type || a.checked) && (s[s.length] = encodeURIComponent(a.name) + '=' + encodeURIComponent(a.value))
        }
        return s.join('&').replace(/%20/g, '+');
    },
    fadeIn: function (a, b) {
        var e, d;
        if (!a) return;
        a.style.opacity = 0, a.style.filter = 'alpha(opacity=0)', a.style.display = '', a.style.visibility = 'visible',
            b ? (e = 0, d = setInterval(function () {
                e += 50 / b, e >= 1 && (clearInterval(d), e = 1), a.style.opacity = e, a.style.filter = 'alpha(opacity=' + e * 100 + ')'
            }, 50)) : (a.style.opacity = 1, a.style.filter = 'alpha(opacity=1)')
    },
    close: function (c) {
        var a = document.getElementById(c == 'delete' ? 'confirm_wrap' : 'preview_content'),
            b = document.getElementById('overlay');
        a.remove();
        b.remove();
    },
    scroll: function (c) {
        var t = os.form.offsetTop - 200,
            s = setInterval(function () {
                document.body.scrollTop < t ? document.body.scrollTop += 50 : clearInterval(s);
            }, c);
    },
    post_number: function (c) {
        return c.match(/[\p\=](\w+)(?=\&)/)[1]
    },
};
$(function () {
    $(function () {
        (document.getElementById('logout') && /\/t\d+/g.test(window.location.pathname) || /\/post/.test(window.location.pathname)) && os.init()
    });
});

Smile


Last edited by Admin on Wed Oct 26, 2016 11:01 am; edited 1 time in total
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Tue Oct 25, 2016 10:38 pm
Smile


Last edited by Admin on Wed Oct 26, 2016 11:07 am; edited 1 time in total
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Tue Oct 25, 2016 10:39 pm
22:39:14
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Tue Oct 25, 2016 10:39 pm
Admin wrote:The Bible - Honey Be Good (Vinyl, 12") 1989  Giphy
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 6:41 am
06:41:05

ok
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 10:57 am
06:41:05

ok

ok

Smile
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 11:46 am
Admin wrote:
Code:
console.log('//-----Written by Chalo ------- Open Source 2014-2016 -----//');
console.log('//------------ http://www.opensourcephpbb3.com ------------//');
console.log('//--------------------- Version: 1.1 ----------------------//');
console.log('//Reply, preview, quote, delete and more, without reload   //');
var os = {
    lang: {
        success_reply: 'Your message has been entered successfully', // <--- change this text exactly like is display in your language board
        flood: 'Flood control is active on this forum, please wait 10 second(s) before replying or posting',
        newpost: 'A new message has been posted',
        error_reply: 'Try again',
        words_reply: 'You need 5 letters at least',
        button_send_reply: 'Send data...',
        notice_original: 'No predefined text',
        no_message: 'There is nothing written in the editor',
        no_subject: 'You must specify a subject for your message.',
        placeholder: 'write something here...',
        main_delete: 'Do you want delete the post #',
        delete_yes: 'Delete',
        delete_cancel: 'Cancel',
        loading: 'Loading...',
        wait_notice: 'Please be patient, sending data to the server',
        color_a: 'linear-gradient(to bottom, #febbbb 0%,#fe9090 45%,#ff5c5c 100%)',
        color_b: 'linear-gradient(to bottom, #ffaf4b 0%,#ff920a 100%)',
        color_c: 'linear-gradient(to bottom, #87e0fd 0%,#53cbf1 40%,#05abe0 100%)',
        color_d: 'linear-gradient(to bottom, #ff3019 0%,#cf0404 100%)',
        color_e: 'linear-gradient(to bottom, #d2ff52 0%,#91e842 100%)'
    },
    length_reply: 5, //min letters in the textarea before reply
    time: 3000,
    previewHTML: '<div id="preview_content"><a id="close" style="float:right;cursor:pointer;" onclick="os.close(\'preview\')"><img src="http://2img.net/i/fa/prosilver/icon_post_delete.gif"></a></div>',
    delete_style: '#confirm_content { color: #fff; margin-bottom: 7px; padding-bottom: 5px; font-size: 30px}#confirm > div { display: inline-block; padding: 4px 12px; margin-bottom: 0; font-size: 12px; line-height: 20px; color: #333; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); vertical-align: middle; cursor: pointer; text-decoration: none!important;}#yes { color: #fff!important; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; background-image: linear-gradient(to bottom, #62c462, #51a351)!important; background-repeat: repeat-x; border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)!important;}#cancel { margin-left: 5px; color: #fff!important; background: linear-gradient(to bottom, #db5530 5%, #db1f1f 100%)!important; background-color: #db5530; text-shadow: 0 1px 0 #854629;}',
    init: function () {
        os.isTheme = /\/t\d+/g.test(window.location.pathname);
        os.isPost = /\/post/.test(window.location.pathname);
        os.phpbb2 = document.getElementsByClassName('bodylinewidth').length;
        os.phpbb3 = document.getElementById('phpbb');
        os.invision = document.getElementById('ipbwrapper');
        os.punbb = document.getElementById('pun-intro');
        os.form = document.forms.post;
        os.b_r = os.form.post;
        os.b_r_v = os.form.post.value;
        os.textarea = os.form.message;
        os.action = os.form.action;
        os.b_p = os.form.preview;
        os.b_p_v = os.b_p.value;
        os.url = os.isTheme ? '/post?t=' + os.form.t.value + '&mode=reply' : os.isPost && document.location.href;
        os.sceditor = $(os.textarea).sceditor('instance');
        os.b_p.setAttribute('onclick', 'os.prev(this);return false');
        os.b_r.setAttribute('onclick', 'os.post(this);return false');
        os.a = document.getElementsByTagName('a');
        os.form.getElementsByTagName('textarea')[1].placeholder = os.lang.placeholder;
        for (var i = 0; i < os.a.length; i++) {
            /(?!\&(mode)\=)(quote)/.test(os.a[i].href) && os.a[i].setAttribute('onclick', 'os.quote(this);return false');
            /(?!\&(mode)\=)(delete)/.test(os.a[i].href) && os.a[i].setAttribute('onclick', 'os.set_delete(this);return false');
        }
    },
    notice: function (c, f) {
        var a, b, d, e, g;
        g = document.getElementsByClassName('notice_reply');
        b = document.getElementsByClassName('sceditor-group')[0];
        d = b.parentNode;
        a = !g.length ? document.createElement('DIV') : g[0];
        e = 'height:20px;line-height: 1.5;border-radius: 3px; text-shadow: 0 1px rgba(255, 255, 255, 0.46);text-align:center';
        !g.length && (a.classList.add('notice_reply'), a.setAttribute('style', e), d.insertBefore(a, b));
        a.style.display = 'block';
        a.innerHTML = 'undefined' == typeof c ? os.lang.notice_original : c;
        a.style.background = 'undefined' == typeof f ? os.lang.color_a : f;
        setTimeout(function () {
            a.style.display == 'block' && (a.style.display = 'none')
        }, os.time)
    },
    quote: function (c) {
        os.XML('', c.href, function (e) {
            var x = e.responseXML,
                f = x.forms.post.message.value;
            os.sceditor.val(f);
            os.scroll(5);
        })
    },
    overlay: function () {
        var a = document.createElement('div');
        a.style = 'display:block;position:fixed;top:0;left:0;min-height:101%;width:100%;background-color:rgba(0, 0, 0, .4);z-index:999;color:#fff;';
        a.id = 'overlay';
        document.body.appendChild(a);
    },
    set_delete: function (f) {
        var d, b, c;
        b = document.createElement('div');
        c = document.createElement('style');
        b.innerHTML = '<div id="confirm_content">' + os.lang.main_delete + os.post_number(f.href) + '?' + '</div><div id="confirm"><div id="yes" onclick="os.delete(\'' + f.href + '\')">' + os.lang.delete_yes + '</div><div id="cancel" onclick="os.close(\'delete\')">' + os.lang.delete_cancel + '</div></div>';
        b.id = 'confirm_wrap';
        b.style = 'display: inline-block; vertical-align: top; width: auto; text-align: center; z-index: 9999; padding: 7px 13px; position: fixed; top: 35%; left: 30%';
        os.overlay();
        document.body.appendChild(b);
        c.innerHTML = os.delete_style;
        c.type = 'text/css';
        c.id = 'd_style';
        !document.getElementById('d_style') && document.head.appendChild(c);
        d = document.getElementById('yes');
    },
    delete: function (f) {
        os.XML('&confirm=1', f, function (e) {
            var a = document.getElementsByClassName('post--' + os.post_number(f)),
                b = document.getElementById('confirm_wrap'),
                c = document.getElementById('overlay');
            a.length && (a[0].remove());
            b && b.remove();
            c && c.remove();
        })
    },
    prev: function (c) {
        os.sceditor.updateOriginal();
        c.value = os.lang.loading;
        c.style.background = os.lang.color_c;
        if (0 != os.sceditor.val()) {
            var a, b, d;
            os.XML(os.serialize(os.form) + '&preview=Preview', os.url, function (e) {
                b = e.responseXML.getElementsByClassName('postbody')[0];
                a = document.createElement('div');
                a.style = 'background:#fff;left:15%;position:fixed;top:10%;width:70%;height:65%;overflow:auto;z-index:999;box-shadow:10px 10px 40px black;border-radius:3px;font-size:1.2em;padding:10px;font-family:Arial;text-shadow:0 1px 1px white;color:#666;';
                a.id = 'preview_content';
                a.innerHTML = os.previewHTML;
                os.overlay();
                document.body.appendChild(a);
                d = document.getElementById('preview_content');
                d.appendChild(b);
                os.fadeIn(b, 500);
                os.b_p.value = os.b_p_v;
                os.b_p.style.background = ''
            })
        } else(os.notice(os.lang.no_message), os.b_p.value = os.b_p_v, os.b_p.style.background = '');
    },
    post: function (f) {
        var c, h, a, d, b, v, i, x, y, z;
        h = os.action, os.sceditor.updateOriginal(), z = document.getElementsByClassName('new_ajax_post'), z.length && z[0].classList.remove('new_ajax_post'), os.sceditor.val().length > os.length_reply ? os.isPost && 0 != os.form.subject.value || os.isTheme ? (f.value = os.lang.button_send_reply, os.XML(os.serialize(os.form) + '&post=1&prevent_post=1', h, function (e) {
            for (x = e.responseXML, y = x.getElementById(os.phpbb2 ? 'page-body' : 'main'), a = y.innerHTML.indexOf(os.lang.success_reply), b = y.innerHTML.indexOf(os.lang.flood), v = x.getElementsByTagName('a'), i = 0; i < v.length; i++) /\/viewtopic/g.test(v[i].href) && (c = v[i].href, d = v[i].href.match(/(\d+)$/g)[0]);
            b > 0 ? (os.notice(os.lang.flood, os.lang.color_b), f.value = os.b_r_v) : y.innerHTML.indexOf(os.lang.newpost) > 0 ? os.XML(os.serialize(x.forms.posts), '/post', function () {
                0 > a ? os.notice(os.lang.error_reply) : (os.get(c, d), f.value = os.b_r_v)
            }) : 0 > a ? os.notice(os.lang.error_reply) : os.isTheme ? (os.get(c, d), f.value = os.b_r_v, os.notice(os.lang.wait_notice, os.lang.color_c)) : document.location.href = c
        })) : os.notice(os.lang.no_subject, os.lang.color_d) : os.notice(os.lang.words_reply, os.lang.color_d);
    },
    get: function (c, a) {
        var f, g, h, b, m, n, s, x;
        os.XML('', c, function (e) {
            x = e.responseXML;
            b = x.getElementsByClassName('post--' + a)[0];
            b.style.display = 'none';
            b.className += ' new_ajax_post';
            os.set_post(b);
            os.sceditor.val('');
            os.notice(os.lang.success_reply, os.lang.color_e);
        })
    },
    set_post: function (h) {
        var e = os.punbb ? document.getElementsByClassName('topic')[0] : os.phpbb2 ? document.getElementsByClassName('catBottom')[0].parentNode.previousElementSibling : os.phpbb3 ? document.getElementsByName('bottomtitle')[0].previousElementSibling : os.invision && document.getElementsByClassName('topic-footer')[0].previousElementSibling;
        os.punbb ? e.appendChild(h) : e.parentNode.insertBefore(h, e.nextSibling);
        os.fadeIn(h, 500);
    },
    XML: function (a, b, f) {
        var c;
        c = window.XMLHttpRequest ? new XMLHttpRequest : window.ActiveXObject && (new ActiveXObject('Microsoft.XMLHTTP'));
        'undefined' != typeof a ? c.open('POST', b) : c.open('GET', b, true);
        c.responseType = 'document';
        c.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        'undefined' != typeof a ? c.send(a) : c.send();
        c.onreadystatechange = function () {
            this.readyState == 4 && this.status == 200 && (f(this));
        };
    },
    serialize: function (b) {
        var a, i, j, l, s = [];
        if ('object' == typeof b && 'FORM' == b.nodeName) {
            l = b.elements.length;
            for (i = 0; l > i; i++)
                if (a = b.elements[i], a.name && !a.disabled && 'file' != a.type && 'reset' != a.type && 'submit' != a.type && 'button' != a.type)
                    if ('select-multiple' == a.type)
                        for (j = b.elements[i].options.length - 1; j >= 0; j--) a.options[j].selected && (s[s.length] = encodeURIComponent(a.name) + '=' + encodeURIComponent(a.options[j].value));
                    else('checkbox' != a.type && 'radio' != a.type || a.checked) && (s[s.length] = encodeURIComponent(a.name) + '=' + encodeURIComponent(a.value))
        }
        return s.join('&').replace(/%20/g, '+');
    },
    fadeIn: function (a, b) {
        var e, d;
        if (!a) return;
        a.style.opacity = 0, a.style.filter = 'alpha(opacity=0)', a.style.display = '', a.style.visibility = 'visible',
            b ? (e = 0, d = setInterval(function () {
                e += 50 / b, e >= 1 && (clearInterval(d), e = 1), a.style.opacity = e, a.style.filter = 'alpha(opacity=' + e * 100 + ')'
            }, 50)) : (a.style.opacity = 1, a.style.filter = 'alpha(opacity=1)')
    },
    close: function (c) {
        var a = document.getElementById(c == 'delete' ? 'confirm_wrap' : 'preview_content'),
            b = document.getElementById('overlay');
        a.remove();
        b.remove();
    },
    scroll: function (c) {
        var t = os.form.offsetTop - 200,
            s = setInterval(function () {
                document.body.scrollTop < t ? document.body.scrollTop += 50 : clearInterval(s);
            }, c);
    },
    post_number: function (c) {
        return c.match(/[\p\=](\w+)(?=\&)/)[1]
    },
};
$(function () {
    $(function () {
        (document.getElementById('logout') && /\/t\d+/g.test(window.location.pathname) || /\/post/.test(window.location.pathname)) && os.init()
    });
});

Smile
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 11:47 am
06:41:05

ok

ok

Smile

Test
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 11:54 am
11:54:51
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 12:00 pm
06:41:05

ok

ok

Smile

12:00:36

Test
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 12:02 pm
06:41:05

ok

ok


12:00:36

Test
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 12:29 pm
12:29:14
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 3:40 pm
15:39:06
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 3:41 pm
Admin wrote:06:41:05

ok

ok

Smile

12:00:36

Test
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 3:49 pm
Admin wrote:
Admin wrote:06:41:05

ok

ok

Smile

12:00:36

Test
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 3:54 pm
15:52:57
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 4:04 pm
16:04:15
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Wed Oct 26, 2016 4:09 pm
26.10.2016
Sponsored content

The Bible - Honey Be Good (Vinyl, 12") 1989  Empty Re: The Bible - Honey Be Good (Vinyl, 12") 1989

Back to top
Permissions in this forum:
You cannot reply to topics in this forum