This file contains 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
/* | |
* a way to save time when you want to output a bunch of class names with corresponding filenames | |
*/ | |
$icons: sprite-map("icons/*.png"); | |
.select-custom--icons{ | |
background-image: sprite-url($icons); | |
background-color:white; | |
background-repeat: no-repeat; | |
} | |
$languages : (en, zh-cn, ja, it, pt, es, de); |
This file contains 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
``` | |
-----BEGIN PGP MESSAGE----- | |
Comment: GPGTools - https://gpgtools.org | |
owF1Uk1sFVUUfq9Sfp5CcaEiNVhnoVEf7f2dO9MFkSI2YGMQQaMhPu6de+a94dGZ | |
dua9lpZUFkTUYE1DRTYixGqLf4mgSV0INAQ1pV3UaEOTmvgTDcFglBAWRKLeaWqE | |
hbt7zv3Od873nTOw9JZMLvtH2+TBib8nX85OXFSZrYP19++2VKR7rObdlrczgLCS | |
vkLZDlazVYYeJRNoDKKGMNLQuCNpmMfkrS6IkyAKDQo1ikbX6sun8LTYD8IixB1x | |
kHJZknu2oADKBt8hjCstOCJYKY8iqqTjA/UcG7mGshQllZu6WnOchUCbbMs6g29Z | |
6zy2nq6bx1fnPmxXgJaaKM0VFp4rHVtKIJIiWwBCKAUmEM9L0tDeXQ1703HbIS7v |
This file contains 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
Verifying I am +demwunz on my passcard. https://onename.com/demwunz |
This file contains 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
<?php | |
$directory = ''; | |
$pages = glob($directory . "*.php"); | |
foreach($pages as $page){ | |
$thelist .= '<option value="'.$page.'">'.$page.'</option>'; | |
} | |
?> | |
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> |
This file contains 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
/*@cc_on | |
@if (@_win32) | |
try {document.execCommand('BackgroundImageCache', false, true);}catch(e){} | |
@end | |
@if (@_jscript_version <= 5.6) | |
(function pngFix (gif, arr) { | |
var k = arr.length, el, es; | |
while (k--) { | |
if (el=document.getElementById(arr[k])) { | |
es=el.style;es.height=el.height;es.width=el.width;es.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', src='"+el.src+"',sizingMethod='image')";el.src=gif; |
This file contains 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
var slideContainer = $('.carousel'), | |
slides = slideContainer.find('li'), | |
slideCount = slides.length, | |
oldSlide = 0, | |
currentSlide = 0, | |
fadeSpeed = 500, | |
slideSpeed = 4000, | |
auto = true, | |
animating = false, | |
tabs = $('.tabs, .carousel-links').find('li'), |
This file contains 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
if(!Modernizr.input.placeholder){ | |
$('input[type=text]').each(function(i, elem) { | |
var input = $(elem), | |
placeholder = input.attr('placeholder'); | |
if (this.defaultValue === '') { | |
this.defaultValue = placeholder; | |
} | |
input.on('focus', function () { | |
this.value == this.defaultValue ? this.value = '' : null; | |
}) |
This file contains 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
trimText : function(obj, body, length){ | |
var splitLocation = body.indexOf(' ', length); | |
if(splitLocation != -1) { | |
// truncate tip | |
var splitLocation = body.indexOf(' ', length), | |
str1 = body.substring(0, splitLocation), | |
str2 = body.substring(splitLocation, length - 1); | |
obj.html(str1 + '<span class="truncate_ellipsis">…</span>' + '<span class="truncate_more">' + str2 + '</span>'); | |
obj.find('.truncate_more').css("display", "none"); | |
} |
This file contains 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
//this is straight from http://forrst.com/posts/jQuery_inview_selector-V2Q | |
$.extend($.expr[':'], { | |
inview: function(el) { | |
var e = $(el), | |
w = $(window), | |
wt = w.scrollTop(), | |
wb = wt + w.height(), | |
et = e.offset().top, | |
eb = et + e.height(); |
This file contains 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
DASEFX ={ | |
common:{ | |
init: function(){ | |
//using http://benalman.com/code/projects/jquery-throttle-debounce/docs/files/jquery-ba-throttle-debounce-js.html | |
$(window).resize( $.throttle( 250, true, function(e){ | |
log('resized'); | |
DASEFX.common.MediaQueryCheck(); | |
})); | |
}, |
OlderNewer