❤
I DESIGN WITH CODE An SVG animation for my site
Inspired by the wonderfully playful Creogram
A Pen by Joey Burzynski on CodePen.
// Cloudflare Worker Sandbox Examples | |
// Learning here, not intended for production use. | |
// https://cloudflareworkers.com/#6bc84bcddcf251074b41adba568a9284:https://tutorial.cloudflareworkers.com | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)); | |
}) | |
/** |
{ | |
"extends": [ | |
"config:base", | |
":pinAllExceptPeerDependencies", | |
"group:nodeJs", | |
"group:allApollographql", | |
"group:codemirror", | |
"group:fortawesome", | |
"group:fusionjs", | |
"group:glimmer", |
<!-- x-default: default when no language matches --> | |
<link rel="alternate" hreflang="x-default" href="https://www.mordorintelligence.com"/> | |
<!-- English (en) --> | |
<link rel="alternate" hreflang="en" href="https://www.mordorintelligence.com"/> | |
<!-- Arabic: macrolanguage (ar) --> | |
<link rel="alternate" hreflang="ar" href="https://www.mordorintelligence.sa"/> | |
<!-- Chinese (zh) --> |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xhtml="http://www.w3.org/1999/xhtml"> | |
<url> | |
<loc>https://www.mordorintelligence.sa</loc> | |
<!-- Arabic: macrolanguage (ar) --> | |
<xhtml:link | |
rel="alternate" | |
hreflang="ar" | |
href="https://www.mordorintelligence.sa"/> |
window.addEventListener('error', function(e) { | |
var errorText = [ | |
e.message, | |
'URL: ' + e.filename, | |
'Line: ' + e.lineno + ', Column: ' + e.colno, | |
'Stack: ' + (e.error && e.error.stack || '(no stack trace)') | |
].join('\n'); | |
// Example: log errors as visual output into the host page. | |
// Note: you probably don't want to show such errors to users, or |
The following code shows how you might create and report an error, and how it may be caught by adding a listener for the error
event.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
window.addEventListener('error', (event) => {
domain.com
to install1.wpengine.com
.Make sure you send the Cache-Control $http_cache_control header
in your requests to WP Engine.
If this isn’t configured you will be permanently logged into /wp-admin
and it will not auto logout.
That can be a serious security concern.
Make sure you pass the X-Forwarded-For
headers to WP Engine so that we see the actual IPs and not the proxy IP.
If this isn’t in place, you will get blocked by WP Engine’s firewall.
<?php | |
/** | |
* Stop htaccess rewrites | |
* | |
* @package wpengine-stop-htaccess-rewrites | |
* @author wpengine | |
* @license Proprietary | |
* | |
* @wordpress-muplugin |