Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
// Source: Anti iFrame Buster in JavaScript
var prevent_bust = 0;
window.onbeforeunload = function() { prevent_bust++; }
setInterval(function() {
if (prevent_bust > 0) {
prevent_bust -= 2;
window.top.location = 'http://domain.com';
}
}, 1);
@criptalis
criptalis / README.md
Created October 30, 2019 11:11 — forked from brattonc/README.md
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.