🏠
Working from home
-
Six Eight Interactive LLC
- Enfield, Connecticut, USA
- http://sixeightinteractive.com
Pinned Loading
-
Extends bulma.io CSS framework with ...
Extends bulma.io CSS framework with a short-lived notification message that slides up from the bottom of the screen. Useful for showing user that a change has occurred on the page. Requires jQuery. 1/**
2* display a quick notification box that slides up from the bottom for a few seconds
3*/
4function quickNotice(message,cssClass,timeOnScreen)
5{
-
Set the maximum character count of a...
Set the maximum character count of a form field with jQuery, providing the user with a visual count and stripping any values entered greater than the predetermined amount. 1<div>
2<textarea id="myTextarea" class="lengthcount" maxlength="150"></textarea>
3</div>
45<div>
-
Validate and sanatize a user entered...
Validate and sanatize a user entered DEA Registration ID with PHP 1/**
2* Validate and clean a DEA Registration ID
3* @param string $enteredValue user supplied DEA ID
4* @param string $lastname OPTIONAL extended validation requires first letter of users last name to match corresponding character in ID
5*
-
Register multiple "ESC" key handlers...
Register multiple "ESC" key handlers so hitting the escape key only does the most recently registered action. (requires jQuery) 1var escEvents = new Array();
23// If something needs to listen for the "ESC" key to be pressed, pass that functionality here
4// eventName STRING a name for this event, like "myPopupDialog"
5// eventFunction FUNCTION what to do when the user hits the escape key
-
PHP function to convert a timestamp ...
PHP function to convert a timestamp in the past to a human readable, rounded time frame. For example "2 years ago" or "1 minute ago" or even "Just Now" if in past X number of seconds. 1<?php
2function time_ago($pastTime)
3{
4$datetime1=new DateTime("now");
5$datetime2=date_create($pastTime);
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.