var server_address = "http://recyclinglocator.earth911.com"; (function() { if ( window.jQuery ) { // if jQuery is present, wait for window to load before injecting window.onload = function () { injectRLocator(); } } else { injectRLocator(); } function injectRLocator() { var jquery_script_tag = document.createElement('script'); jquery_script_tag.setAttribute("type","text/javascript"); jquery_script_tag.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"); document.getElementsByTagName("head")[0].appendChild(jquery_script_tag); if (jquery_script_tag.readyState) { jquery_script_tag.onreadystatechange = function () { // For old versions of IE if (this.readyState == 'complete' || this.readyState == 'loaded') { loadScript(jQuery); } }; } else { // Other browsers jquery_script_tag.onload = function(){ loadScript(jQuery); } } } function loadScript(jQuery) { jQuery.noConflict(); (function( $ ) { $(function() { // console.log($.fn.jquery); // console.log(jQuery.fn.jquery); jQuery.getScript("http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/require.js", function() { jQuery("#locator-widget").replaceWith( jQuery('
', { html: jQuery('
', { html: "<link rel='stylesheet' type='text/css' href="http://recyclinglocator.earth911.com/recycling-locator/c4ddb271156e27d2/widget-stylesheet/"> <div id="locator_widget_c4ddb271156e27d2"class=''> <div class='container-fluid'> <div class="row"> <div class="col-md-12"> <div id="header"> <div id="logo"> <h1> <img src="http://recyclinglocator.earth911.com/media/recycling-locator/c4ddb271156e27d2/logo.png" width="309" height="44" alt="Recycling Locator" /> </h1> </div> <div id="nav"> <div id="zip"> <form action="http://recyclinglocator.earth911.com/recycling-locator/postal/" method="get"> <label for="postal_code">Zip:</label> <input name="postal_code" type="text" /> <button class="rl_submit" type="submit" value="Submit">Submit</button> </form> </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="content"> <div class="row"> <div class="col-md-12"> <div id="subnav"> <ul id="breadcrumb" > <li><a id="link-materials">Select Material</a></li> <li><a id="link-results">Results</a></li> <li><a id="link-details">Listing Details</a></li> </ul> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="menu"> <div id="menu-panel"> <ul id="families"> </ul> <ul id="materials"> <li data-material-id="40" data-families="8"> <div class="material-image" style="background: url(http://recyclinglocator.earth911.com/media/recycling-locator/c4ddb271156e27d2/materials_sprite.jpg) no-repeat 0px 0;"></div> <a>Corrugated Cardboard</a> <p>Corrugated cardboard is a double-lined form of paperboard, giving it a different recycling market than other boxes.</p> <span class="divider arrow"> <span>»</span> </span> </li> <li data-material-id="411" data-families="8"> <div class="material-image" style="background: url(http://recyclinglocator.earth911.com/media/recycling-locator/c4ddb271156e27d2/materials_sprite.jpg) no-repeat -70px 0;"></div> <a>Waxed Cardboard</a> <p>Some paperboard is lined to handle extreme temperatures from refrigeration. This limits the recycling market.</p> <span class="divider arrow"> <span>»</span> </span> </li> </ul> <ul id="results"></ul> <div id="details"></div> <div id="pagination"> <div id="family-pagination"> <div><span id="family-count">0</span> categories</div> </div> <div id="material-pagination"> <div><span id="material-count">0</span> materials</div> </div> <div id="result-pagination"> <div> <span id="count-details"><span id="start-count">0</span>–<span id="end-count">0</span> of </span> <span id="total-count">0</span> results</div> <ol> <li><a>1</a></li> <li><a>2</a></li> <li><a>3</a></li> <li><a>4</a></li> <li><a>5</a></li> <li><a>6</a></li> <li><a>7</a></li> <li><a>8</a></li> <li><a>9</a></li> <li><a>10</a></li> </ol> </div> </div> </div> </div> <div id="map"></div> </div> </div> <div class="row"> <div class="col-md-12"> <div id="powered-by" class="vertigent">Powered by <a href="http://vertigent.com/solutions/" target="_blank">Vertigent</a></div> </div> </div> </div> </div> </div> </div> </div>" }).text() }).text() ); require.config({ baseUrl: "", shim: { "jui": ['jquery'], "easing": ['jui'], "locator_templates": ['easing', 'handlebars'], "leaflet": ['locator_templates'], "handlebars": ['jquery'], "hoverintent": ['jquery'], "moment": ['jquery'], "autocomplete": ['jui','jquery'], "bootstrap": ['jquery'], "behavior": ["handlebars", "leaflet", "moment", "bootstrap", "autocomplete", "hoverintent"] }, paths: { "jui": "http://recyclinglocator.earth911.com/static_collected/shared/js/jquery-ui", "jquery": "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min", "behavior": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/locator.widget.behavior", "leaflet": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/leaflet/leaflet-src", "handlebars": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/handlebars-1.0.0.beta.6", "hoverintent": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/jquery.hoverIntent.minified", "moment": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/moment.min", "easing": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/jquery.easing.1.3", "autocomplete": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/jquery.autocomplete", "locator_templates": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/locator.widget.templates", "bootstrap": "http://recyclinglocator.earth911.com/static_collected/recycling-locator/js/bootstrap.min" } }); require(["jquery", "easing", "leaflet", "handlebars", "hoverintent", "moment", "autocomplete", "locator_templates", "bootstrap", 'behavior'], function() { Earth.Locator = Earth.Locator || {}; Earth.Locator.app_id = 'c4ddb271156e27d2'; Earth.Locator.omit_when_single_material = "False"; Earth.Locator.show_families = false; Earth.Locator.show_search = false; Earth.Locator.center = new L.LatLng(38.0, -97.0); Earth.Locator.location_types = { 0: 'Commercial', 1: 'Government', 3: 'Household Hazardous Waste', 13: 'Non-Profit', 28: 'National Retail', 29: 'Regional Retail', 30: 'Unstaffed Bin', 31: 'Christmas Tree Events', 32: 'ABOP' }; Earth.Locator.program_types = { 0: 'Resource Contact Information', 1: 'Other', 2: 'Government Packaging Curbside', 3: 'Household Hazardous Waste', 4: 'Mail-In', 5: 'Commercial Curbside', 6: 'Government Organics Curbside', 7: 'Government Christmas Tree Curbside', 8: 'Government Bulky Waste Curbside' }; Earth.Locator.families = { 8: 'Paper' }; Earth.Locator.materials = { 40: 'Corrugated Cardboard', 411: 'Waxed Cardboard' }; Earth.Locator.markers = { 'default': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/recycle-green.png', 'width': 22, 'height': 29 }, 'curbside': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/program-curbside.png', 'width': 22, 'height': 22 }, 'national': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/program-national.png', 'width': 22, 'height': 22 }, 'program': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/program.png', 'width': 22, 'height': 22 }, 'index-0': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/0-green.png', 'width': 22, 'height': 29 }, 'index-1': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/1-green.png', 'width': 22, 'height': 29 }, 'index-2': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/2-green.png', 'width': 22, 'height': 29 }, 'index-3': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/3-green.png', 'width': 22, 'height': 29 }, 'index-4': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/4-green.png', 'width': 22, 'height': 29 }, 'index-5': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/5-green.png', 'width': 22, 'height': 29 }, 'index-6': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/6-green.png', 'width': 22, 'height': 29 }, 'index-7': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/7-green.png', 'width': 22, 'height': 29 }, 'index-8': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/8-green.png', 'width': 22, 'height': 29 }, 'index-9': { 'src': 'http://recyclinglocator.earth911.com/media/recycling-locator/9195dede0221533d/markers/9-green.png', 'width': 22, 'height': 29 } }; Earth.Locator.use_location = true; Earth.Locator.init(); } ); }); }); })(jQuery) }; })();