![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@codersrank/timeline
Advanced tools
Codersrank Timeline Widget is a web component that allows you easily integrate your work experience or portfolio information in a form of a timeline from your CodersRank profile to your personal website:
Widget script available through NPM:
npm i @codersrank/timeline --save
After installation you need to import and register web component:
import CodersrankTimeline from '@codersrank/timeline';
// register web component as <codersrank-timeline> element
window.customElements.define('codersrank-timeline', CodersrankTimeline);
Widget can also be downloaded or linked directly from CDN:
<!-- replace x.x.x with actual version -->
<script src="https://unpkg.com/@codersrank/timeline@x.x.x/codersrank-timeline.min.js"></script>
In this case it is not required to register web component, it is already registered as <codersrank-timeline>
element.
As it is a web component the usage is pretty simple, just add widget HTML tag with your CodersRank username
<codersrank-timeline type="technologies" username="YOUR_USERNAME"></codersrank-timeline>
Widget supports following properties as HTML element attributes:
Name | Type | Default | Description |
---|---|---|---|
username | string | Your CodersRank username | |
type | string | workexperience | Specify which data to show. Can be workexperience , portfolio or technologies |
branding | boolean | true | Displays "Powered by CodersRank" link |
For example:
<codersrank-timeline username="YOUR_USERNAME" type="workexperience"></codersrank-timeline>
It is possible to customize widget colors with CSS Custom Properties (CSS Variables) by setting them directly on the widget element with style attribute or in CSS.
There are following CSS Custom Properties are available:
Property | Value |
---|---|
--preloader-color | #72a0a8 |
--year-font-size | 12px |
--year-opacity | 0.5 |
--year-height | 24px |
--year-text-color | currentColor |
--year-line-color | currentColor |
--year-line-opacity | 0.25 |
--col-width | 24px |
--row-height | 36px |
--timeline-item-bg-color | #f1f1f1 |
--timeline-item-text-color | inherit |
--timeline-item-font-size | 12px |
--timeline-item-padding | 4px 8px |
--timeline-item-border-radius | 4px |
--tooltip-logo-size | 32px |
--tooltip-font-size | 14px |
--tooltip-width | 320px |
--tooltip-padding | 16px |
--tooltip-bg-color | #fff |
--tooltip-border-radius | 4px |
--tooltip-text-color | #333 |
--tooltip-box-shadow | 0px 10px 20px rgba(0, 0, 0, 0.1) |
--tag-border | none |
--tag-star-color | #ff9900 |
--tag-bg-color | rgba(0, 0, 100, 0.075) |
--tag-font-size | 0.85em |
--tag-font-weight | bold |
--tag-padding | 0.35em 0.57em |
--tag-margin | 0.28em |
--tag-border-radius | 4px |
--tag-text-color | inherit |
--branding-text-color | inherit |
For example, to change year label font-size 14px
, add this to CSS stylesheet:
codersrank-timeline {
--year-font-size: 14px;
}
Yes please! See the contributing guidelines for details.
This project is licensed under the terms of the MIT license.
FAQs
Codersrank Timeline Widget
The npm package @codersrank/timeline receives a total of 154 weekly downloads. As such, @codersrank/timeline popularity was classified as not popular.
We found that @codersrank/timeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.