This file contains hidden or 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
function MXLookup(domain) { | |
try { | |
var url = "https://dns.google.com/resolve?name=%FQDN%&type=MX".replace("%FQDN%",domain); | |
//var url = "https://dns.google.com/resolve?name=e-mercy.com&type=MX"; // USED FOR TESTING ONLY | |
Utilities.sleep(100); | |
var result = UrlFetchApp.fetch(url,{muteHttpExceptions:true}); | |
var rc = result.getResponseCode(); |
This file contains hidden or 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
=iferror(trim(REGEXEXTRACT(REGEXREPLACE(REGEXREPLACE(A2,"https?://",""),"^(w{3}\.)?","")&"/","([^/?]+)"))) |
This file contains hidden or 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
p.pwp-featured-image-placeholder { | |
background: url('http://image-url-here.jpg'); | |
background-size: cover; | |
background-position: 50% 50%, 50% 50%; | |
} |
This file contains hidden or 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
<!-- MixPanel Link click tracking - track clicks for all links --> | |
<script type="text/javascript">// <![CDATA[ | |
mixpanel.track_links("a", "Link Click", { | |
"referrer": document.referrer | |
}); | |
// ]]> | |
</script> | |
<!-- MixPanel Pageview tracking --> | |
<?php if( is_page()) { // Sets page type to Page for all pages ?> |
This file contains hidden or 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
<span id="clickToShow">xxx-xxx-xxxx</span> | |
<script> | |
var shortNumber = $("#clickToShow").text().substring(0, $("#clickToShow").text().length - 5); | |
var onClickInfo = "_gaq.push(['_trackEvent', 'EVENT-CATEGORY', 'EVENT-ACTION', 'EVENT-LABEL', VALUE, NON-INTERACTION]);"; | |
$("#clickToShow").hide().after('<button id="clickToShowButton" onClick="' + onClickInfo + '">' + shortNumber + '... (click for full phone number)</button>'); | |
$("#clickToShowButton").click(function() { | |
$("#clickToShow").show(); | |
$("#clickToShowButton").hide(); | |
}); | |
</script> |
This file contains hidden or 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
add_filter("gform_address_types", "aus_address", 10, 2); | |
function aus_address($address_types, $form_id) | |
{ | |
$address_types["australia"] = array( | |
"label" => "Australia", | |
"country" => "Australia", | |
"zip_label" => "Postcode", | |
"state_label" => "State", | |
"states" => array("NT" => "NT", "ACT" => "ACT", "NSW" => "NSW", "QLD" => "QLD", "VIC" => "VIC", "WA" => "WA", "SA" => "SA", "TAS" => "TAS") | |
); |