This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load JS from external source | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js" type="text/javascript"></script> | |
// Add inline JS | |
<script type="text/javascript"> | |
$('#message').append("Message generated on " + Date.now()); | |
</script> | |
// Loads Handlebars library since the message content is using Handlebars templates | |
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.1/handlebars.min.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="message"> | |
<p>Hello staff - the top seller yesterday was {{data.query2.FullName}} with ${{data.query1.amount}} - <em>well done!</em></p> | |
<p>The Best Sale was:</p> | |
<ul> | |
{{#each data.query3}} | |
{{Item_Name__c}}: {{Total_Unit_Quantity_Needed__c}} {{Default_Unit_Name__c}} (${{PBSI__Total_Price__c}}) | |
{{/each}} | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="body pricetag" > | |
<header class="title"> | |
<ul id="brand"> | |
<li class="vendor italo"><img src=""></li> | |
<li class="vendor co-host"><img src="{PBSI__PBSI_Item__c3.Vendor_Logo_URL__c.0}"></li> | |
<li><h1 contenteditable="true" data-pricetag-tile="{PBSI__PBSI_Item__c3.Collection__c.0}"><span class="collection lower">{PBSI__PBSI_Item__c3.Collection__c.0} Collection</span></h1></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// from http://briancray.com/ | |
(function (tos) { | |
window.setInterval(function () { | |
// Every 10,000 milliseconds, calculate the time | |
tos = (function (t) { | |
return t[0] == 50 ? (parseInt(t[1]) + 1) + ':00' : (t[1] || '0') + ':' + (parseInt(t[0]) + 10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< script type = "text/javascript" > | |
(function($) { | |
$(function() { | |
$('a[href^="http"]:not([href*="' + document.domain + '"])').click(function(e) { | |
// When a user clicks an external link | |
if ($(this).attr('target') !== '_blank') { | |
e.preventDefault(); |
NewerOlder