Created
January 28, 2017 00:01
-
-
Save elchingon/6d05605b8905c46e916d77970ef70876 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Adding Events to Site | |
--------------------- | |
There are 4 different viewTypes that pass events or coupons based on adId or organizationId. | |
{ viewType: eventsForAd, adId: 360APIAdId, limit: LIMIT} -- limit is optional | |
{ viewType: couponsForAd, adId: 360APIAdId } | |
{ viewType: couponsSmallForAd, adId: 360APIAdId } | |
{ viewType: eventsForOrganization, organizationId: 360DurangoAPIOrganizationId } | |
{ viewType: adsForOrganization, organizationId: 360DurangoAPIOrganizationId } | |
{ viewType: couponsForOrganization, organizationId: 360DurangoAPIOrganizationId } | |
Adding Script to Html based on version. Be sure to match the id of the div with the fullcircle declaration.. | |
<script type="text/javascript">// <![CDATA[ $.noConflict(); // ]]></script> | |
<script src="http://static.fullcircle.eckmedia.com/0.2.7/js/full_circle_all.js"></script> | |
<link rel="stylesheet" href="http://static.fullcircle.eckmedia.com/0.2.7/css/full_circle.css" > | |
<div id="org-event-list"></div> | |
<p><script> jQuery( function($){$("#org-event-list").fullcircle({viewType: "eventsForAd", adId: 89540});}); </script> </p> | |
<script type="text/javascript">// <![CDATA[ $.noConflict(); // ]]></script><br> | |
<script src="http://static.fullcircle.eckmedia.com/0.2.6/js/full_circle_all.js"></script> | |
<link rel="stylesheet" href="http://static.fullcircle.eckmedia.com/0.2.6/css/full_circle.css"> | |
<div id="org-event-list"></div> | |
<p><script> jQuery( function($){$("#org-event-list").fullcircle({viewType: "eventsForOrganization", organizationId: 66});}); </script> </p> | |
Customizing CSS | |
.event .event-text-wrapper { | |
text-align: left; | |
font-size: 1.2em !important; | |
} | |
.event .event-description { | |
margin-top:1em; | |
} | |
#org-event-list .event-title, #event-list .event-title { | |
font-size: 1.8em !important; | |
line-height:1.6em !important; | |
} | |
Adding default image if no image script hack | |
<script type="text/javascript">// <![CDATA | |
setTimeout(function() { | |
$(".event-image").each(function() { | |
if ($(this).attr("src") ==""){ | |
$(this).attr("src", 'http://www.durangobusiness.org/uploads/3/9/2/7/39274993/1443109167.png'); | |
} | |
}); | |
}, 2000); | |
// ]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment