Skip to content

Instantly share code, notes, and snippets.

@hyrmn
Created June 16, 2016 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyrmn/7fc9c1e65b5be83299e1c7c80842e3e0 to your computer and use it in GitHub Desktop.
Save hyrmn/7fc9c1e65b5be83299e1c7c80842e3e0 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Omphaloskepsis</title>
</head>
<body>
<button type="belly" class="innie" id="navel">@</button>
<script>
var navel = document.getElementById('navel');
function gaze(object){
var oldObject = !oldObject ? JSON.parse(JSON.stringify(object)) : oldObject;
if (oldObject != object){
console.log(changed);
oldObject != object
}
setTimeout(function () {
gaze(object)
}, 10)
}
gaze(navel);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment