Benchmark
var benchmark_iframe = document.createElement('iframe');
benchmark_iframe.width = "100%";
benchmark_iframe.height = "800";
benchmark_iframe.setAttribute("scrolling","no");
benchmark_iframe.setAttribute("frameborder","0");
benchmark_iframe.setAttribute("id","benchmark-rings-iframe");
benchmark_iframe.style.overflow = "hidden";
var load_hash = window.location.href.split('#')[1];
var load_path = "wedding-rings";
if ( load_hash && load_hash != "" )
load_path = load_hash;
function load_benchmark_iframe(load_path, is_pop) {
if ( load_path && typeof(load_path) == "string" && load_path != "" ) {
var lp = load_path.replace('#','');
if (is_pop) { lp = (lp + "?pop=true"); }
benchmark_iframe.src = "https://www.benchmarkrings.com/iframe/retailer/ja-ZT32zhC5hdeTjSQU_gA/" + lp;
}
else
benchmark_iframe.src = "https://www.benchmarkrings.com/iframe/retailer/ja-ZT32zhC5hdeTjSQU_gA/wedding-rings";
}
load_benchmark_iframe(load_path, false);
var benchmark_div = document.getElementById('benchmark-rings-embed');
var benchmark_text_above = document.createElement('div');
var benchmark_text_below = document.createElement('div');
benchmark_text_above.innerHTML = '
The prices on the website may differ from the actual sale price. Please note that Diamonds East is not liable for incorrect pricing on the website. Please contact the store at (561) 353-3278 for most accurate pricing and to place orders.
'; benchmark_text_above.setAttribute("id","benchmark-rings-top-text"); benchmark_text_below.innerHTML = ''; benchmark_text_below.setAttribute("id","benchmark-rings-bottom-text"); benchmark_text_above.style.margin = "0 auto 15px auto"; benchmark_text_above.style.padding = "10px 1%"; benchmark_text_below.style.margin = "15px auto 0 auto"; benchmark_text_below.style.padding = "10px 1%"; benchmark_div.appendChild(benchmark_text_above); benchmark_div.appendChild(benchmark_iframe); benchmark_div.appendChild(benchmark_text_below); var script = document.createElement('script'); script.type = 'text/javascript'; script.src = "https://assets.benchmarkrings.com/assets/iframe_resize.js"; document.body.appendChild(script); window.addEventListener('message', receiveMessage, false); function receiveMessage(event) { if ( event && event.data && typeof event.data == 'string' && event.data.indexOf('#') >= 0 ) { var stateObj = { hash: event.data }; history.replaceState(stateObj, "Benchmark Rings", event.data); } else if ( event && event.data && typeof event.data == 'string' && event.data == 'scrolltop' ) window.scrollTo(0, 0); } window.addEventListener('popstate', function(event) { if ( event && event.state && event.state.hash && event.state.hash.indexOf('#') >= 0 ) load_benchmark_iframe(event.state.hash, true); });