hejny / ukraine Goto Github PK
View Code? Open in Web Editor NEWHelp Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.
License: Apache License 2.0
Help Ukraine - add ribbon with Ukraine flag into the website you manage, show the anti-war message to Russian users, or block them from your service.
License: Apache License 2.0
In node environment this throws error on not finding a window - but for some users it can be confusing
import Ukraine from 'save-ukraine';
Ukraine.save();
parse argument options
Library home page: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/minimist/package.json
Dependency Hierarchy:
Found in HEAD commit: 00c2b0044184130f87ecdce1346d0c7f3ac46650
Found in base branch: main
Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).
Publish Date: 2022-03-17
URL: CVE-2021-44906
Base Score Metrics:
Type: Upgrade version
Origin: https://github.com/substack/minimist/issues/164
Release Date: 2022-03-17
Fix Resolution: minimist - 1.2.6
Step up your Open Source Security Game with WhiteSource here
Because there is a <div>
and only after the <a>
with the rotation, it happens that the parent div covers a "transparent" part of the screen.
For instance, take this code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bug</title>
</head>
<body>
<div style="background: black; width: 200px; height: 40px;" onclick="alert('miao')"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/main.js"
integrity="sha384-Xn1RAG80M8PZlBQh3r8fUvHY7c8RtuplSnqXOkdJyCxqRsToRwJ1m2FP7vyJo7u/"
crossorigin="anonymous"></script>
<script>
Ukraine.save({
ribbon: 'TOP_LEFT',
hasShadow: true,
countries: [],
});
</script>
</body>
</html>
You will see that if you click the black rectangle, it will not display any alert, because the ribbon's parent is obscuring it. In the image below, the covering div is with a purple boder:
A solution would be just to remove the superfluous div container and moving the first transform directly to the tag
For example message from Volodymyr Zelensky to Russian people
https://www.facebook.com/100001517469662/posts/5076389812421551/
And save it into the localstorage
The message "stop the war" is too vague and unclear. Also the translation reads "Stopping the war in Ukraine" and not stop the war.
According to Russian propaganda they already are stopping the war by waging the war(ill logic) so this message is about nothing. Need better targeted message.
For example by some GET param like ?test=Ukraine
Would you accept a PR to open this up for other conflict regions of the world?
I just do not know how to achieve this?
navigator.languages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.