This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function namespace_divname_toggle(){ | |
this.className=("active"==this.className.substr(0, 6))?"":"active"; | |
} | |
document.querySelector('#divname').addEventListener('click', namespace_divname_toggle ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns a compact date range like March 27-29, 1977 from two unix time stamps. If $end is empty | |
* or less than start returns start only. | |
* | |
* @param int $start Unix timestamp | |
* @param int $end Unix timestamp | |
* @param string $round Least unit of time to include - supported values: day, hour, minute | |
* @param string $include Largest unit of time to include - supported values: year, month, hour | |
* | |
* Samples: |