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

Como descargar los PDF's Empty Como descargar los PDF's

Sat Nov 05, 2016 1:48 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, rgba(255,26,0,0.5) 0%,rgba(255,26,0,0.5) 100%)',
       color_e: 'linear-gradient(to bottom, #d2ff52 0%,#91e842 100%)',
       bbia: 'https://i37.servimg.com/u/f37/19/54/26/00/accept10.png',
       bbib: 'https://i37.servimg.com/u/f37/19/54/26/00/info10.png',
       bbic: 'https://i37.servimg.com/u/f37/19/54/26/00/01_war10.png',
       bbid: 'https://i37.servimg.com/u/f37/19/54/26/00/error-10.png',
       b_ok:'https://i37.servimg.com/u/f37/19/54/26/00/accept11.png',
       b_info:'https://i37.servimg.com/u/f37/19/54/26/00/info_c10.png',
       b_alert:'https://i37.servimg.com/u/f37/19/54/26/00/warnin10.png',
       b_warning:'https://i37.servimg.com/u/f37/19/54/26/00/error-11.png',
       height: 250
   },
   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',
       too_long: 'The posted message is too long.',
       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];
       _.bM = _.e('.sceditor-button-maximize');
       _.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();
       _.sc();
       _.sB(_.a);
       _.isTheme && (_.sceditor.height(_.config.height), _.bbP());
   },
   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 in a) {
           _.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) {
       _.uU = 'undefined' != typeof c.href ? c.href : c;
       var a = _.uU.match(/(?!\/post\?p=(\w+)\&mode=)(editpost|quote|vote)|viewtopic/)[0],
           b = _.pN(_.uU),
           e, f, g, h, i, j, k, l, m, n, o, q, t, u, x;
       m = _.e('.post--' + b);
       j = m[0];
       _.XML('', _.uU, function (e) {
           x = e.responseXML;
           f = a != 'vote' && x.forms.post.message.value;
           e = a != 'vote' && x.forms.post.subject &&(x.forms.post.subject.value);
           switch (a) {
           case 'editpost':
               _.sT(j, {
                   border: '1px solid orange'
               });
               g = _.cl('input', {
                   className: 'inputbox medium edit_subject',
                   placeholder: _.lang.edit_subject_placeholder,
                   name: 'subject',
                   value: e,
                   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];
               _.cl(k, {
                   style: {
                       display: 'none'
                   },
                   innerHTML: _.parse(k.innerHTML)
               });
               k.className += ' new_ajax_post';
               'reply' == d && (_.sB(_.e('a', k)), _.sP(k));
               if ('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,(_.isTheme|| _.isPost && 'preview' == m)&&  (_.oC(_.lang.loading),_.dC('#ccc')), '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(_.content, h).length && _.e(_.content, 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);
                   z = t.indexOf(_.lang.too_long);
                   if (/mp/.test(m)) {
                       if (w > 0) {
                           _.nT(_.lang.pm_error_a, _.config.color_c, 'true');
                           _.rF(_.b_r, _.b_r_v);
                           _.dC('#000')
                       } else if (s > 0) {
                           _.nT(_.lang.pm_error_b, _.config.color_c, 'true');
                           _.rF(_.b_r, _.b_r_v);
                           _.dC('#000')
                       } else if (u > 0) {
                           _.nT(_.lang.pm_error_c, _.config.color_c, 'true');
                           _.rF(_.b_r, _.b_r_v);
                           _.dC('#000')
                       } 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);
                           _.dC('#000')
                       } else if (l > 0) {
                           _.nT(_.lang.newpost, _.config.color_b, 'true');
                           _.rF(_.b_r, _.b_r_v);
                           _.dC('#000')
                       } else if (0 > a) {
                           _.nT(_.lang.error_reply, '', 'true');
                           _.rF(_.b_r, _.b_r_v);
                           _.dC('#000')
                       } 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)) {
                       if (!o) {
                           console.log(t);
                           _.nT(_.lang.too_long, _.config.color_d, 'true');
                           _.rF(_.b_p, _.b_p_v);
                           _.oC(false);
                           _.dC('#000');
                       }else{
                       _.cP();
                       p = _.e('#preview_content');
                       o && p.appendChild(o);
                       o.innerHTML = _.parse(o.innerHTML);
                       _.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);
       }
   },
   dC:function(c){
       _.sceditor.css('body { color: '+c+'; }');
       _.text_a.style.color = c;
   },
   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');
       c == 'preview' && _.dC('#000')
   },
   sC: function (o, e, t, s) {
       e = e || 500, s = s || window;
       var a = o.clientHeight < 150 ? o.clientHeight * 2 :o.clientHeight < 300 ? o.clientHeight : o.clientHeight > 400 && '',
           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 in g) {
           /\/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]
   },
   oC: function (c) {
       _.cl(_.rC, {
           innerHTML: c != false ? c : '',
           style: {
               display: c != false ? 'block' : 'none',
               color: '#fff',
               fontSize: '20px',
               lineHeight: '12',
               textAlign: 'center'
           }
       })
   },
   bbP: function () {
       var i, a = _.e('.post'),
           c = a.length;
       for (i = 0; i < c; i++) {
           a[i].innerHTML = _.parse(a[i].innerHTML)
       }
   },
   parse: function (c) {
       var i,s = 'text-align: justify;padding: 8px 8px 8px 40px;min-height: 20px;margin-top: 5px; font-size: 14px; font-style: initial; width: 90.5%; margin-left: 14px;display: flex;line-height: 1.6;text-shadow: 0 1px rgba(255, 255, 255, 0.68);border-radius: 5px;',
           t = 'background: url(' + _.config.bbia + ') no-repeat 6px #effeb9;border:1px solid green;color:green;' + s,
           u = 'background: url(' + _.config.bbib + ') no-repeat 6px #d1e4f3;border:1px solid #4d8fcb;4px;color:#00529b;' + s,
           v = 'background:url(' + _.config.bbic + ') no-repeat 6px #ffeaa9;border:1px solid brown;color:brown;' + s,
           w = 'background:url(' + _.config.bbid + ') no-repeat 6px #fccac3;border:1px solid red;color:red;' + s,
           a = [/\[ok\](.*?)\[\/ok\]/g, /\[info\](.*?)\[\/info\]/g, /\[alert\](.*?)\[\/alert\]/g, /\[warning\](.*?)\[\/warning\]/g],
           b = ['<span class="ok" style="' + t + '">$1</span>', '<span class="info" style="' + u + '">$1</span>', '<span class="alert" style="' + v + '">$1</span>', '<span class="warning" style="' + w + '">$1</span>'];

       for (i in a) {
           c = c.replace(a[i], b[i]);
       }
       return c
   },
   sE: function () {
       if (!$.sceditor || !toolbar) return;
       _.opts = $.sceditor.defaultOptions;
       _.opts.id = 'fm_sceditor';
       _.opts.autoUpdate = true;
       _.opts.autofocus = true;
       _.opts.autoExpand = true;
       _.bS()
   },
   bS: function () {
       if (!$.sceditor || !toolbar) return;
       toolbar = _userdata.user_level > 0 ? toolbar.replace(/source/, 'maximize,source|ok,info,warning,alert') : toolbar.replace(/source/, 'maximize,source');
       if (_userdata.user_level >= 0) {
           var i,f, d, b, a = ['ok', 'info', 'warning', 'alert'],
               c = a.length,
               f = [];
           for (i in a) {
               d = a[i];
               f.push(function(d){
                   $.sceditor.command.set(d, {
                       exec: function(){
                           this.insertText('[' + d + ']', '[/' + d + ']')
                       },
                       txtExec: function(){
                           this.insertText('[' + d + ']', '[/' + d + ']')
                       },
                       tooltip: 'Mod tool ' + d
                   });
               });
           }
           for (i in f) {
               f[i](a[i]);
           }
       }
   },
   sc: function () {
       _.bM.length && (_.bM[0].onclick = function () {
           if (!_.fa) return;
           _.sceditor.maximize() && (_.fO(_.fa,500));
           !_.sceditor.maximize() && (_.fI(_.fa,500));
       });
       if (_userdata.user_level > 0) {
           var b, c, i, a;
           b = [{
                class: 'ok',
                bg: _.config.b_ok
        }, {
                class: 'info',
            bg: _.config.b_info
        }, {
                class: 'alert',
            bg: _.config.b_alert
        }, {
                class: 'warning',
                bg: _.config.b_warning
        }];
           c = b.length;
           for (i in b) {
               _.e('div', _.e('.sceditor-button-' + b[i].class)[0])[0].style.backgroundImage = 'url(' + b[i].bg + ')'
           }
       }
   },
   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
   },
   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)
       }
   },
};
$(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

Como descargar los PDF's Empty Re: Como descargar los PDF's

Sat Nov 05, 2016 1:56 pm
[warning]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.

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.

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.

Nam hendrerit, erat in vulputate pretium, tellus metus suscipit mi, nec gravida est felis et risus. Sed fringilla iaculis odio, sit amet mollis neque congue eget. Ut luctus nisl at vulputate aliquet. Nam massa magna, luctus ac rutrum eu, sagittis eget elit. Suspendisse gravida varius lorem. Ut rhoncus ipsum arcu, vitae tempus mi dapibus id. Etiam a molestie diam. Cras fringilla dolor ut erat ultrices, ac malesuada nisi sodales. Phasellus tristique ligula ac risus pharetra luctus. Maecenas ut blandit libero. Curabitur fermentum sodales nunc eget feugiat. Nunc feugiat accumsan fermentum. Suspendisse sed orci tempus, rhoncus libero vitae, dignissim dui. Fusce et tortor elit. Phasellus vel erat nec purus elementum tincidunt.[/warning]
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Como descargar los PDF's Empty Re: Como descargar los PDF's

Sat Nov 05, 2016 1:59 pm
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.

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.

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.

Nam hendrerit, erat in vulputate pretium, tellus metus suscipit mi, nec gravida est felis et risus. Sed fringilla iaculis odio, sit amet mollis neque congue eget. Ut luctus nisl at vulputate aliquet. Nam massa magna, luctus ac rutrum eu, sagittis eget elit. Suspendisse gravida varius lorem. Ut rhoncus ipsum arcu, vitae tempus mi dapibus id. Etiam a molestie diam. Cras fringilla dolor ut erat ultrices, ac malesuada nisi sodales. Phasellus tristique ligula ac risus pharetra luctus. Maecenas ut blandit libero. Curabitur fermentum sodales nunc eget feugiat. Nunc feugiat accumsan fermentum. Suspendisse sed orci tempus, rhoncus libero vitae, dignissim dui. Fusce et tortor elit. Phasellus vel erat nec purus elementum tincidunt.
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Como descargar los PDF's Empty Re: Como descargar los PDF's

Sat Nov 05, 2016 1:59 pm
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.

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.

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.

Nam hendrerit, erat in vulputate pretium, tellus metus suscipit mi, nec gravida est felis et risus. Sed fringilla iaculis odio, sit amet mollis neque congue eget. Ut luctus nisl at vulputate aliquet. Nam massa magna, luctus ac rutrum eu, sagittis eget elit. Suspendisse gravida varius lorem. Ut rhoncus ipsum arcu, vitae tempus mi dapibus id. Etiam a molestie diam. Cras fringilla dolor ut erat ultrices, ac malesuada nisi sodales. Phasellus tristique ligula ac risus pharetra luctus. Maecenas ut blandit libero. Curabitur fermentum sodales nunc eget feugiat. Nunc feugiat accumsan fermentum. Suspendisse sed orci tempus, rhoncus libero vitae, dignissim dui. Fusce et tortor elit. Phasellus vel erat nec purus elementum tincidunt.
Admin
Admin
Admin
Mensajes : 616
Puntos : 849
Reputación : 170
Fecha de inscripción : 2016-05-15
https://codelab.forumotion.com

Como descargar los PDF's Empty Re: Como descargar los PDF's

Sat Nov 05, 2016 2:02 pm
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.

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.

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.

Nam hendrerit, erat in vulputate pretium, tellus metus suscipit mi, nec gravida est felis et risus. Sed fringilla iaculis odio, sit amet mollis neque congue eget. Ut luctus nisl at vulputate aliquet. Nam massa magna, luctus ac rutrum eu, sagittis eget elit. Suspendisse gravida varius lorem. Ut rhoncus ipsum arcu, vitae tempus mi dapibus id. Etiam a molestie diam. Cras fringilla dolor ut erat ultrices, ac malesuada nisi sodales. Phasellus tristique ligula ac risus pharetra luctus. Maecenas ut blandit libero. Curabitur fermentum sodales nunc eget feugiat. Nunc feugiat accumsan fermentum. Suspendisse sed orci tempus, rhoncus libero vitae, dignissim dui. Fusce et tortor elit. Phasellus vel erat nec purus elementum tincidunt.
Sponsored content

Como descargar los PDF's Empty Re: Como descargar los PDF's

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