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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Your Page</title> | |
<meta http-equiv="refresh" content="0;URL='http://URLexample.com/'" /> | |
</head> | |
<body> | |
<p>This page has moved to a <a href="http://URLexample.com/"> | |
URLexample.com</a>.</p> | |
</body> | |
</html> |
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
<!-- Parse email address from URL parameter = email --> | |
<script> | |
var mail = document.querySelector('input#email_address'); | |
if (mail) { | |
var t = document.location.href.split('?')[1]; | |
if (t) { | |
var params = {}; | |
var lst = t.split('&'), l = lst.length; | |
for (var i = 0; i < l; i++) { | |
var p = lst[i].split('='); |
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 to defer or asynchronously load scripts*/ | |
function js_async_attr($tag){ | |
# Do not add defer or async attribute to these scripts | |
$scripts_to_exclude = array('jquery.js', 'script2.js', 'script3.js'); | |
foreach($scripts_to_exclude as $exclude_script){ | |
if(true == strpos($tag, $exclude_script ) ) | |
return $tag; | |
} |
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
<!-- Source: https://litmus.com/community/snippets/233-dark-mode-support --> | |
<!-- Put both of these sections in the <head> of your email. --> | |
<!-- Enable Dark Mode Support --> | |
<meta name="color-scheme" content="light dark"> | |
<meta name="supported-color-schemes" content="light dark only"> | |
<style type="text/css"> | |
:root { | |
color-scheme: light dark; |
OlderNewer