Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
</head>
<body>
<!-- By default, the pop-out CTA is 300px wide. You might want to set the div width and height to allow for a border -->
<div style="width:260px; height:250px;">
<!-- Sample HTML form. Can be replaced with a form from your favourite MAP (e.g. Hubspot, Silver Pop, etc.) -->
<form>
<table>
<tr>
<html>
<head>
<style type="text/css">
.video_container {
position: relative;
/* Set max values to player size */
max-width: 640px;
max-height: 360px;
display:block;
}
<!--
www.mycompany.com - Normal website appears
www.mycompany.com?vidyard=true - Website appears, Vidyard player launched in lightbox
-->
<html>
<head>
<!-- Parsing the query string. Sample taken from http://javascript.about.com/library/blqs.htm -->
<script type="text/javascript">
var qsParm = new Array();
function qs() {
@joshorvis
joshorvis / datefilter.js
Last active August 29, 2015 13:58 — forked from Voles/datefilter.js
app.filter('daterange', function () {
return function(items, date_field,start_date, end_date) {
var result = [];
// date filters
var start_date = (start_date && !isNaN(Date.parse(start_date))) ? Date.parse(start_date) : 0;
var end_date = (end_date && !isNaN(Date.parse(end_date))) ? Date.parse(end_date) : new Date().getTime();
// if the items are loaded
if (items && items.length > 0) {