Career widget is customizable JavaScript which you can place into your company website.
Career widget displays all available information about vacancies posted from Teamio such as a list of open vacancies, job description and reply form.
We are providing a piece of JavaScript code snippet which needs to be placed into your website wherever your career section should be displayed.
Once you have configured the widget send us a request for the API key and widget ID which needs to be put into snippet configuration.
Snippet renders HTML structure with simple theme and other styling of it is up to you.
Paste this code into your web page.
<div id="capybara"></div>
<script type="application/javascript">
var __LMC_CAREER_WIDGET__ = {
apiKey: 'example_api_key',
widgetId: '12345000-0000-1000-a000-000000000000',
selector: '#capybara'
};
</script>
And this script (widget) you can put anywhere into head or body of html document (for example at the end of body or into your footer):
<script src="https://snippet.capybara.lmc.cz/js/widget-4.x.x.min.js" async defer></script>

https://snippet.capybara.lmc.cz/js/widget-<major-version>.x.x.min.js for latest major releasehttps://snippet.capybara.lmc.cz/js/widget-<semver-version>.min.js for specific releaseExamples:
https://snippet.capybara.lmc.cz/js/widget-4.x.x.min.jshttps://snippet.capybara.lmc.cz/js/widget-4.0.0.min.jsWe recommend to use
widget-<major-version>.x.x.min.jswhich is already up to date with latest major release.
We also recommend to load script directly from our servers to stay up to date with latest features and bug fixes.
https://snippet.capybara.lmc.cz/js/widget-4.x.x.min.js (see Upgrading from 3.x.x to 4.x.x)https://snippet.capybara.lmc.cz/js/widget-3.x.x.min.jshttps://snippet.capybara.lmc.cz/js/widget-2.x.x.min.jshttps://snippet.capybara.lmc.cz/js/widget-1.x.x.min.jsSee latest changes in our public changelog file.
https://snippet.capybara.lmc.cz/changelog.htmlVersion 4 makes the job listing, job detail and reply form accessible to keyboard and screen reader users. Configuration, routing and events are unchanged. Most cp-* classes stay, but the HTML structure changes in several places, so custom CSS and JavaScript on your site may need an update. Version 3 keeps working until you switch the script URL to widget-4.x.x.min.js.
.cp-job__link is an <article> instead of <a>. The link is an <a> inside .cp-job__name and contains only the position name; it still covers the whole card, so the card stays clickable.a.cp-job__link selectors with .cp-job__link..cp-job__link:focus never matches anymore. Use .cp-job__link:focus-within or .cp-job__name a:focus-visible and keep a visible focus style.a styles (color, underline, :visited) now apply to the position name. Add e.g. .cp-job__name a { color: inherit; text-decoration: inherit; } if needed.href, target, click) must target .cp-job__name a.position: static on .cp-job__link or any position on .cp-job__name a. Your own buttons or links inside the card need position: relative; z-index: 1..cp-list is a <div> instead of <article>..cp-job__name has role="heading" with aria-level 3 by default (one level below its group heading). Do not insert your own headings into the card..cp-job__salary, .cp-job__locality, …) start with a visually hidden label in .cp-sr-only. If you render attr(data-label) via ::before/::after, mark it as decorative so it is not read twice: content: attr(data-label) / "";. Check selectors like .cp-job__salary > span or :first-child.<nav> inside section.cp-paging. Replace .cp-paging > … selectors with .cp-paging …. Previous/next arrows are plain links without role="button".aria-disabled="true" instead of disabled, so style .cp-button--loading or [aria-disabled="true"] instead of :disabled..cp-info__basic-list, .cp-info__suitable-list) are <ul> with <li> items. Terms and values are <div class="cp-info__term"> and <div class="cp-info__description"> instead of <dt> and <dd>.<a class="cp-button …">) instead of <button>.novalidate); errors are linked to their fields and announced to screen readers.h3.cp-form__group-title is wrapped in legend.cp-form__group-legend, and the checkbox group label .cp-form__label is a <legend> instead of <label>..cp-form__checkbox-item.<a> or <span role="button"> (repeat field buttons, "show more" in the consent text) are <button type="button">. Check your button styles.widget-4.x.x.min.js on a test page first.a.cp-job__link, .cp-job__link:focus, .cp-paging >, :disabled on load more, [role="button"], dt/dd inside .cp-info and attr(data-label).You can pass configuration options to the widget by definition variable __LMC_CAREER_WIDGET__:
var __LMC_CAREER_WIDGET__ = {
...options
}
Widget will be rendered automatically after script is ready.
apiKey: string: credentials for communication with API backend; will be generated by us.widgetId: string: identification of exact widget; will be generated by us.selector: string: id or class name of html element in which will be widget renderedgtm: GtmConfig: enables Google Tag Manager tracking; by default nullid: string: Google Tag Manager tracking idinsertScript: boolean: inserts Google Tag Manager tracking script; by default falseverbose: boolean: enable debug logging into console; disabled by defaultscrolling: ScrollOptions: defines scrolling options after render pageoffsetTop: number: x-coord; by default 0behavior: string: Enum from ScrollToOptions dictionary; by default smoothdisableTracking: boolean: when true it disables storing tracking id into Local Storage; false by default For routing between widget views/screens/pages we are using query strings. Widget adds its query string parameters to an existing url and its parameters. It does not modify or replace existing url format or parameters
Please, make sure that your web server does not remove query string parameters from url. If so, please modify your webserver configuration or contact us for further assistance.
//?p=2/?r=detail&id=cpbr-1000000000/?r=reply&id=cpbr-1000000000You can add event listener to root container element and listen to widget custom events.
All events are bubbling { bubbles: true }.
Events are dispatched after component is rendered.
LMC_career_widget_listingRenderedLMC_career_widget_detailRendered with { detail: { jobAdId, positionName, customFields}}LMC_career_widget_replyFormRendered with { detail: { jobAdId, positionName, customFields}}LMC_career_widget_replyFormHoorayRendered with { detail: { jobAdId}}LMC_career_widget_errorRendered with { detail: { errorType: 'generalError | positionError | pageNotFound'}}LMC_career_widget_pageRendered with { detail: { pageType: 'listing | detail | replyForm | hooray', jobAdId, positionName, customFields}}Events are dispatched on transitions between pages.
LMC_career_widget_pageLeft with { detail: { pageType: 'listing | detail | replyForm | hooray', jobAdId, positionName, customFields}}Example:
<script>
function eventHandler(event) {
console.log('The detail is: ' + JSON.stringify(event.detail));
}
var container = document && document.getElementById('capybara');
container.addEventListener('LMC_career_widget_listingRendered', eventHandler);
</script>
If there is something that does not work or if you need to get API Key or WidgetId, please, contact us.