![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
reddit-wallpapers
Advanced tools
utility to help in fetching wallpapers with reddit api and loop setting them
npm i reddit-wallpapers --save
// ES5
const RedditWallpapers = require('reddit-wallpapers').default
// ES6
import RedditWallpapers from 'reddit-wallpapers'
<head>
<script src="https://mrf345.github.io/reddit-wallpapers/dist/RedditWallpapers.min.js"></script>
<script type='text/javascript'>
var options = {id: '.toChange'}
var WManager = RedditWallpapers(options)
</script>
</head>
<body>
<div class='.toChange'>
<h1>Reddit Wallpapers !</h1>
</div>
</body>
self.options = { // default options, if not provided
id: options.id || '.reddit', // id or css class of element to wallpaper to
category: options.category || self.categories, // Array of categories to choose from randomly
duration: options.duration || 10000, // duration of 5 seconds
aDuration: options.aDuration * 1000 || 1000, // transsition animation duration
limit: options.limit || 30, // limit of json items
timeout: options.timeout * 1000 || 5000, // request timeout in seconds
overlay: options.overlay || 'rgba(0,0,0,0.7)', // black transparnt overlay color
isOverlayed: options.isOverlayed || 'true', // to add overlay to the wallpaper
isFixed: options.isFixed || 'false', // to set wallpaper to fixed position
isMixed: options.isMixed || 'false', // to make sure wallpapers selected from mixed categories
isAnimated: options.isAnimated || 'true' // to use jQuery animation
}
Should work with anything newer than Internet Explorer 10
and NodeJS 10
.
Function | Describtion |
---|---|
WManager.next() | set the next wallpaper |
WManager.previous() | set the previous wallpaper |
WManager.stop() | stop loop setting wallpapers |
WManager.restart() | reset settings to default and restart intervals |
FAQs
utility to help in fetching wallpapers with reddit api and loop setting them
We found that reddit-wallpapers 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.