Skip to content

Instantly share code, notes, and snippets.

@cjseeger
Created March 27, 2017 03:34
Show Gist options
  • Save cjseeger/edf14e1f8607fa5fa2e076a3dba1015e to your computer and use it in GitHub Desktop.
Save cjseeger/edf14e1f8607fa5fa2e076a3dba1015e to your computer and use it in GitHub Desktop.
JS Bin Troop 155 Calendar // source http://jsbin.com/cuwucey
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Troop 155 Calendar">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<!-- You can modify loading the default CSS below and use your own CSS if you want -->
<link rel="stylesheet" type="text/css" href="https://zetabee.com/icaljs/res/embed.css" />
<body>
You can subscribe to this calendar directly at: https://www.scoutbook.com/ics/29893.9A86D.ics
<br><br>
<!-- Move this div where you want to insert the calendar -->
<div id="icjs"></div>
<script id="jsbin-javascript">
(function() {
// Customize these as you wish
var pastdays = 0; // # of past days to show (0 to 30)
var futuredays = 60; // # of future days to show (0 to 365)
var cachemins = 10; // # of minutes to wait before refreshing calendar data (2 to 1440)
var container = "icjs"; // ID of div to embed calendar into
// Do not change anything below this
var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://zetabee.com/icaljs/embed?calid=bW5YWE51TmtIcUJOOHFLVlhjMjQzZz09&offset=5&cachemins=" + cachemins + "&futuredays=" + futuredays + "&pastdays=" + pastdays + "&container=" + container;
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(s);
})();
</script>
<script id="jsbin-source-javascript" type="text/javascript">(function() {
// Customize these as you wish
var pastdays = 0; // # of past days to show (0 to 30)
var futuredays = 60; // # of future days to show (0 to 365)
var cachemins = 10; // # of minutes to wait before refreshing calendar data (2 to 1440)
var container = "icjs"; // ID of div to embed calendar into
// Do not change anything below this
var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://zetabee.com/icaljs/embed?calid=bW5YWE51TmtIcUJOOHFLVlhjMjQzZz09&offset=5&cachemins=" + cachemins + "&futuredays=" + futuredays + "&pastdays=" + pastdays + "&container=" + container;
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(s);
})();
</script></body>
</html>
(function() {
// Customize these as you wish
var pastdays = 0; // # of past days to show (0 to 30)
var futuredays = 60; // # of future days to show (0 to 365)
var cachemins = 10; // # of minutes to wait before refreshing calendar data (2 to 1440)
var container = "icjs"; // ID of div to embed calendar into
// Do not change anything below this
var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://zetabee.com/icaljs/embed?calid=bW5YWE51TmtIcUJOOHFLVlhjMjQzZz09&offset=5&cachemins=" + cachemins + "&futuredays=" + futuredays + "&pastdays=" + pastdays + "&container=" + container;
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment