Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<!-- TRUMBA DEPSNDS ON JQUERY -->
<script src="http://code.jquery.com/jquery-git2.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<!-- Trumna Code -->
<!-- ********************************* -->
<!--Calendar Content -->
<div class="container">
<div class="row">
<div class="col-lg-9">
<!--Title -->
<div class="content">
<h2>Tomorrow's Events</h2>
<hr>
<!--Title -->
<!--Month List Spud -->
<script type="text/javascript" src="https://www.trumba.com/scripts/spuds.js"></script>
<script type="text/javascript">
$Trumba.addSpud({
webName: "msudenver-events-calendars",
spudType: "monthlist",
url: {
filterview: "HomePageFeed"
}
});
</script>
<!--Month List Spud -->
<!--Main Calendar Spud -->
<script type="text/javascript">
var Epoc = function(){
this.day = 24 * 60 * 60 * 1000;
// this.week = x * y ; add more
// this.month = x * y ; types here
this.makeDay = function(x){ // function Day multiplier
return this.day * x;
}
}
function future(x){
var epoc = new Epoc(); // make new Epoc
var day = x || epoc.makeDay(1); // lets make one day
var calc = new Date(+( new Date() ).getTime() + day); // now turn this into a Date object
return calc.toJSON(); // make it JSON friendly
}
var tomorrow = future();
$Trumba.addSpud({
webName: "msudenver-events-calendars",
spudType: "main",
url: {
template: "day",
date : tomorrow, // lets call tomorrow..
filterview: "HomePageFeed"
}
});
</script>
<noscript>
Your browser must support JavaScript to view this content. Please enable JavaScript in your browser settings then try again.
<a href='http://www.trumba.com'>Events calendar powered by Trumba</a>
</noscript>
</div>
</div>
<!-- Main Calendar Spud -->
<!-- ********************************* -->
<!-- Trumna Code -->
<!-- ********************************* -->
<!-- Calendar Nav-->
<div class="col-lg-3">
<div class="content">
<h3>Quick Tools</h3>
<hr>
<!--Mini Calendar Spud -->
<script type="text/javascript">
$Trumba.addSpud({
webName: "msudenver-events-calendars",
spudType : "datefinder" ,
url : { filterview : "HomePageFeed" } });
</script>
<noscript>Your browser must support JavaScript to view this content.
Please enable JavaScript in your browser settings then try again.
<a href='http://www.trumba.com'>Events calendar powered by Trumba</a></noscript>
<!--Mini Calendar Spud -->
<br>
<!-- Search Spud -->
<script type="text/javascript">
$Trumba.addSpud({
webName: "msudenver-events-calendars",
spudType : "searchlabeled" ,
url : { filterview : "HomePageFeed" } });
</script>
<!-- Search Spud -->
<br>
<!-- Filter Spud -->
<script type="text/javascript">
$Trumba.addSpud({
webName: "msudenver-events-calendars",
spudType : "filter" ,
url : { filterview : "HomePageFeed" } });
</script>
<!-- Filter Spud -->
<br>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment