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
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 7:04 am
Message reputation : 100% (1 vote)
Admin wrote:
Admin wrote:
Admin wrote:22:25:15

fvfdbddbdd
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 9:24 am
Message reputation : 100% (1 vote)
Admin wrote:15:34:18

Smile
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 9:32 am
Message reputation : 100% (1 vote)
11.03.201611.03.201611.03.201611.03.2016
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 9:37 am
Message reputation : 100% (1 vote)
09:37:0509:37:0509:37:0509:37:05

XD

Edited
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 9:43 am
Message reputation : 100% (1 vote)
Admin wrote:20:25:18

:u
avatar
chalo
Mensajes : 59
Puntos : 129
Reputación : 68
Fecha de inscripción : 2016-10-31

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 9:46 am
Message reputation : 100% (1 vote)
09:46:3709:46:3709:46:3709:46:37

Smile

ok

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

Probando :) - Page 13 Empty test ok ok ok ok

Thu Nov 03, 2016 1:24 pm
chalo wrote:09:37:0509:37:0509:37:0509:37:05


Last edited by Admin on Tue Nov 15, 2016 10:18 pm; edited 2 times in total
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 6:59 pm
chalo wrote:
Admin wrote:20:25:18

Smile


Last edited by Admin on Tue Nov 15, 2016 10:15 pm; 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

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 7:10 pm
19:10:0019:10:0019:10:0019:10:0119:10:0119:10:0119:10:01
Smile

XD


Last edited by Admin on Tue Nov 15, 2016 9:25 pm; edited 2 times in total
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 7:14 pm
Admin wrote:19:13:4719:13:4719:13:4719:13:4819:13:4819:13:4819:13:48
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty ok ok ok

