Created
October 21, 2011 05:04
-
-
Save softwaregravy/1303146 to your computer and use it in GitHub Desktop.
Revisions
-
softwaregravy revised this gist
Oct 24, 2011 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ <html> <body> <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; @@ -11,11 +9,11 @@ var api_key = "YOUR API KEY"; var app_id = "YOUR APP ID"; var content = "<div id=\"thinknear\"><a href=\"http://" + link_endpoint + "/offers/saved/" + id + "?app_id=" + app_id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + "</a></div>"; document.write(content); </script> </body> </html> -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; var id = "1234567890"; var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; var app_id = "YOUR APP ID"; var content = "<a href=\"http://" + link_endpoint + "/offers/saved/" + id + "?app_id=" + app_id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; var id = 1234567890; var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; var id = 1234567890; /* MUST BE UNIQUE STRING, less than 250 characters */ var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; -
softwaregravy renamed this gist
Oct 21, 2011 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,9 @@ var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; var app_id = "YOUR APP ID" var content = "<a href=\"http://" + link_endpoint + "/offers/saved/" + id + "?app_id=" + app_id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + "</a>"; -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 16 additions and 19 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,20 @@ <html> <body> <div id="thinknear"> </div> <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; var id = 1234567890; // MUST BE UNIQUE STRING, less than 250 characters var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; var content = "<a href=\"http://" + link_endpoint + "/offers/saved/" + id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + "</a>"; document.getElementById("thinknear").innerHTML = content; </script> </body> </html> -
softwaregravy revised this gist
Oct 21, 2011 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,8 @@ var content = "<a href=\"http://" + link_endpoint + "/offers/saved/" + id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + "</a>"; document.getElementById("thinknear").innerHTML = content; </script> -
softwaregravy created this gist
Oct 21, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <html> <body> <div id="thinknear"> </div> <script type="text/javascript"> var lat = 40.733722; var lon = -73.990683; var id = 1234567890; // MUST BE UNIQUE STRING, less than 250 characters var api_endpoint = "api-sandbox.thinknear.com"; var link_endpoint = "m2-s.thinknear.com"; var api_key = "YOUR API KEY"; var content = "<a href=\"http://" + link_endpoint + "/offers/saved/" + id + "\">" + "<img src=\"http://" + api_endpoint + "/1.1/ad_units/banner.jpg?api_key=" + api_key + "&loc_latitude=" + lat + "&loc_longitude=" + lon + "&id=" + id + "\"/>" + "</a>"; document.getElementById("thinknear").innerHTML = content; </script> </body> </html>