Manishearth / IIT-Timetable

Timetable generator for IIT Bombay
https://manishearth.github.io/IIT-Timetable/
GNU General Public License v2.0
15 stars 16 forks source link

Fix long URLs #9

Closed Manishearth closed 10 years ago

Manishearth commented 10 years ago

JSON.stringify()+encodeURIComponent = huge URL

We can possibly base64 encode it (atob(decodeURIComponent(data)) and encodeURIComponent(btoa(JSON.stringify(json))) work), or do something else. Either way, we won't have to percent encode the URL which makes it fatter.

Thoughts? @sushant-hiray

sushant-hiray commented 10 years ago

This makes sense. We should go ahead with this.

Just a food for thought, this would anyway can be pretty long too. How about add a button to give a bit.ly shortened version.

Manishearth commented 10 years ago

bitly is good.

sushant-hiray commented 10 years ago

Kewl!

Sushant Hiray, Senior Undergrad CSE, IIT Bombay

On Fri, Jul 11, 2014 at 1:11 PM, Manish Goregaokar <notifications@github.com

wrote:

bitly is good.

— Reply to this email directly or view it on GitHub https://github.com/Manishearth/IIT-Timetable/issues/9#issuecomment-48702736 .