This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isGreek = { | |
mobile: function(value) { | |
return /^(\+30|0030)?69\d{8}$/.test( value.replace(/[\s\-()\.]/g, "") ); | |
}, | |
landline: function(value) { | |
return /^(\+30|0030)?(210)?\d{7}$/.test( value.replace(/[\s\-()\.]/g, "") ); | |
}, | |
phone: function(value) { | |
return isGreek.mobile(value) || isGreek.landline(value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>AB Google Analytics testing code</title> | |
<!-- Load the Content Experiment JavaScript API client for the experiment --> | |
<script src="//www.google-analytics.com/cx/api.js?experiment=[YOUR EXPERIMENT ID]"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greenpeace España</title> | |
<!-- Page header free html --> | |
<meta name="msvalidate.01" content="0EFA63D991131147715CF37F8DB5CE8C" /> | |
<meta name='yandex-verification' content='6af16d6b271bec04' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Manually gzip CSS and JS files</title> | |
<link rel="stylesheet" href="bootstrap-custom.min.css" type="text/css"> | |
<script src="header-scripts.min.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -- VALIDATE ID NUMBER, | |
//Retorna: 1 = NIF ok, 2 = CIF ok, 3 = NIE ok, -1 = NIF error, -2 = CIF error, -3 = NIE error, 0 = ??? error | |
function valida_nif_cif_nie(a) | |
{ | |
var temp=a.toUpperCase(); | |
var cadenadni="TRWAGMYFPDXBNJZSQVHLCKE"; | |
if (temp!==''){ | |
//si no tiene un formato valido devuelve error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Universe { | |
/** | |
* Logins in Salesforce for the API | |
* | |
* @return array Returns an associative array with 'access_token' and other | |
*/ | |
public static function login() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$salesforce_credentials = Universe::login(); | |
if ( isset( $salesforce_credentials['instance_url'] ) && isset( $salesforce_credentials['access_token'] ) ) { | |
$universe_login_error = ''; | |
$universe_login_error_description = ''; | |
$instance_url = $salesforce_credentials['instance_url']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file Class to create a Google Analytics email tracking pixel. | |
* It will be used to integrate our html email generator "Fabricador" | |
*/ | |
class EmailTrack { | |
public $GAtrackingID = 'UA-7467053-1'; // Replace by your Google Analytics Tracking ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @namespace Custom validation related | |
*/ | |
var customValidation = { | |
/** | |
* Known str_replace funcion. Required in valida_nif_cif_nie | |
*/ | |
str_replace: function(e, t, n) { | |
var j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint browser: true*/ | |
/** | |
* Adds the content of navigator.languages or navigator.language as classes to body | |
* This script must be added after the opening <body> tag. | |
* @author Osvaldo Gago | |
*/ | |
(function () { |
OlderNewer