DefyGG / poolesvilleschedule

https://defygg.github.io/poolesvilleschedule/
3 stars 3 forks source link

Get emergency message #7

Closed zbrachinara closed 1 year ago

zbrachinara commented 2 years ago

This feature from #4

Right now it's only the function that gets the message, and also hasn't been tested yet. Therefore this PR is a draft until at most winter, when it can be proven.

DefyGG commented 2 years ago

Looks good, hopefully we have something. Maybe we could use Way Back Machine if some of the old emergency messages are still indexed.

zbrachinara commented 2 years ago

I actually wrote down some dates in waybackmachine that contained closures in 2022 with this style: closures: 20220103112320 20220104112346

delays: 20220105232333

zbrachinara commented 1 year ago

This change looks pretty doomed due to CORS rules. I tried again using firefox and it seems like this kind of query is blocked, so it seems like there is no way to get this information from clientside without an established API.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://montgomeryschoolsmd.org/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 302.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://montgomeryschoolsmd.org/. (Reason: CORS request did not succeed). Status code: (null).