Cookie does not remember when a user goes back to defult size
Permalink Browser Info Environment
Hi, first off, I really like this plug-in but second, I noticed a problem with the cookie, it does not remember when a user chooses to reset the text back to it's original size. Is there an easy fix for this?
Thanks!
Thanks!
Type: | Discussion |
---|---|
Status: | New |
This was the first time I have used the jQuery cookie plug-in and it has a few caveats, so anyone else who runs into the issue and looks up the documentation needs to be aware that the documentation is incorrect as pointed out in this getHub discussion:
https://github.com/carhartl/jquery-cookie/issues/21...
so I adjusted the code in the reset function to just delete the cookie because it was the quickest solution I had time for...
Search for this:
a(this).css("font-size","");
and add this right after:
$.cookie("fontscale", null, {path:'/'});
To embed in your templates, you will need to load the javascript in your header file or this plug-in will not work when embedded.