- Full static mirror of the YellowPages/Drupal site (39 pages + all assets) - All URLs rewritten to relative/domain-agnostic form (works on any domain) - RFQ + request-quotation + contact forms converted to email (FormSubmit.co) - Google Maps embed replaced with static Google Maps iframe - nginx Dockerfile + config for EasyPanel deployment - mirror.py/rewrite.py/cleanup.py tooling for re-crawling updates
3 lines
568 B
JavaScript
3 lines
568 B
JavaScript
var inframe="";var inframeReferrer=false;try{if(top.document.domain!=self.document.domain){var inframeReferrer=document.referrer;}else{}}catch(err){var inframeReferrer=document.referrer;}
|
|
if(inframeReferrer){var elemLink=document.createElement('a');elemLink.setAttribute('href',inframeReferrer);inframe="&inframe="+escape(elemLink.hostname);}
|
|
document.write("<IMG SRC='//www.yellowpages.co.th/track/track.php?url="+escape(window.location.href)+inframe+"' HEIGHT='0' WIDTH='0' ID='typtrack' ALT='' TITLE='' REL='NOFOLLOW' STYLE='width:0px; height:0px; border:0px '/>"); |