https://github.com/outeredge/javascript-snippets
Useful JS snippets for multiple libraries
https://github.com/outeredge/javascript-snippets
Last synced: 12 months ago
JSON representation
Useful JS snippets for multiple libraries
- Host: GitHub
- URL: https://github.com/outeredge/javascript-snippets
- Owner: outeredge
- Created: 2012-06-18T14:17:34.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-05T15:02:07.000Z (over 12 years ago)
- Last Synced: 2023-03-23T23:36:35.741Z (over 3 years ago)
- Language: JavaScript
- Size: 195 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
javascript-snippets
===================
Useful JS snippets for multiple libraries
#Cookie Law Popup
* script should be placed before body end
* div must have id: ```cookiePopup```
* ```timesShown``` specifies the number of page loads before cookie is no longer incremented (and popup does not show)
* modify ```showCookiePopup()``` & ```hideCookiePopup()``` if you want smooth animations (css3 classes)