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
using RestSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Script.Serialization; | |
namespace RetailerUrlStatusChecker |
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
--[[-- | |
Use this file to specify User preferences. | |
Review [examples](+/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/cfg/user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details. | |
--]]-- | |
editor.fontsize = 14 | |
editor.usewrap = false | |
editor.tabwidth = 4 | |
editor.indentguide = true | |
editor.fold = true | |
editor.foldtype = 'arrow' |
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
/// ******************************************************************************************************************* | |
/// **** THIS IS AN EXCERPT; I'M ONLY SHOWING RELEVANT PARTS OF THIS FILE, ALONG WITH NOTES ON HOW TO MAKE IT WORK **** | |
/// ******************************************************************************************************************* | |
/// Mostly based on info found here: http://devnet.kentico.com/forums/f68/fp12/t34518/using-web-api-with-kentico | |
/// NOTE: The following DLLs seemed to be necessary for this to work properly and not blow up Kentico: | |
/// Newtonsoft.Json.dll | |
/// System.Net.Http.dll | |
/// System.Net.Http.Formatting.dll |
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
-- Putting a rectangle at the bottom of the screen and having it expand | |
-- all the way across the screen, like a status bar. | |
-- Important to note: I'm using "Letterbox" mode in my config.lua | |
local actualBottomY = display.contentHeight - display.screenOriginY | |
local actualTopY = display.screenOriginY | |
local deviceWidth = ( display.contentWidth - (display.screenOriginX * 2) ) / display.contentScaleX | |
local scaleFactor = deviceWidth / display.actualContentWidth | |
local actualWidth = (deviceWidth / scaleFactor) | |
local actualLeftX = (display.contentWidth - actualWidth) * .5 |
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
// PLACE THIS HTML where you want the star rating and "Read x Reviews" to show up | |
// <div id="bvReview" data-productid="3898"></div> | |
// ..................... Javascript for bazaarvoice reviews and ratings for a single product ................................. | |
$(document).ready(function() { | |
// This part just readies the bvReview DIV to be filled with the star rating and a "Read reviews" link | |
var bvrrDiv = $('#bvReview'); | |
var productId = bvrrDiv.attr("data-productid"); | |
bvrrDiv.append("<div id='BVRRInlineRating-" + productId + "'>"); |
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
// Bazaarvoice Ratings and Reviews Div | |
liBody += "<div id='review-" + dealerId.toString() + "' style='margin-left:16px;'></div>"; | |
// ... | |
// ... much later ... | |
// ... | |
// Bazaarvoice related configuration script |
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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<!-- TODO: | |
Do some kind of loop here to show your results. | |
Inside the loop, you'd generate HTML similar to the following: --> | |
<div id="BVRRInlineRating-{productId}"></div> | |
<a href="" class="bvReadReviews" data-pid="{productId}">Read reviews</a> | |
<!-- End Loop That Generates HTML for results --> | |