Commits

Scott Nixon  committed 546514f

Updated code to put up splash page with info and to do my first real world usage on happyherbivore.com.

  • Participants
  • Parent commits 5c7f3fb

Comments (0)

Files changed (4)

File inbounding/dispatch/static/css/ck_main.css

 }
 
 .inner-light {
-    margin: -2px 0px 0px -2px;
+    margin: 0 0;
     border: 1px solid #BBB;
     background-color: #F4F4F4;
 }
     width: 40px;
     position: relative;
     color: purple;
-    padding: 0 5px;
+    padding: 2px 5px;
     text-align: center;
     float: right;
 }

File inbounding/dispatch/static/css/love.css

     width: 978px;
     padding: 1em 1em;
 }
+.topbar h3 a {
+    font-size: 28px;
+}
 h1#title {margin: 0;}
 h1 {
     color: #28343b;

File inbounding/dispatch/static/in.js

   throw new Error("unimplemented method");
 };
 
+INBOUND.host_p = 'dev.contextkick.com';
+
 INBOUND.setCookie = function(name,value,maxage,path,domain) {
     /*
      * Pass the function the name, value, max-age, & domain for the cookie
 
 INBOUND.queryAction = function(ref_url, host_url, callback) {
     var host_d = 'localhost:8100';
-    var host_p = 'in_dev.ep.io';
-
+    
     $.ajax({
-	url: 'http://'+ host_d + '/api/refer/?ref=' + ref_url + '&u=' + host_url,
+	url: 'http://'+ INBOUND.host_p + '/api/refer/?ref=' + ref_url + '&u=' + host_url,
 	type: 'GET',
 	dataType: 'jsonp',
 	success: function(results) {
 
 	    if (results && typeof results === 'object') {
 		
-		/* Template to show to every user that has not close or completed. */
-		var tmplt1a = "<div id='ck_container'><div class='top-layer'><div class='hide-open inner-light'><a id='ck_close' onclick='INBOUND.close();'>close</a></div></div><div class='inner-light'><div class='action_box'>"
+		/* Template to show to every user that has not closed or completed. */
+		var tmplt1a = "<div id='ck_container'><script>FB.Event.subscribe('edge.create', function(response) { _gaq.push(['_trackEvent', 'ContextKick', 'FacebookLike', href]); });</script><div class='top-layer'><div class='hide-open inner-light'><a id='ck_close' onclick='INBOUND.close();'>close</a></div></div><div class='inner-light'><div class='action_box'>"
 		
 		/* Template to show to users that have closed the Container. */
 		var tmplt1b = "<div id='ck_container' class='ck_closed'><div class='top-layer'><div class='hide-open inner-light'><a id='ck_close' onclick='INBOUND.close();'>close</a></div></div><div class='inner-light'><div class='action_box'>"
     /* This is used to close the overlay action box. 
      * Cookie expires in 30 days.
      */
+    _gaq.push(['_trackEvent', 'ContextKick', 'Close', 'Facebook Static Overlay']);
     $('#ck_container').hide();
     // Value = 101 for Closed
     INBOUND.setCookie('ck_status-' + INBOUND.action_id, INBOUND.action_id + '=' + 101, (60*60*24*30), '/', '');
     INBOUND.loadcss();
 };
 
-INBOUND.css = 'http://localhost:8100/static/css/ck_main.css?v=3';
+INBOUND.css = 'http://' + INBOUND.host_p + '/static/css/ck_main.css?v=10';
 
 /* Load CSS into the page with the Action Box.*/
 INBOUND.loadcss = function loadcss() { 
 (function () {
 
     /* INIT referrer and host domain values */
-    var referrer = 'digg.com'; //document.referrer;
+    var referrer = document.referrer; //'digg.com';
     var dom = document.URL;
 
     /* 

File inbounding/dispatch/templates/index2.html

       prompt them with a call to action. IF and only if, the call to action is relivant to them.
     </p>
 
-
+    <h1>How it works:</h1>
     <div class="row">
 
       <div class="span-one-third">
 	    <li>What is your most important re-engagement point with your users? 
 	      Facebook, Twitter, Email, etc.</li>
 	    <li>What action do you want them to take? Follow, Like, Join, etc.</li>
-	    <li>Get the HTML. <a href="">get it here.</a></li>
+	    <li>Get the HTML. <!-- <a href="">get it here.</a> --></li> 
 	  </ol>
       </p>
       </div>      
 	<h3 class="">Add the Javascript</h2>
 	<p>
 	  <ol>
-	    <li>Embedded Html or Absolute Html</li>
+	    <li>Embedded Html or Absolute Html.</li>
 	    <li>Add the Javascript.</li>
-	    <li>If Embed add the &lt;DIV&gt;</li>
+	    <li>If Embed add the &lt;DIV&gt;.</li>
 	  </ol>
 	</p>
       </div>    
       <div class="span-one-third">
 	<h3 class="">Increase Conversation</h2>
 	<p>
-	  Measure new visitors that convert on your Call-to-Action.
+	  <ol>
+	    <li>Configure Google Analytics Events.</li>
+	    <li>Measure the Engagement.</li>
+	  </ol>
 	  <ul>
 	    <li></li>
 	  </ul>