Files
zeekay e43ab1afe7 chore: rename all PostHog references to Insights/Hanzo
Bulk rename across 989 files:
- Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc.
- Repository URLs: posthog/posthog-js → hanzoai/insights-js
- Brand names: PostHog → Insights
- File renames: 259 reference JSON files, source files, workflow files
- Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights

Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
2026-03-06 01:41:12 -08:00

57 lines
2.3 KiB
HTML

<html>
<head>
<script src="../../dist/array.js"></script>
<script>
insights.init('sTMFPsFhdP1Ssg', {
api_host: 'http://127.0.0.1:8000',
debug: true,
persistence: 'memory',
advanced_disable_feature_flags_on_first_load: true,
loaded: function(insights) {
//insights.identify('test')
}
})
</script>
</head>
<h2>Demo site</h2>
<button>Here's a button you could click if you want to</button><br /><br />
<body class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<div class='asdlfkjj asdlfkj asdflkj asdflkj asdf'>
<a href='https://insights.hanzo.ai'>Here's a link to the outside world</a>
</div>
<div id="shadow" ></div>
<div style="padding: 2rem;background:green;display:none;color:white" id="feature"><h2>Look, a new beta feature</h2></div>
<script>
const header = document.createElement('header');
const shadowRoot = header.attachShadow({mode: 'open'});
shadowRoot.innerHTML = '<h2>shadowroot</h2><button>bla</button>'
document.body.appendChild(header)
console.log(insights.isFeatureEnabled('beta-feature'))
insights.onFeatureFlags(function(featureFlags) {
console.log(featureFlags)
if(insights.isFeatureEnabled('beta-feature')) {
console.log('beta-feature enabled!')
document.getElementById('feature').style.display = 'block'
}
})
</script>
</body>
</html>