This application parses the sinoptik.ua site, collects information and renders a comfortable view for it with a powerful print feature.
Preview by Github Pages: heabijay.github.io/sinoptik-dashboard.
Sinoptik.ua has awful print output: it contains advertisements, displays only one day per page, has a reduced size of content due exists ads. Our page has a redesigned UI, which allows us to display up to 5 days per page and doesn't contains ads.
Sinoptik.ua currently doesn't allow CORS requests on different origins so we use an CORS Proxy called AllOrigins (github).
The configuration of CORS Proxy available in js/main.js:1
:
class CorsProxy {
constructor() { }
static makeTunnel(url) {
return `https://api.allorigins.win/get?url=${encodeURIComponent(url)}`
}
static getDataFromResponse(response) {
return response.contents;
}
}