Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
hexo-tag-twentytwenty
Advanced tools
Hexo tag to embed Image Comparison Slider Scripts. Image Comparison Slider depend on jQuery Twenty Twenty plugin.
Hexo tag to embed Image Comparison Slider Scripts. Image Comparison Slider depend on JQuery Twenty Twenty plugin.
Hexo tag to embed Image Comparison Slider Scripts. Image Comparison Slider depend on JQuery Twenty Twenty plugin.
https://photo-tea.com/p/hexo-tag-twentytwenty/
npm install hexo-tag-twentytwenty --save
Create Embedded twentytwenty with following syntax:
{% twtw before-image after-iamge [width] [height] %}
{% twtw before.jpg after.jpg %}
Will output the HTML:
<div>
<img src="before.jpg">
<img src="after.jpg">
</div>
if you want to set width
and height
.
{% twtw before.jpg after.jpg 800 600 %}
Will output the HTML:
<div>
<img src="before.jpg" data-width="800" data-height="600">
<img src="after.jpg" data-width="800" data-height="600">
</div>
You can configure this plugin in _config.yml
. The options are as follows .
option | description | default |
---|---|---|
class | class name of div | none |
imgClass | class name of img | none |
embedAsset | if you want to read external file , please add asset file path. This actually need jQuery as a dependency. | none |
Example:
twentytwenty:
class:
- twentytwenty-container
- embeded-twentytwenty
imgClass:
- photo
- round
embedAsset:
- https://cdnjs.cloudflare.com/ajax/libs/mhayes-twentytwenty/1.0.0/css/twentytwenty.min.css
- https://cdnjs.cloudflare.com/ajax/libs/mhayes-twentytwenty/1.0.0/js/jquery.event.move.min.js
- https://cdnjs.cloudflare.com/ajax/libs/mhayes-twentytwenty/1.0.0/js/jquery.twentytwenty.min.js
- /js/twentytwenty.js
For example , /js/twentytwenty.js
is as follows .
(function(){
$(document).ready(
function() {
initialize_twentytwenty();
}
);
function initialize_twentytwenty(){
if($(".twentytwenty-container").twentytwenty){
$(".twentytwenty-container").twentytwenty();
}else{
setTimeout(function(){
initialize_twentytwenty();
},250);
}
}
})();
MIT
Hexo - https://hexo.io/ JQuery Twenty Twenty - https://github.com/zurb/twentytwenty
FAQs
Hexo tag to embed Image Comparison Slider Scripts. Image Comparison Slider depend on jQuery Twenty Twenty plugin.
We found that hexo-tag-twentytwenty 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.