main.dgjvwr5wei7tc.amplifyapp.com Open in urlscan Pro
143.204.228.90  Public Scan

URL: https://main.dgjvwr5wei7tc.amplifyapp.com/
Submission: On September 13 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

WINDOW.DFC

A minimalist testing framework


GETTING STARTED

Installation

<script>window.dfc = function () {return 0}</script>
<script data-source="https://main.dgjvwr5wei7tc.amplifyapp.com/dfc.inline.js">"use strict";window.dfc=function(t){var n,o,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2;try{var e="dfc-exp-"+t,r=parseInt((n=new URLSearchParams(location.search).get(e),o=localStorage.getItem(e),n||o||(n=c-1,o=Math.ceil(0),n=Math.floor(n),Math.floor(Math.random()*(n-o+1))+o)),10);return localStorage.setItem(e,r),window.dfc.q=window.dfc.q||[],window.dfc.q.push(["experiment",t,r]),r}catch(t){return 0}},window.dfc.init=function(){window.dfc.q=window.dfc.q||[];for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];window.dfc.q.push(["init"].concat(n))};</script>

Usage


<script>
  const idx = window.dfc('PASTE_IN_A_OPTIMIZE_ID');
  if (idx === 1) {
    // newIdea();
  } else {
    // original()
  }
</script>

Made with ♥