Daily wallpaper widget

Native JS, Legacy-version


Only necessary options, rest are defaults .dwp

options = {
 pathToAPI: "https://tstx.ru/widgets/dailywallpaper/api.php"
}
		

No access to API, use fallback image .fallback

options = {
 attachTo: ".fallback",
 fallbackImg: "../widgets/dailywallpaper/fallback.png"
};
		

Widget with full set of options w/o FX .fullset

options = {
 attachTo: ".fullset",
 pathToAPI: "https://tstx.ru/widgets/dailywallpaper/api.php",
 obtainAttempts: 5,
 obtainAwait: 10000,
 fallbackImg: "../widgets/dailywallpaper/fallback.png",
 fxNames: null
};
		

Widgets with effects .fx1, .fx2, .fx3

options = {
 attachTo: ".fx1, .fx2, .fx3",
 // ... ,
 fxNames: "illusion, vibrance, dimmed, ..."
};
		

Multiple instances .multiple

options = {
	attachTo: ".multiple"
};
		

Fullscreen .fullscreen

options = {
	// ...
	fxNames: "fullscreen"
};