https://github.com/tanerius/phash
Javascript HashTag Manipulator
https://github.com/tanerius/phash
Last synced: 11 months ago
JSON representation
Javascript HashTag Manipulator
- Host: GitHub
- URL: https://github.com/tanerius/phash
- Owner: tanerius
- License: gpl-2.0
- Created: 2015-05-22T07:21:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-22T08:52:46.000Z (over 10 years ago)
- Last Synced: 2025-01-08T18:48:29.993Z (12 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Phash
Javascript HashTag Manipulator
Installation
Include the javascript file in your html.
API:
Phash.setHash(key,value)
Sets the value of a given key. If it doesnt exist it is created. Setting the value to empty string disables the key.
Phash.getHash(key)
REturns the current value of a given key. If the key doesn't exist returns false
Phash.getArrayOfHashes()
Returns a hash map of all key->value pairs
Phash.clearHashes()
Clears all hash entries in the URL
Phash.getHashCount()
Returns a non negative number indicating the number of keys within the hash of the current URL