source: prototipo_portal_2018/prototipo/static/js/common.js @ 025e022

Last change on this file since 025e022 was 747e744, checked in by Antonio Araujo <aaraujo@…>, 7 years ago

Creado directorio prototipo con fuentes de la modificación del portal para establecer la ubicación de la firma visible

  • Property mode set to 100644
File size: 493 bytes
Line 
1// IE8 polyfill
2HTMLDocument.prototype.getElementsByClassName = 
3Element.prototype.getElementsByClassName =
4function getElementsByClassName (className) {
5        for (var res = [], els = this.getElementsByTagName('*'), n = els.length; n--;) {
6                if (els[n].className.indexOf(className) > -1) {
7                        res.push(els[n]);
8                }
9        }
10        return res;
11}
12
13// prevent selection because it's annoying when dragging
14document.onselectstart = function(){ return false; };
15document.body.setAttribute('unselectable', 'on', 0);
Note: See TracBrowser for help on using the repository browser.