Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
rater-jquery
Advanced tools
Readme
A highly customizable rating widget that supports images, utf8 glyphs and other html elements!
Depends on jQuery
// Options
var options = {
max_value: 10,
step_size: 0.5,
initial_value: 0,
selected_symbol_type: 'utf8_star', // Must be a key from symbols
cursor: 'default',
readonly: false,
change_once: false, // Determines if the rating can only be set once
ajax_method: 'POST',
url: 'http://localhost/test.php',
additional_data: {} // Additional data to send to the server
}
$(".rating").rate(options);
The data-rate-value attribute is optional. The value will fallback to the initial value in the settings and to 0 if not provided.
<div class="rating" data-rate-value=6></div>
$(".rating").rate("getValue");
$(".rating").rate("setValue");
$(".rating").rate("increment");
$(".rating").rate("decrement");
$(".rating").rate("getElement", layer_name, element_index);
$(".rating").rate("getLayers");
$(".rating").rate("setFace", value, face);
$(".rating").rate("removeFace", value);
// Set additional information to be sent with the ajax request
$(".rate2").rate("setAdditionalData", {id: 42});
$(".rate2").rate("getAdditionalData");
$(".rating").on("change", function(ev, data){
console.log(data.from, data.to);
});
$(".rate2").on("updateSuccess", function(ev, data){
console.log("This is a custom success event");
});
$(".rate2").on("updateError", function(ev, jxhr, msg, err){
console.log("This is a custom error event");
});
$(".rating").rate("destroy");
$(".rating").remove(); //This will remove the elements from the DOM
FAQs
A highly customizable rating widget that supports images, utf8 glyphs and other html elements
The npm package rater-jquery receives a total of 81 weekly downloads. As such, rater-jquery popularity was classified as not popular.
We found that rater-jquery 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.