var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var Grnhse = Grnhse || {}; Grnhse.Settings = { targetDomain: 'https://webcf.waybackmachine.org/web/20220401194908/https://boards.greenhouse.io', scrollOnLoad: false, autoLoad: false, boardURI: 'https://webcf.waybackmachine.org/web/20220401194908/https://boards.greenhouse.io/embed/job_board?for=fueled', applicationURI: 'https://webcf.waybackmachine.org/web/20220401194908/https://boards.greenhouse.io/embed/job_app?for=fueled', baseURI: 'https://webcf.waybackmachine.org/web/20220401194908/https://fueled.com/jobs', iFrameWidth: 650 }; var Grnhse = Grnhse || {}; Grnhse.Const = { JOB_ID: 'gh_jid', SOURCE_TOKEN: 'gh_src' }; Grnhse.Config = { IframeDefault: { id: 'grnhse_iframe', width: Grnhse.Settings.iFrameWidth, frameborder: '0', scrolling: 'no', allow: 'geolocation', onload: undefined, title: 'Greenhouse Job Board' } }; Grnhse.Route = { boardUrl: function(source) { var helper = Grnhse.UriHelper, settings = Grnhse.Settings, params = []; if (source) { params.push('t=' + source); } return helper.appendParams(settings.boardURI, params); }, applicationUrl: function(source, jobId) { var helper = Grnhse.UriHelper, settings = Grnhse.Settings, params = []; if (source) { params.push('t=' + source); } if (jobId) { params.push('token=' + jobId); } return helper.appendParams(settings.applicationURI, params); } }; Grnhse.UriHelper = { base: function() { var uriHelper = Grnhse.UriHelper, location = uriHelper.currentLocation(), settings = Grnhse.Settings; return window && location ? uriHelper.pathFromLocation(location) : settings.boardURI; }, currentLocation: function() { return window.top.location; }, getParam: function(name) { var location = Grnhse.UriHelper.currentLocation(), uri = location.href, start = uri.indexOf(name), end; if (start === -1) { return null; } start += name.length + 1; end = uri.substr(start).search(/(&|#|$|;)/); return uri.substr(start, end); }, appendParams: function(url, params) { params.push('b=' + Grnhse.UriHelper.base()); url += (url.indexOf('?') === -1) ? '?' : '&'; return url + params.join('&'); }, pathFromLocation: function(location) { return encodeURIComponent(location.protocol + '//' + location.host + location.pathname); } }; Grnhse.BrowserHelper = { supportsPostMessage: function() { return !(document.all && !window.atob); } }; Grnhse.Iframe = function(src, overrides) { var settings = Grnhse.Settings, self = this; overrides = overrides || {}; this.config = Grnhse.Config.IframeDefault; this.config.src = src; this.supportAwfulBrowsers(); overrides['onload'] = settings.scrollOnLoad ? 'window.scrollTo(0,0)' : undefined; mergeOverrides.call(this); this.registerEventHandlers(); this.htmlElement = this.build(); this.render(); function mergeOverrides() { for (var override in overrides) { if (overrides.hasOwnProperty(override)) { self.config[override] = overrides[override]; } } } }; Grnhse.Iframe.prototype.build = function() { var iframe = document.createElement('iframe'), config = this.config; for (var key in config) { if (config.hasOwnProperty(key)) { iframe.setAttribute(key, config[key]); } } return iframe; }; Grnhse.Iframe.prototype.render = function() { var container = document.getElementById('grnhse_app'); container.innerHTML = ''; container.appendChild(this.htmlElement); }; Grnhse.Iframe.prototype.registerEventHandlers = function() { var instance = this, resizeEvent = null; if (window.addEventListener) { window.addEventListener('message', resize, false); window.addEventListener('resize', windowResize, false); } else if (window.attachEvent) { window.attachEvent('onmessage', resize); window.attachEvent('onresize', windowResize); } function windowResize(e) { // Pass resize event from parent window to iframe clearTimeout(resizeEvent); resizeEvent = setTimeout(triggerResize, 200); } function triggerResize() { if (window.postMessage && instance.htmlElement) { instance.htmlElement.contentWindow.postMessage('resize', '*'); } } function resize(e) { if (instance.htmlElement && e.origin === Grnhse.Settings.targetDomain && e.data > 0) { instance.htmlElement.setAttribute('height', e.data); } } }; Grnhse.Iframe.prototype.supportAwfulBrowsers = function() { var browserHelper = Grnhse.BrowserHelper; if (!browserHelper.supportsPostMessage()) { this.config['scrolling'] = 'yes'; this.config['height'] = 1000; } }; Grnhse.Iframe.load = function(jobId, source) { var r = Grnhse.Route, uriHelper = Grnhse.UriHelper, jobId = jobId || uriHelper.getParam(Grnhse.Const.JOB_ID), source = source || uriHelper.getParam(Grnhse.Const.SOURCE_TOKEN), viewingApplication = !!jobId, pathToLoad = viewingApplication ? r.applicationUrl(source, jobId) : r.boardUrl(source); return new Grnhse.Iframe(pathToLoad); }; var _grnhse = _grnhse || {}; _grnhse.load = Grnhse.Iframe.load; Grnhse.Iframe.autoLoad = function() { Grnhse.Iframe.load(); }; (function() { if (Grnhse.Settings.autoLoad) { addEventListener('load', Grnhse.Iframe.autoLoad); } })(); } /* FILE ARCHIVED ON 19:49:08 Apr 01, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:48:07 Nov 17, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.669 exclusion.robots: 0.033 exclusion.robots.policy: 0.019 esindex: 0.013 cdx.remote: 45.334 LoadShardBlock: 130.63 (3) PetaboxLoader3.datanode: 88.483 (5) PetaboxLoader3.resolve: 163.422 (3) load_resource: 186.547 (2) */