Thu Nov 03, 2016 9:57 pm
Code:
console.log('//-----Written by Chalo ------- Open Source 2014-2016 -----//');
console.log('//------------ http://www.opensourcephpbb3.com ------------//');
console.log('//--------------------- Version: 1.5.1---------------------//');
console.log('//Reply, preview, quote, delete and more, without reload   //');
var _ = {
    config: {
        beroreunload: 1,
        edit: 1,
        quote: 1,
        delete: 1,
        preview: 1,
        reply: 1,
        vote: 1,
        vote_img: 'http://i97.servimg.com/u/f97/19/54/65/02/th/68691610.png',
        placeholder: 1,
        letters: 5, //min words in the textarea before reply
        time: 3000,
        speed: 400,
        color_a: 'linear-gradient(to bottom, #ffff88 0%,#ffff88 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%)'
    },
    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',
        reply_words: 'You must write ',
        reply_btn_send: 'Send data...',
        notice_default: 'No predefined text',
        no_message: 'There is nothing written in the editor',
        no_subject: 'You must specify a subject for your message.',
        pm_error_a: 'You must specify a username to whom to send this message.',
        pm_error_b: 'This or these user(s) do not exist',
        pm_error_c: 'You cannot make another post so soon after your last',
        pm_success: 'Your message has been sent',
        placeholder: 'write something here...',
        edit_subject_placeholder: 'The length of the title for this topic must be ranging between 10 and 255 characters',
        delete_main: 'Do you want delete the post #',
        delete_yes: 'Delete',
        delete_cancel: 'Cancel',
        edit_mode: 'Editing post #',
        quote_mode: 'Quoting post #',
        loading: 'Loading...',
        save: 'Save',
        notice_wait: 'Please be patient, sending data to the server',
        vote: 'like'
    },
    pH: '<div id="preview_content"><a id="close" style="float:right;cursor:pointer;" onclick="_.cL(\'preview\')"><img src="http://2img.net/i/fa/prosilver/icon_post_delete.gif"></a></div>',
    dSt: '#confirm_content { color: #fff; margin-bottom: 7px; padding-bottom: 5px; font-size: 30px}#confirm >a { 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 () {
        _.isTheme = /\/t\d+/g.test(window.location.pathname);
        _.isPost = /\/post\?f=(\d+)&mode=(newtopic)/.test(window.location.href);
        _.isEditPost = /\/post\?p=(\d+)&mode=(editpost)/.test(window.location.href);
        _.isMP = /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href);
        _.phpbb2 = _.gE('.bodylinewidth').length;
        _.phpbb3 = _.gE('#phpbb');
        _.invision = _.gE('#ipbwrapper');
        _.punbb = _.gE('#pun-intro');
        _.subject = _.isTheme && _.gE('h1')[0].textContent;
        _.body = _.gE('body');
        _.form = _.gE('forms').post;
        _.b_r = _.form.post;
        _.b_r_v = _.form.post.value;
        _.textarea = _.form.message;
        _.text_a = _.gE('textarea', _.form)[1];
        _.action = _.form.action;
        _.group = _.gE('.sceditor-group')[0];
        _.rC = _.gE('.sceditor-resize-cover')[0];
        _.fa = _.gE('#fa_toolbar');
        _.b_p = _.form.preview;
        _.b_p_v = _.b_p.value;
        _.url = _.isTheme ? '/post?t=' + _.form.t.value + '&mode=reply' : _.isPost && document.location.href;
        _.sceditor = $(_.textarea).sceditor('instance');
        _.content = _.punbb ? '.entry-content' : _.phpbb3 ? '.content' : _.invision ? '.post-entry' : _.phpbb2 && '.postbody';
        _.a = _.gE('a');
        _.config.placeholder == 1 && (_.text_a.placeholder = _.lang.placeholder);
        _.config.beroreunload == 1 && _.bU();
        _.config.vote == 1 && _.sV();
        _.se();
        _.sB(_.a);
    },
    sB: function (a) {
        var b = '_.g(this, \'quote\');return false',
            c = '_.sD(this);return false',
            d = '_.g(this,\'edit\');return false',
            e = '_.p(this, \'preview\');return false',
            f = _.isMP ? '_.p(this, \'mp\');return false' : '_.p(this, \'reply\');return false',
            i;
        for (i = 0; i < a.length; i++) {
            _.config.quote == 1 && /(?!\&(mode)\=)(quote)/.test(a[i].href) && a[i].setAttribute('onclick', b);
            _.config.delete == 1 && /(?!\&(mode)\=)(delete)/.test(a[i].href) && a[i].setAttribute('onclick', c);
            _.config.edit == 1 && /(?!\&(mode)\=)(edit)/.test(a[i].href) && a[i].setAttribute('onclick', d);
        }
        _.config.preview == 1 && _.b_p.setAttribute('onclick', e);
        _.config.reply == 1 && _.b_r.setAttribute('onclick', f);
    },
    tC: function (c) {
        return _.punbb || _.phpbb3 ? _.gE('a', _.gE('h2', c)[0])[0] : _.invision ? _.gE('a', _.gE('h3', c)[0])[0] : _.phpbb2 && _.gE('.postdetails', c)[1].childNodes[1]
    },
    iT: function (c) {
        insertIntoEditor(c + '\n')
    },
    g: function (c, d) {
        _.url_universal = 'undefined' != typeof c.href ? c.href : c;
        var a = _.url_universal.match(/(?!\/post\?p=(\w+)\&mode=)(editpost|quote|vote)|viewtopic/)[0],
            b = _.p_number(_.url_universal),
            f, g, h, i, j, k, l, n, o, q, t, u, x,
            m = _.gE('.post--' + b);
        _.XML('', _.url_universal, function (e) {
            x = e.responseXML;
            f = a != 'vote' && x.forms.post.message.value;
            switch (a) {
            case 'editpost':
                _.sT(m[0], {
                    border: '1px solid orange!important'
                });
                g = _.cl('input', {
                    className: 'inputbox medium edit_subject',
                    placeholder: _.lang.edit_subject_placeholder,
                    name: 'subject',
                    value: x.forms.post.subject.value,
                    style: {
                        display: 'table',
                        margin: '0 auto',
                        width: '99%',
                        marginBottom: '5px'
                    }
                });
                !_.gE('.edit_subject').length && _.group.parentNode.insertBefore(g, _.group);
                _.edit_subject = _.gE('.edit_subject')[0];
                _.edit_subject.val = _.edit_subject.value;
                _.sceditor.val(f);
                _.b_r.setAttribute('onclick', '_.p(this, \'edit\');return false');
                _.edit_number = b;
                _.b_r.value = _.lang.save;
                _.nT(_.lang.edit_mode + b, _.config.color_b, 'false');
                _.sC(_.form, _.config.speed);
                break;
            case 'quote':
                _.sC(_.form, _.config.speed);
                _.iT(f);
                _.nT(_.lang.quote_mode + b, _.config.color_a, 'false');
                break;
            case 'viewtopic':
                k = _.gE('.post--' + b, x)[0];
                k.style.display = 'none';
                k.className += ' new_ajax_post';
                j = m[0];
                'reply' == d && (_.sB(_.gE('a', k)), _.sP(k));
                'edit' == d && (t = _.gE(_.content, k), u = t[0].innerHTML, _.gE(_.content, j)[0].innerHTML = u,
                    _.edit_subject.val != _.edit_subject.value && (_.tC(m[0]).textContent = _.edit_subject.value), _.edit_subject.remove(), _.b_r.setAttribute('onclick', '_.p(this, \'reply\');return false'), _.fI(j, 500), _.sC(j, _.config.speed));
                _.sceditor.val('');
                _.nT(_.lang.success_reply, _.config.color_e, 'true');
                break;
            case 'vote':
                i = _.gE('span', c.parentNode);
                o = parseInt(i[0].innerHTML) + parseInt(1);
                i.length && (i[0].innerHTML = o + ' ' + _.lang.vote + (o == 1 ? '' : 's'));
                _.gE('img', c)[0].style.opacity = '.3';
                c.removeAttribute('onclick');
                c.removeAttribute('href');
                break;
            }
        })
    },
    p: function (f, m) {
        var a, b, c, d, g, h, i, j, k, l, n, o, p, q, r, s, t, u, v, w, x, y, w;
        console.log(m);
        clearInterval(a);
        n = 'edit' == m && encodeURIComponent(_.sceditor.val());
        x = 'edit' == m && encodeURIComponent(_.edit_subject.value);
        _.url_post = m == 'delete' ? f.href : _.form.action;
        _.uritexto = 'reply' == m || 'mp' == m ? _.sZ(_.form) + '&post=1&prevent_post=1' : 'preview' == m ? _.sZ(_.form) + '&preview=Preview' : 'delete' == m ? '&confirm=1' : '&subject=' + x + '&message=' + n + '&mode=editpost&p=' + _.edit_number + '&notify=on&&post=1&prevent_post=1';
        k = _.gE('.new_ajax_post');
        k.length && k[0].classList.remove('new_ajax_post');
        y = _.sceditor.val();
        if (y.length > 0 && y.match(/\w{2,}\b/g).length >= _.config.letters || 'delete' == m) {
            if ((_.isPost || _.isMP) && (_.form.subject && _.form.subject.value.length >= 10) || m == 'preview' || _.isEditPost || _.isTheme) {
                'delete' != m && (f.value = 'preview' == m ? _.lang.loading : _.lang.reply_btn_send, _.oC(_.lang.loading), 'preview' == m ? _.cl(_.b_p, {
                    style: {
                        color: '#fff',
                        background: _.config.color_d
                    }
                }) : _.cl(_.b_r, {
                    style: {
                        color: '#fff',
                        background: _.config.color_d
                    }
                }));
                _.XML(_.uritexto, _.url_post, function (e) {
                    h = e.responseXML;
                    j = _.gE(_.phpbb2 ? '#page-body' : '#main', h);
                    o = _.gE('.postbody', h)[0];
                    t = j.innerHTML;
                    a = t.indexOf(_.lang.success_reply);
                    b = t.indexOf(_.lang.flood);
                    l = t.indexOf(_.lang.newpost);
                    s = t.indexOf(_.lang.pm_error_b);
                    u = t.indexOf(_.lang.pm_error_c);
                    v = t.indexOf(_.lang.pm_success);
                    w = t.indexOf(_.lang.pm_error_a);
                    if (/mp/.test(m)) {
                        if (w > 0) {
                            _.nT(_.lang.pm_error_a, _.config.color_c, 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else if (s > 0) {
                            _.nT(_.lang.pm_error_b, _.config.color_c, 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else if (u > 0) {
                            _.nT(_.lang.pm_error_c, _.config.color_c, 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else if (v > 0) {
                            _.sceditor.val('');
                            _.rF(_.b_r, _.b_r_v);
                            setTimeout(function () {
                                document.location.href = '/privmsg?folder=inbox'
                            }, 2e3)
                        }
                    } else if (/(reply|edit)/.test(m)) {
                        _.vT(h);
                        c = _.view_url;
                        _.sT(_.b_r, {
                            color: '#fff',
                            background: _.config.color_d
                        });
                        if (b > 0) {
                            _.nT(_.lang.flood, _.config.color_b, 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else if (l > 0) {
                            _.nT(_.lang.newpost, _.config.color_b, 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else if (0 > a) {
                            _.nT(_.lang.error_reply, '', 'true');
                            _.rF(_.b_r, _.b_r_v);
                        } else {
                            if (_.isTheme) {
                                'undefined' != typeof c && _.g(c, m);
                                _.nT(_.lang.notice_wait, _.config.color_c, 'true');
                                _.rF(_.b_r, _.b_r_v);
                            } else {
                                _.oL(_.lang.loading);
                                _.sceditor.val('');
                                setTimeout(function () {
                                    document.location.href = c
                                }, 2e3);
                                _.rF(_.b_r, _.b_r_v);
                            }
                        };
                    } else if (/preview/.test(m)) {
                        _.cP();
                        p = _.gE('#preview_content');
                        p.appendChild(o);
                        _.fI(o, 500);
                        _.b_p.value = _.b_p_v;
                        _.b_p.style.cssText = ''
                    } else if (/delete/.test(m)) {
                        d = _.gE('.post--' + _.p_number(_.url_post));
                        r = _.gE('#confirm_wrap');
                        q = _.gE('#overlay');
                        d.length && (_.phpbb2 ? (_.fO(d[0].nextElementSibling, 500), _.fO(d[0], 500)) : _.fO(d[0], 500));
                        r && r.remove();
                        q && q.remove();
                    }
                })
            } else {
                _.nT(_.lang.no_subject, _.config.color_d, 'true');
                _.rF(_.b_r, _.b_r_v);
                _.b_r.removeAttribute('style');
            }
        } else {
            w = y.length > 0 && y.match(/\w{2,}\b/g) != null ? (_.config.letters - y.match(/\w{2,}\b/g).length) : 5;
            _.nT(_.lang.reply_words + w + ' more word' + (w <= 1 ? '' : 's'), _.config.color_d, 'true');
            m == 'reply' ? _.rF(_.b_r, _.b_r_v) : _.rF(_.b_p, _.b_p_v);
        }
    },
    sV: function () {
        var i, a, b, c, d, e, f, g, j, m, o, p, l = _.config.vote_img,
            s = _.s,
            h = _.gE('.vote');
        for (i = 0; i < h.length; i++) {
            f = h[i];
            a = _.gE('.vote-button', f);
            b = a.length && _.gE('a', a[0])[0];
            c = _.gE('.vote-no-bar', f);
            d = _.gE('.vote-bar', f)[0];
            p = a.length && a[0].parentNode;
            _.nv = _.gE('.vote-bar', f).length && d.title.match(/(\d+)/g)[1];
            _.sT(f, {
                marginBottom: '20px',
                float: 'inherit',
                width: 'auto'
            });
            if (h[i].childNodes.length == 1) {
                _.cl(d, {
                    className: 'like',
                    innerHTML: '',
                    style: {
                        float: 'right',
                        display: 'inline-block',
                        lineHeight: '2'
                    }
                });
                g = _.cl('img', {
                    src: l,
                    style: {
                        opacity: '.3',
                        float: 'left'
                    }
                });
                m = _.cl('span', {
                    className: 'counter',
                    innerHTML: _.nv + ' ' + _.lang.vote + (_.nv == 1 ? '' : 's'),
                    style: {
                        marginLeft: '5px',
                        float: 'right'
                    }
                });
                d.appendChild(g);
                d.appendChild(m);
            } else {
                o = b;
                _.cl(o, {
                    className: 'like',
                    href: b.href,
                    onclick: '_.g(this,\'vote\');return false',
                    innerHTML: '',
                    style: {
                        float: 'right',
                        display: 'inline-block',
                        lineHeight: '2',
                        fontSize: '11px',
                    }
                });
                m = _.cl('img', {
                    src: l,
                });
                o.appendChild(m);
                e = _.cl('span', {
                    className: 'counter',
                    innerHTML: _.nv + ' ' + _.lang.vote + (_.nv == 1 ? '' : 's'),
                    style: {
                        marginLeft: '5px',
                        float: 'right'
                    }
                });
                o.appendChild(e);
                p.innerHTML = '';
                p.appendChild(o);
            }
        }
    },
    rF: function (c, d) {
        c.value = d;
        c.removeAttribute('style');
        _.oC(false);
    },
    oL: function (c) {
        var a = _.cl('div', {
            id: 'overlay',
            style: {
                fontFamily: 'arial',
                display: 'none',
                position: 'fixed',
                top: '0',
                left: '0',
                minHeight: '101%',
                width: '100%',
                backgroundColor: 'rgba(0, 0, 0, .4)',
                zIndex: '999',
                color: '#fff',
                fontSize: '45px',
                textAlign: 'center',
                lineHeight: '13'
            }
        });
        'undefined' != typeof c && (a.textContent = c);
        _.body.appendChild(a);
        _.fI(a, 500);
    },
    cP: function () {
        var m = _.cl('div', {
            id: 'preview_content',
            innerHTML: _.pH,
            style: {
                background: '#fff',
                left: '15%',
                position: 'fixed',
                top: '10%',
                width: '70%',
                height: '65%',
                overflow: 'auto',
                zIndex: '999',
                boxSshadow: '10px 10px 40px black',
                borderRradius: '3px',
                fontSize: '1.2em',
                padding: '10px',
                fontFamily: 'Arial',
                textShadow: '0 1px 1px white',
                color: '#666',
            }
        });
        _.oL();
        _.body.appendChild(m);
    },
    sD: function (f) {
        var d, e, a, b, c;
        a = _.cl('div', {
            id: 'confirm_wrap',
            style: {
                fontFamily: 'arial',
                display: ' inline-block',
                verticalAlign: 'top',
                width: 'auto',
                textAlign: 'center',
                zIndex: '9999',
                padding: '7px 13px',
                position: 'fixed',
                top: '35%',
                left: '30%'
            }
        });
        b = _.cl('div', {
            id: 'confirm_content',
            innerHTML: _.lang.delete_main + _.p_number(f.href)
        });
        c = _.cl('div', {
            id: 'confirm'
        });
        d = _.cl('a', {
            id: 'yes',
            className: 'yes',
            href: f.href,
            onclick: '_.p(this, \'delete\');return false',
            innerHTML: _.lang.delete_yes
        });
        e = _.cl('a', {
            id: 'cancel',
            onclick: '_.cL(\'delete\')',
            innerHTML: _.lang.delete_cancel
        });
        c.appendChild(d);
        c.appendChild(e);
        a.appendChild(b);
        a.appendChild(c);
        _.body.appendChild(a);
        _.oL();
        _.dS()
    },
    sP: function (h) {
        var e = _.punbb ? _.gE('.topic')[0] : _.phpbb2 ? _.gE('.catBottom')[0].parentNode.previousElementSibling : _.phpbb3 ? _.gE('*bottomtitle')[0].previousElementSibling : _.invision && _.gE('.topic-footer')[0].previousElementSibling;
        _.punbb ? e.appendChild(h) : e.parentNode.insertBefore(h, e.nextSibling);
        _.sC(h, _.config.speed);
        _.fI(h, 500);
    },
    dS: function () {
        var c = _.cl('style', {
            type: 'text/css',
            id: 'dStyle',
            innerHTML: _.dSt
        });
        !_.gE('#dStyle') && _.gE('head').appendChild(c);
    },
    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');
        c.send('undefined' != typeof a ? a : '');
        c.onreadystatechange = function () {
            this.readyState == 4 && this.status == 200 && (f(this));
        };
    },
    sZ: 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, '+');
    },
    nT: function (c, f, h) {
        var a, b, d, e, g, i;
        g = _.gE('.notice_reply');
        b = _.group;
        d = b.parentNode;
        i = _.cl('div', {
            className: 'notice_reply',
            style: {
                height: '20px',
                lineHeight: '1.5',
                borderRadius: '3px',
                textShadow: '0 1px rgba(255, 255, 255, 0.46)',
                textAlign: 'center'
            },
        });
        a = !g.length ? i : g[0];
        _.cl(a, {
            innerHTML: 'undefined' == typeof c ? _.lang.notice_default : c,
            style: {
                background: ('undefined' == typeof f || f == '') ? _.config.color_a : f
            }
        });
        !g.length && d.insertBefore(a, b);
        _.fI(a, 500);
        'false' != h && setTimeout(function () {
            '' == a.style.display && (_.fO(a, 500))
        }, _.config.time);
    },
    fI: function (a, b) {
        var e, d;
        if (!a) return;
        _.sT(a, {
                opacity: 0,
                filter: 'alpha(opacity=0)',
                display: '',
                visibility: 'visible'
            }),
            b ? (e = 0, d = setInterval(function () {
                e += 50 / b, e >= 1 && (clearInterval(d), e = 1), _.sT(a, {
                    opacity: e,
                    filter: 'alpha(opacity=' + e * 100 + ')',
                })
            }, 50)) : (_.sT(a, {
                opacity: '1',
                filter: 'alpha(opacity=1)'
            }))
    },
    fO: function (o, e) {
        if (o)
            if (e) var s = 1,
                t = setInterval(function () {
                    s -= 50 / e, s > 0 || (clearInterval(t), s = 0, _.sT(o, {
                        display: 'none',
                        visibility: 'hidden',
                    })), _.sT(o, {
                        opacity: s,
                        filter: 'alpha(opacity=' + 100 * s + ')'
                    })
                }, 50);
            else _.cl(o, {
                opacity: 0,
                filter: 'alpha(opacity=0)',
                display: 'none',
                visibility: 'hidden'
            })
    },
    cL: function (c) {
        var a = _.gE(c == 'delete' ? '#confirm_wrap' : '#preview_content'),
            b = _.gE('#overlay');
        _.fO(a, 500);
        _.fO(b, 500);
        setTimeout(function () {
            a.remove();
            b.remove();
        }, 600);
        _.rC.style.display = 'block' && (_.rC.style.display = 'none')
    },
    sC: function (o, e, t, s) {
        e = e || 500, s = s || window;
        var a = o.clientHeight < 150 ? o.clientHeight * 2 : o.clientHeight,
            n = s.scrollTop - a || window.pageYOffset - a;
        if ('number' == typeof o) var r = parseInt(o);
        else var r = _.gT(o, n);
        var l = Date.now(),
            i = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (o) {
                window.setTimeout(o, 15)
            },
            a = function () {
                var c = Date.now() - l;
                s !== window ? s.scrollTop = _.pS(n, r, c, e) : window.scroll(0, _.pS(n, r, c, e)), c > e ? 'function' == typeof t && t(o) : i(a)
            };
        a()
    },
    bU: function () {
        var a = _.sceditor;
        a && (window.onbeforeunload = function () {
            if (a.val().length) {
                return ''
            }
        });
    },
    eC: function (t) {
        return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
    },
    pS: function (o, e, s, r) {
        return o + (e - o) * _.eC(s / r)
    },
    gT: function (o, e) {
        return 'HTML' === o.nodeName ? -e : o.getBoundingClientRect().top + e
    },
    vT: function (h) {
        var i, g = _.gE('a', h);
        for (i = 0; i < g.length; i++) {
            /\/viewtopic/g.test(g[i].href) && (_.view_url = g[i].href)
        }
    },
    p_number: function (c) {
        return c.match(/viewtopic/) ? c.match(/(\w+)$/g)[0] : c.match(/[\p\=](\w+)(?=\&)/)[1]
    },
    cl: function (o, e) {
        var s = 1 == o.nodeType ? o : document.createElement(o);
        if (e) {
            for (var t in e) 'style' != t && (s[t] = e[t], 'onclick' == t && s.setAttribute(t, e[t]));
            e.style && _.sT(s, e.style)
        }
        return s
    },
    oC: function (c) {
        _.cl(_.rC, {
            innerHTML: c != false ? c : '',
            style: {
                display: c != false ? 'block' : 'none',
                color: '#fff',
                fontSize: '20px',
                lineHeight: '9'
            }
        })
    },
    sT: function (o, e) {
        if ('string' == typeof o && (o = _.gE(o)), o.style)
            for (var s in e) o.style[s] = e[s];
        return this
    },
    gE: function (o, e) {
        e = 'undefined' != typeof e ? e : document;
        switch (o.charAt(0).match(/\W/) ? o.charAt(0) : o) {
        case '#':
            return e.getElementById(o.substr(1));
        case '.':
            return e.getElementsByClassName(o.substr(1));
        case '*':
            return e.getElementsByName(o.substr(1));
        case 'body':
            return e.body;
        case 'head':
            return e.head;
        case 'forms':
            return e.forms;
        default:
            return e.getElementsByTagName(o)
        }
    },
    sE: function () {
        if (!$.sceditor || !toolbar) return;
        _.opts = $.sceditor.defaultOptions;
        _.opts.id = 'fm_sceditor';
        _.opts.autoUpdate = true;
        _.opts.autofocus = true;
        _.opts.autoExpand = true;
        _.opts.height = '400'
        toolbar = toolbar.replace(/source/, 'maximize,source');
    },
    se: function () {
        _.gE('.sceditor-button-maximize')[0].onclick = function () {
            if (!_.fa) return;
            _.sceditor.maximize() && (_.fa.style.display = 'none');
            !_.sceditor.maximize() && (_.fa.style.display = '');
        };
    }
};
$(function () {
    _.sE();
    $(function () {
        (document.getElementById('logout') && /\/t\d+/g.test(window.location.pathname) || /\/post/.test(window.location.pathname) || /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href)) && (_.init());
    });
});


Last edited by Admin on Thu Nov 17, 2016 10:57 am; edited 2 times in total
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 10:08 pm
03.11.201603.11.201603.11.201603.11.201603.11.201603.11.201603.11.2016
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 10:13 pm
22:12:5422:12:5422:12:5522:12:5522:12:5522:12:5622:12:56
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 10:13 pm
chalo wrote:09:37:0509:37:0509:37:0509:37:05
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 10:16 pm
chalo wrote:
Admin wrote:20:25:18
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Thu Nov 03, 2016 11:21 pm
Admin wrote:21:31:5221:31:5221:31:5221:31:5321:31:53

ok
Admin wrote:21:31:5221:31:5221:31:5221:31:5321:31:53

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

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 12:35 am
chalo wrote:09:46:3709:46:3709:46:3709:46:37
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 12:36 am
00:36:0100:36:0200:36:0200:36:0200:36:0200:36:02
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 12:37 am
Probando :) - Page 13 Giphy
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 12:37 am
Admin wrote:04.11.201604.11.201604.11.201604.11.2016
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 8:57 am
chalo wrote:09:37:0509:37:0509:37:0509:37:05
ok
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 9:18 am
Code:
console.log('//-----Written by Chalo ------- Open Source 2014-2016 -----//');
console.log('//------------ http://www.opensourcephpbb3.com ------------//');
console.log('//--------------------- Version: 1.5.1---------------------//');
console.log('//Reply, preview, quote, delete and more, without reload  //');
var _ = {
        config: {
            beroreunload: 1,
            edit: 1,
            quote: 1,
            delete: 1,
            preview: 1,
            reply: 1,
            vote: 1,
            vote_img: 'http://i97.servimg.com/u/f97/19/54/65/02/th/68691610.png',
            placeholder: 1,
            letters: 5, //min words in the textarea before reply
            time: 3000,
            speed: 400,
            color_a: 'linear-gradient(to bottom, #ffff88 0%,#ffff88 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%)',
            height: 300
        },
        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',
            reply_words: 'You must write ',
            reply_btn_send: 'Send data...',
            notice_default: 'No predefined text',
            no_message: 'There is nothing written in the editor',
            no_subject: 'You must specify a subject for your message.',
            pm_error_a: 'You must specify a username to whom to send this message.',
            pm_error_b: 'This or these user(s) do not exist',
            pm_error_c: 'You cannot make another post so soon after your last',
            pm_success: 'Your message has been sent',
            placeholder: 'write something here...',
            edit_subject_placeholder: 'The length of the title for this topic must be ranging between 10 and 255 characters',
            delete_main: 'Do you want delete the post #',
            delete_yes: 'Delete',
            delete_cancel: 'Cancel',
            edit_mode: 'Editing post #',
            quote_mode: 'Quoting post #',
            loading: 'Loading...',
            save: 'Save',
            notice_wait: 'Please be patient, sending data to the server',
            vote: 'like'
        },
        pH: '<div id="preview_content"><a id="close" style="float:right;cursor:pointer;" onclick="_.cL(\'preview\')"><img src="http://2img.net/i/fa/prosilver/icon_post_delete.gif"></a></div>',
        dSt: '#confirm_content { color: #fff; margin-bottom: 7px; padding-bottom: 5px; font-size: 30px}#confirm >a { 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 () {
            _.isTheme = /\/t\d+/g.test(window.location.pathname);
            _.isPost = /\/post\?f=(\d+)&mode=(newtopic)/.test(window.location.href);
            _.isEditPost = /\/post\?p=(\d+)&mode=(editpost)/.test(window.location.href);
            _.isMP = /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href);
            _.phpbb2 = _.e('.bodylinewidth').length;
            _.phpbb3 = _.e('#phpbb');
            _.invision = _.e('#ipbwrapper');
            _.punbb = _.e('#pun-intro');
            _.subject = _.isTheme && _.e('h1')[0].textContent;
            _.body = _.e('body');
            _.form = _.e('forms').post;
            _.b_r = _.form.post;
            _.b_r_v = _.form.post.value;
            _.textarea = _.form.message;
            _.text_a = _.e('textarea', _.form)[1];
            _.action = _.form.action;
            _.group = _.e('.sceditor-group')[0];
            _.rC = _.e('.sceditor-resize-cover')[0];
            _.fa = _.e('#fa_toolbar');
            _.b_p = _.form.preview;
            _.b_p_v = _.b_p.value;
            _.url = _.isTheme ? '/post?t=' + _.form.t.value + '&mode=reply' : _.isPost && document.location.href;
            _.sceditor = $(_.textarea).sceditor('instance');
            _.content = _.punbb ? '.entry-content' : _.phpbb3 ? '.content' : _.invision ? '.post-entry' : _.phpbb2 && '.postbody';
            _.a = _.e('a');
            _.config.placeholder == 1 && (_.text_a.placeholder = _.lang.placeholder);
            _.config.beroreunload == 1 && _.bU();
            _.config.vote == 1 && _.sV();
            _.se();
            _.sB(_.a);
            _.isTheme && _.sceditor.height(_.config.height);
        },
        sB: function (a) {
            var b = '_.g(this, \'quote\');return false',
                c = '_.sD(this);return false',
                d = '_.g(this,\'edit\');return false',
                e = '_.p(this, \'preview\');return false',
                f = _.isMP ? '_.p(this, \'mp\');return false' : '_.p(this, \'reply\');return false',
                i;
            for (i = 0; i < a.length; i++) {
                _.config.quote == 1 && /(?!\&(mode)\=)(quote)/.test(a[i].href) && a[i].setAttribute('onclick', b);
                _.config.delete == 1 && /(?!\&(mode)\=)(delete)/.test(a[i].href) && a[i].setAttribute('onclick', c);
                _.config.edit == 1 && /(?!\&(mode)\=)(edit)/.test(a[i].href) && a[i].setAttribute('onclick', d);
            }
            _.config.preview == 1 && _.b_p.setAttribute('onclick', e);
            _.config.reply == 1 && _.b_r.setAttribute('onclick', f);
        },
        tC: function (c) {
            return _.punbb || _.phpbb3 ? _.e('a', _.e('h2', c)[0])[0] : _.invision ? _.e('a', _.e('h3', c)[0])[0] : _.phpbb2 && _.e('.postdetails', c)[1].childNodes[1]
        },
        iT: function (c) {
            insertIntoEditor(c + '\n')
        },
        g: function (c, d) {
            _.url_universal = 'undefined' != typeof c.href ? c.href : c;
            var a = _.url_universal.match(/(?!\/post\?p=(\w+)\&mode=)(editpost|quote|vote)|viewtopic/)[0],
                b = _.pN(_.url_universal),
                f, g, h, i, j, k, l, m, n, o, q, t, u, x;
            m = _.e('.post--' + b);
            j = m[0];
           
            _.XML('', _.url_universal, function (e) {
                        x = e.responseXML;
                        f = a != 'vote' && x.forms.post.message.value;
                        switch (a) {
                        case 'editpost':
                            _.sT(j, {
                                border: '1px solid orange!important'
                            });
                            g = _.cl('input', {
                                className: 'inputbox medium edit_subject',
                                placeholder: _.lang.edit_subject_placeholder,
                                name: 'subject',
                                value: x.forms.post.subject.value,
                                style: {
                                    display: 'table',
                                    margin: '0 auto',
                                    width: '99%',
                                    marginBottom: '5px'
                                }
                            });
                            !_.e('.edit_subject').length && _.group.parentNode.insertBefore(g, _.group);
                            _.vSave = _.e('.vote', j).length &&( _.e('.vote', j)[0].innerHTML);
                            _.edit_subject = _.e('.edit_subject')[0];
                            _.edit_subject.val = _.edit_subject.value;
                            _.sceditor.val(f);
                            _.b_r.setAttribute('onclick', '_.p(this, \'edit\');return false');
                            _.edit_number = b;
                            _.b_r.value = _.lang.save;
                            _.nT(_.lang.edit_mode + b, _.config.color_b, 'false');
                            _.sC(_.form, _.config.speed);
                            break;
                        case 'quote':
                            _.sC(_.form, _.config.speed);
                            _.iT(f);
                            _.nT(_.lang.quote_mode + b, _.config.color_a, 'false');
                            break;
                        case 'viewtopic':
                            k = _.e('.post--' + b, x)[0];
                            k.style.display = 'none';
                            k.className += ' new_ajax_post';
                            'reply' == d && (_.sB(_.e('a', k)), _.sP(k));
                            'edit' == d && (t = _.e(_.content, k), u = t[0].innerHTML, _.e(_.content, j)[0].innerHTML = u, _.e('.vote', j).length && _.cl(_.e('.vote', j)[0], {
                                    innerHTML: _.vSave,
                                    style: {
                                        marginBottom: '20px',
                                        float: 'inherit',
                                        width: 'auto'
                                    }
                                }), _.edit_subject.val != _.edit_subject.value && (_.tC(j).textContent = _.edit_subject.value), _.edit_subject.remove(), _.b_r.setAttribute('onclick', '_.p(this, \'reply\');return false'), _.fI(j, 500), _.sC(j, _.config.speed));
                                _.sceditor.val('');
                                _.oC(false);
                                _.nT(_.lang.success_reply, _.config.color_e, 'true');
                                break;
                            case 'vote':
                                i = _.e('span', c.parentNode); o = parseInt(i[0].innerHTML) + parseInt(1); i.length && (i[0].innerHTML = o + ' ' + _.lang.vote + (o == 1 ? '' : 's')); _.e('img', c)[0].style.opacity = '.3'; c.removeAttribute('onclick'); c.removeAttribute('href');
                                break;
                            }
                        })
                },
                p: function (f, m) {
                    var a, b, c, d, g, h, i, j, k, l, n, o, p, q, r, s, t, u, v, w, x, y, w;
                    console.log(m);
                    clearInterval(a);
                    n = 'edit' == m && encodeURIComponent(_.sceditor.val());
                    x = 'edit' == m && encodeURIComponent(_.edit_subject.value);
                    _.url_post = m == 'delete' ? f.href : _.form.action;
                    _.uritexto = 'reply' == m || 'mp' == m ? _.sZ(_.form) + '&post=1&prevent_post=1' : 'preview' == m ? _.sZ(_.form) + '&preview=Preview' : 'delete' == m ? '&confirm=1' : '&subject=' + x + '&message=' + n + '&mode=editpost&p=' + _.edit_number + '&notify=on&&post=1&prevent_post=1';
                    k = _.e('.new_ajax_post');
                    k.length && k[0].classList.remove('new_ajax_post');
                    y = _.sceditor.val();
                    if (y.length > 0 && y.match(/\w{2,}\b/g).length >= _.config.letters || 'delete' == m) {
                        if ((_.isPost || _.isMP) && (_.form.subject && _.form.subject.value.length >= 10) || m == 'preview' || _.isEditPost || _.isTheme) {
                            'delete' != m && (f.value = 'preview' == m ? _.lang.loading : _.lang.reply_btn_send, _.oC(_.lang.loading), 'preview' == m ? _.cl(_.b_p, {
                                style: {
                                    color: '#fff',
                                    background: _.config.color_d
                                }
                            }) : _.cl(_.b_r, {
                                style: {
                                    color: '#fff',
                                    background: _.config.color_d
                                }
                            }));
                            _.XML(_.uritexto, _.url_post, function (e) {
                                h = e.responseXML;
                                j = _.e(_.phpbb2 ? '#page-body' : '#main', h);
                                o = _.e('.postbody', h)[0];
                                t = j.innerHTML;
                                a = t.indexOf(_.lang.success_reply);
                                b = t.indexOf(_.lang.flood);
                                l = t.indexOf(_.lang.newpost);
                                s = t.indexOf(_.lang.pm_error_b);
                                u = t.indexOf(_.lang.pm_error_c);
                                v = t.indexOf(_.lang.pm_success);
                                w = t.indexOf(_.lang.pm_error_a);
                                if (/mp/.test(m)) {
                                    if (w > 0) {
                                        _.nT(_.lang.pm_error_a, _.config.color_c, 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else if (s > 0) {
                                        _.nT(_.lang.pm_error_b, _.config.color_c, 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else if (u > 0) {
                                        _.nT(_.lang.pm_error_c, _.config.color_c, 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else if (v > 0) {
                                        _.sceditor.val('');
                                        _.rF(_.b_r, _.b_r_v);
                                        setTimeout(function () {
                                            document.location.href = '/privmsg?folder=inbox'
                                        }, 2e3)
                                    }
                                } else if (/(reply|edit)/.test(m)) {
                                    _.vT(h);
                                    c = _.view_url;
                                    _.sT(_.b_r, {
                                        color: '#fff',
                                        background: _.config.color_d
                                    });
                                    if (b > 0) {
                                        _.nT(_.lang.flood, _.config.color_b, 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else if (l > 0) {
                                        _.nT(_.lang.newpost, _.config.color_b, 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else if (0 > a) {
                                        _.nT(_.lang.error_reply, '', 'true');
                                        _.rF(_.b_r, _.b_r_v);
                                    } else {
                                        if (_.isTheme) {
                                            'undefined' != typeof c && _.g(c, m);
                                            _.nT(_.lang.notice_wait, _.config.color_c, 'true');
                                            _.rF(_.b_r, _.b_r_v);
                                        } else {
                                            _.oL(_.lang.loading);
                                            _.sceditor.val('');
                                            setTimeout(function () {
                                                document.location.href = c
                                            }, 2e3);
                                            _.rF(_.b_r, _.b_r_v);
                                        }
                                    };
                                } else if (/preview/.test(m)) {
                                    _.cP();
                                    p = _.e('#preview_content');
                                    p.appendChild(o);
                                    _.fI(o, 500);
                                    _.b_p.value = _.b_p_v;
                                    _.b_p.style.cssText = ''
                                } else if (/delete/.test(m)) {
                                    d = _.e('.post--' + _.pN(_.url_post));
                                    r = _.e('#confirm_wrap');
                                    q = _.e('#overlay');
                                    d.length && (_.phpbb2 ? (_.fO(d[0].nextElementSibling, 500), _.fO(d[0], 500)) : _.fO(d[0], 500));
                                    r && r.remove();
                                    q && q.remove();
                                }
                            })
                        } else {
                            _.nT(_.lang.no_subject, _.config.color_d, 'true');
                            _.rF(_.b_r, _.b_r_v);
                            _.b_r.removeAttribute('style');
                        }
                    } else {
                        w = y.length > 0 && y.match(/\w{2,}\b/g) != null ? (_.config.letters - y.match(/\w{2,}\b/g).length) : 5;
                        _.nT(_.lang.reply_words + w + ' more word' + (w <= 1 ? '' : 's'), _.config.color_d, 'true');
                        m == 'reply' ? _.rF(_.b_r, _.b_r_v) : _.rF(_.b_p, _.b_p_v);
                    }
                },
                sV: function () {
                    var i, a, b, c, d, e, f, g, j, m, o, p, l = _.config.vote_img,
                        s = _.s,
                        h = _.e('.vote');
                    for (i = 0; i < h.length; i++) {
                        f = h[i];
                        a = _.e('.vote-button', f);
                        b = a.length && _.e('a', a[0])[0];
                        c = _.e('.vote-no-bar', f);
                        d = _.e('.vote-bar', f)[0];
                        p = a.length && a[0].parentNode;
                        _.nv = _.e('.vote-bar', f).length && d.title.match(/(\d+)/g)[1];
                        _.sT(f, {
                            marginBottom: '20px',
                            float: 'inherit',
                            width: 'auto'
                        });
                        if (h[i].childNodes.length == 1) {
                            _.cl(d, {
                                className: 'like',
                                innerHTML: '',
                                style: {
                                    float: 'right',
                                    display: 'inline-block',
                                    lineHeight: '2'
                                }
                            });
                            g = _.cl('img', {
                                src: l,
                                style: {
                                    opacity: '.3',
                                    float: 'left'
                                }
                            });
                            m = _.cl('span', {
                                className: 'counter',
                                innerHTML: _.nv + ' ' + _.lang.vote + (_.nv == 1 ? '' : 's'),
                                style: {
                                    marginLeft: '5px',
                                    float: 'right'
                                }
                            });
                            d.appendChild(g);
                            d.appendChild(m);
                        } else {
                            o = b;
                            _.cl(o, {
                                className: 'like',
                                href: b.href,
                                onclick: '_.g(this,\'vote\');return false',
                                innerHTML: '',
                                style: {
                                    float: 'right',
                                    display: 'inline-block',
                                    lineHeight: '2',
                                    fontSize: '11px',
                                }
                            });
                            m = _.cl('img', {
                                src: l,
                            });
                            o.appendChild(m);
                            e = _.cl('span', {
                                className: 'counter',
                                innerHTML: _.nv + ' ' + _.lang.vote + (_.nv == 1 ? '' : 's'),
                                style: {
                                    marginLeft: '5px',
                                    float: 'right'
                                }
                            });
                            o.appendChild(e);
                            p.innerHTML = '';
                            p.appendChild(o);
                        }
                    }
                },
                rF: function (c, d) {
                    c.value = d;
                    c.removeAttribute('style');
                },
                oL: function (c) {
                    var a = _.cl('div', {
                        id: 'overlay',
                        style: {
                            fontFamily: 'arial',
                            display: 'none',
                            position: 'fixed',
                            top: '0',
                            left: '0',
                            minHeight: '101%',
                            width: '100%',
                            backgroundColor: 'rgba(0, 0, 0, .4)',
                            zIndex: '999',
                            color: '#fff',
                            fontSize: '45px',
                            textAlign: 'center',
                            lineHeight: '13'
                        }
                    });
                    'undefined' != typeof c && (a.textContent = c);
                    _.body.appendChild(a);
                    _.fI(a, 500);
                },
                cP: function () {
                    var m = _.cl('div', {
                        id: 'preview_content',
                        innerHTML: _.pH,
                        style: {
                            background: '#fff',
                            left: '15%',
                            position: 'fixed',
                            top: '10%',
                            width: '70%',
                            height: '65%',
                            overflow: 'auto',
                            zIndex: '999',
                            boxSshadow: '10px 10px 40px black',
                            borderRradius: '3px',
                            fontSize: '1.2em',
                            padding: '10px',
                            fontFamily: 'Arial',
                            textShadow: '0 1px 1px white',
                            color: '#666',
                        }
                    });
                    _.oL();
                    _.body.appendChild(m);
                },
                sD: function (f) {
                    var d, e, a, b, c;
                    a = _.cl('div', {
                        id: 'confirm_wrap',
                        style: {
                            fontFamily: 'arial',
                            display: ' inline-block',
                            verticalAlign: 'top',
                            width: 'auto',
                            textAlign: 'center',
                            zIndex: '9999',
                            padding: '7px 13px',
                            position: 'fixed',
                            top: '35%',
                            left: '30%'
                        }
                    });
                    b = _.cl('div', {
                        id: 'confirm_content',
                        innerHTML: _.lang.delete_main + _.pN(f.href)
                    });
                    c = _.cl('div', {
                        id: 'confirm'
                    });
                    d = _.cl('a', {
                        id: 'yes',
                        className: 'yes',
                        href: f.href,
                        onclick: '_.p(this, \'delete\');return false',
                        innerHTML: _.lang.delete_yes
                    });
                    e = _.cl('a', {
                        id: 'cancel',
                        onclick: '_.cL(\'delete\')',
                        innerHTML: _.lang.delete_cancel
                    });
                    c.appendChild(d);
                    c.appendChild(e);
                    a.appendChild(b);
                    a.appendChild(c);
                    _.body.appendChild(a);
                    _.oL();
                    _.dS()
                },
                sP: function (h) {
                    var e = _.punbb ? _.e('.topic')[0] : _.phpbb2 ? _.e('.catBottom')[0].parentNode.previousElementSibling : _.phpbb3 ? _.e('*bottomtitle')[0].previousElementSibling : _.invision && _.e('.topic-footer')[0].previousElementSibling;
                    _.punbb ? e.appendChild(h) : e.parentNode.insertBefore(h, e.nextSibling);
                    _.sC(h, _.config.speed);
                    _.fI(h, 500);
                },
                dS: function () {
                    var c = _.cl('style', {
                        type: 'text/css',
                        id: 'dStyle',
                        innerHTML: _.dSt
                    });
                    !_.e('#dStyle') && _.e('head').appendChild(c);
                },
                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');
                    c.send('undefined' != typeof a ? a : '');
                    c.onreadystatechange = function () {
                        this.readyState == 4 && this.status == 200 && (f(this));
                    };
                },
                sZ: 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, '+');
                },
                nT: function (c, f, h) {
                    var a, b, d, e, g, i;
                    g = _.e('.notice_reply');
                    b = _.group;
                    d = b.parentNode;
                    i = _.cl('div', {
                        className: 'notice_reply',
                        style: {
                            height: '20px',
                            lineHeight: '1.5',
                            borderRadius: '3px',
                            textShadow: '0 1px rgba(255, 255, 255, 0.46)',
                            textAlign: 'center'
                        },
                    });
                    a = !g.length ? i : g[0];
                    _.cl(a, {
                        innerHTML: 'undefined' == typeof c ? _.lang.notice_default : c,
                        style: {
                            background: ('undefined' == typeof f || f == '') ? _.config.color_a : f
                        }
                    });
                    !g.length && d.insertBefore(a, b);
                    _.fI(a, 500);
                    'false' != h && setTimeout(function () {
                        '' == a.style.display && (_.fO(a, 500))
                    }, _.config.time);
                },
                fI: function (a, b) {
                    var e, d;
                    if (!a) return;
                    _.sT(a, {
                            opacity: 0,
                            filter: 'alpha(opacity=0)',
                            display: '',
                            visibility: 'visible'
                        }),
                        b ? (e = 0, d = setInterval(function () {
                            e += 50 / b, e >= 1 && (clearInterval(d), e = 1), _.sT(a, {
                                opacity: e,
                                filter: 'alpha(opacity=' + e * 100 + ')',
                            })
                        }, 50)) : (_.sT(a, {
                            opacity: '1',
                            filter: 'alpha(opacity=1)'
                        }))
                },
                fO: function (o, e) {
                    if (o)
                        if (e) var s = 1,
                            t = setInterval(function () {
                                s -= 50 / e, s > 0 || (clearInterval(t), s = 0, _.sT(o, {
                                    display: 'none',
                                    visibility: 'hidden',
                                })), _.sT(o, {
                                    opacity: s,
                                    filter: 'alpha(opacity=' + 100 * s + ')'
                                })
                            }, 50);
                        else _.cl(o, {
                            opacity: 0,
                            filter: 'alpha(opacity=0)',
                            display: 'none',
                            visibility: 'hidden'
                        })
                },
                cL: function (c) {
                    var a = _.e(c == 'delete' ? '#confirm_wrap' : '#preview_content'),
                        b = _.e('#overlay');
                    _.fO(a, 500);
                    _.fO(b, 500);
                    setTimeout(function () {
                        a.remove();
                        b.remove();
                    }, 600);
                    _.rC.style.display = 'block' && (_.rC.style.display = 'none')
                },
                sC: function (o, e, t, s) {
                    e = e || 500, s = s || window;
                    var a = o.clientHeight < 150 ? o.clientHeight * 2 : o.clientHeight,
                        n = s.scrollTop - a || window.pageYOffset - a;
                    if ('number' == typeof o) var r = parseInt(o);
                    else var r = _.gT(o, n);
                    var l = Date.now(),
                        i = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (o) {
                            window.setTimeout(o, 15)
                        },
                        a = function () {
                            var c = Date.now() - l;
                            s !== window ? s.scrollTop = _.pS(n, r, c, e) : window.scroll(0, _.pS(n, r, c, e)), c > e ? 'function' == typeof t && t(o) : i(a)
                        };
                    a()
                },
                bU: function () {
                    var a = _.sceditor;
                    a && (window.onbeforeunload = function () {
                        if (a.val().length) {
                            return ''
                        }
                    });
                },
                eC: function (t) {
                    return t < .5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1
                },
                pS: function (o, e, s, r) {
                    return o + (e - o) * _.eC(s / r)
                },
                gT: function (o, e) {
                    return 'HTML' === o.nodeName ? -e : o.getBoundingClientRect().top + e
                },
                vT: function (h) {
                    var i, g = _.e('a', h);
                    for (i = 0; i < g.length; i++) {
                        /\/viewtopic/g.test(g[i].href) && (_.view_url = g[i].href)
                    }
                },
                pN: function (c) {
                    return c.match(/viewtopic/) ? c.match(/(\w+)$/g)[0] : c.match(/[\p\=](\w+)(?=\&)/)[1]
                },
                cl: function (o, e) {
                    var s = 1 == o.nodeType ? o : document.createElement(o);
                    if (e) {
                        for (var t in e) 'style' != t && (s[t] = e[t], 'onclick' == t && s.setAttribute(t, e[t]));
                        e.style && _.sT(s, e.style)
                    }
                    return s
                },
                oC: function (c) {
                    _.cl(_.rC, {
                        innerHTML: c != false ? c : '',
                        style: {
                            display: c != false ? 'block' : 'none',
                            color: '#fff',
                            fontSize: '20px',
                            lineHeight: '12'
                        }
                    })
                },
                sT: function (o, e) {
                    if ('string' == typeof o && (o = _.e(o)), o.style)
                        for (var s in e) o.style[s] = e[s];
                    return this
                },
                e: function (o, e) {
                    e = 'undefined' != typeof e ? e : document;
                    switch (o.charAt(0).match(/\W/) ? o.charAt(0) : o) {
                    case '#':
                        return e.getElementById(o.substr(1));
                    case '.':
                        return e.getElementsByClassName(o.substr(1));
                    case '*':
                        return e.getElementsByName(o.substr(1));
                    case 'body':
                        return e.body;
                    case 'head':
                        return e.head;
                    case 'forms':
                        return e.forms;
                    default:
                        return e.getElementsByTagName(o)
                    }
                },
                sE: function () {
                    if (!$.sceditor || !toolbar) return;
                    _.opts = $.sceditor.defaultOptions;
                    _.opts.id = 'fm_sceditor';
                    _.opts.autoUpdate = true;
                    _.opts.autofocus = true;
                    _.opts.autoExpand = true;
                    toolbar = toolbar.replace(/source/, 'maximize,source');
                },
                se: function () {
                    _.e('.sceditor-button-maximize')[0].onclick = function () {
                        if (!_.fa) return;
                        _.sceditor.maximize() && (_.fa.style.display = 'none');
                        !_.sceditor.maximize() && (_.fa.style.display = '');
                    };
                }
        };
        $(function () {
            _.sE();
            $(function () {
                (document.getElementById('logout') && /\/t\d+/g.test(window.location.pathname) || /\/post/.test(window.location.pathname) || /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href)) && (_.init());
            });
        });
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 5:30 pm
[alert]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sit amet diam sem. Fusce at dapibus libero, vitae aliquet eros. Nulla elementum auctor sapien, sit amet sollicitudin turpis lacinia auctor. In ultricies eu justo id dictum. Ut eu nisi convallis quam placerat volutpat id sed purus. Nunc sed ex sed nunc convallis bibendum in quis mauris. Nulla eu lacus ac diam aliquam bibendum. Donec tempor, erat iaculis pretium vestibulum, ex risus maximus libero, vel eleifend lectus dolor non augue. Proin tincidunt, purus ac pellentesque efficitur, odio lorem lobortis libero, quis vestibulum ex tortor vel orci. Mauris posuere finibus egestas.[/alert]

[alert]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sit amet diam sem. Fusce at dapibus libero, vitae aliquet eros. Nulla elementum auctor sapien, sit amet sollicitudin turpis lacinia auctor. In ultricies eu justo id dictum. Ut eu nisi convallis quam placerat volutpat id sed purus. Nunc sed ex sed nunc convallis bibendum in quis mauris. Nulla eu lacus ac diam aliquam bibendum. Donec tempor, erat iaculis pretium vestibulum, ex risus maximus libero, vel eleifend lectus dolor non augue. Proin tincidunt, purus ac pellentesque efficitur, odio lorem lobortis libero, quis vestibulum ex tortor vel orci. Mauris posuere finibus egestas.[/alert]
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 5:52 pm
[alert]Vestibulum ligula eros, imperdiet vitae accumsan ac, viverra sit amet turpis. Nunc pharetra lacus id justo faucibus, dictum lobortis est viverra. In non turpis tempor turpis congue pellentesque ut sit amet sem. Morbi feugiat purus eu dapibus elementum. Phasellus enim nisl, hendrerit nec justo eu, volutpat maximus enim. Nunc bibendum elementum mi eget sollicitudin. Nulla rhoncus tristique purus, et porttitor nunc gravida ut. Ut porta ante eget accumsan tincidunt. Quisque et maximus tellus. Morbi placerat est augue, ut euismod purus sollicitudin nec.[/alert]

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

Probando :) - Page 13 Empty Re: Probando :)

Fri Nov 04, 2016 7:32 pm
[ok]Vestibulum ligula eros, imperdiet vitae accumsan ac, viverra sit amet turpis. Nunc pharetra lacus id justo faucibus, dictum lobortis est viverra. In non turpis tempor turpis congue pellentesque ut sit amet sem. Morbi feugiat purus eu dapibus elementum. Phasellus enim nisl, hendrerit nec justo eu, volutpat maximus enim. Nunc bibendum elementum mi eget sollicitudin. Nulla rhoncus tristique purus, et porttitor nunc gravida ut. Ut porta ante eget accumsan tincidunt. Quisque et maximus tellus. Morbi placerat est augue, ut euismod purus sollicitudin nec.[/ok]
[info]Vestibulum vulputate, mauris eu consectetur cursus, lacus augue sollicitudin nulla, a facilisis urna dolor lacinia urna. Suspendisse euismod at metus vel sagittis. Proin luctus consectetur magna sed tempor. Integer congue a justo in bibendum. Morbi mauris ligula, dignissim in feugiat vitae, vulputate a odio. Pellentesque quis turpis at ipsum consequat luctus. Mauris vitae faucibus ipsum, non tristique libero. Praesent sed lobortis ante, non varius quam. Nunc tristique blandit lectus suscipit tincidunt. Phasellus augue sem, consequat eu neque in, malesuada pellentesque dui.[/info]

[info]ok edited[/info]
Sponsored content

Probando :) - Page 13 Empty Re: Probando :)

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