Skip to content

Instantly share code, notes, and snippets.

@tcmacdonald
Created April 4, 2012 13:56
Show Gist options
  • Save tcmacdonald/2301270 to your computer and use it in GitHub Desktop.
Save tcmacdonald/2301270 to your computer and use it in GitHub Desktop.
Paycor OH Implementation Details
<!-- To be included directly before closing body tag -->
<script>
$(document).ready(function(){
var client_ids = $('select#ctl00_ctl00_placeHolderMain_cphMainContent_cbClient option').map(function() {
return /\d+/.exec($(this).val());
}).get().join(',')
var sp = document.createElement('script');
sp.type = 'text/javascript';
sp.src = "//www.paycor.com/syndicated/online-home.js?client_ids=" + client_ids;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
});
</script>
<!-- Include the following inside header tag -->
<script src="//www.paycor.com/javascripts/facebox.js?1333481987" type="text/javascript"></script>
<script src="//www.paycor.com/javascripts/swfobject.js?1307627431" type="text/javascript"></script>
<script src="//www.paycor.com/javascripts/jquery.cookie.js?1330549662" type="text/javascript"></script>
<link href="//www.paycor.com/stylesheets/public/facebox.css?1332515815" media="screen" rel="stylesheet" type="text/css" />
<!-- Ensure no hardcoded references to online-home.js -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment