Skip to content

Instantly share code, notes, and snippets.

Steve Tran clu3

  • Internet
  • Knowledge Tree
Block or report user

Report or block clu3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@clu3
clu3 / Bootstro.js version 0.1
Created Mar 18, 2013
Spagetti version of Bootstro.js
View Bootstro.js version 0.1
/******************************Live on-page Help ********************************/
var popups;
var pIdx; //index of popup
var destroy_current_popup = function()
{
if (!_.isUndefined(pIdx))
{
p = popups[pIdx];
selector = p.selector;
@clu3
clu3 / onStart for bootstro.js
Created Jul 3, 2013
tweak bootstro._start to add onStart call.
View onStart for bootstro.js
bootstro._start = function(selector)
{
selector = selector || '.bootstro';
$elements = $(selector);
count = $elements.size();
if (count > 0 && $('div.bootstro-backdrop').length === 0)
{
// Prevents multiple copies
$('<div class="bootstro-backdrop"></div>').appendTo('body');
View detect-mobile
<?
function is_mobile1()
{
$useragent=$_SERVER['HTTP_USER_AGENT'];
if(preg_match('/android|ipad|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi
View gist:d008f57f77dbff284427aa4666fb3b58
{
"name": "admin-web-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.16.2",
"d3": "^4.13.0",
"dotenv": "^4.0.0",
"font-awesome": "^4.7.0",
"font-awesome-webpack": "0.0.5-beta.2",
You can’t perform that action at this time.