Skip to content

Instantly share code, notes, and snippets.

@RichardSlater
Created September 20, 2018 16:42
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 RichardSlater/1a2c9d21b64835212fb7fcf69b3b7705 to your computer and use it in GitHub Desktop.
Save RichardSlater/1a2c9d21b64835212fb7fcf69b3b7705 to your computer and use it in GitHub Desktop.
Auto-update LucidCharts
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Go-Live Plan</title>
<meta name="description" content="Go-live Plan">
<meta name="author" content="Richard Slater">
<meta http-equiv="refresh" content="3000">
<style>
.fit {
object-fit: contain;
width: 100%;
}
body {
background-color: black;
}
</style>
<script type="text/javascript">
function updateImage()
{
var im = document.createElement("img");
im.onload=function() { document.getElementById("myimage").src = this.src }
im.src = "https://www.lucidchart.com/publicSegments/view/2bb7d3ee-afe3-49ae-b3f6-c52f24e00d5c/image.png?rand=" + new Date().getTime();
setTimeout(updateImage, 60000);
}
updateImage();
</script>
</head>
<body>
<img class="fit" src='https://www.lucidchart.com/publicSegments/view/2bb7d3ee-afe3-49ae-b3f6-c52f24e00d5c/image.png' id='myimage' />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment