Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Formikation is a simple jQuery plugin to beautify form inputs with some css.
The elements to work with are:
input:checkbox
input:radiobutton
input:file
select
Take a look to online demo, there are some examples with diferent themes.
The only html requisite is to style radiobuttons and checkboxes. Them must be wrapped by a label
<label>
<input type="checkbox" name="check" id="check">
Checkbox label
</label>
<label>
<input type="radio" name="radio" id="radio">
Radio label
</label>
Formikation comes with a utility CSS that includes the neccessary CSS styles to work, without any visual styles on it. To add the utility CSS styles, add the .formikation
class to yout form element this way:
<form action="/" class="formikation" >
...
The visual styling of the formikation elements comes in an independet stylesheet, to keep separated the visual representation from the utility classes. Two themes are included in the repository .fk-theme-default
and .fk-theme-switches
.
Include the .fk-theme-default
class on the parent element along the base .formikation
class, this way:
<form action="/" class="formikation fk-theme-default" >
...
If you want to develop your own theme, take a look to src/themes/fk-theme-default.scss
and use it as base to do your own customization.
Call Formikation jQuery plugin on ready function:
$(function() {
$('form.formikation').find('select, input:file, input:checkbox, input:radio').formikation();
});
If you need to update any formikation element with js, it’s necessary to trigger formikation.update event to get UI change reflected.
// Active a checkbox
$('.form-element').prop('checked', true).trigger('formikation.update');
IE8 has some dificults on repainting :before
and :after
pseudo-elements after change checkbox or radiobuttons status.
Is simple to fix it, just change pseudo-element content from ''
to ' '
(this fix is applied on default theme).
FAQs
Unknown package
We found that formikation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.