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($){ | |
$('ul').each(function() { | |
var $lis = $('li', this); | |
cols = [], | |
colNum= 4, | |
colLength = Math.ceil($lis.length / colNum), | |
$newList = $('#columnify'); | |
for(var i = 0; i < colLength; i++){ | |
cols.push($('<ul>').appendTo($newList)); | |
} |
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 ($) { | |
/** | |
* | |
*/ | |
$.fn.pushSlider = function (options, callback) { | |
var settings = { | |
initialSlide: 0, | |
duration: 840 | |
}; | |
$.extend(true, settings, options); |
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
<? | |
//include('dbconfig.inc.php'); | |
//include('db.class.php'); | |
//include('simplehtmldom/simple_html_dom.php'); | |
$availableTeams = array("ARI","ATL","BAL","BOS","CIN","CHC","CHW","CLE","COL","DET","FLA","HOU","KCR","LAA","LAD","MIL","MIN","NYM","NYY","OAK","PHI","PIT","SD","SF","SEA","STL","TB","TEX","TOR","WSN"); | |
foreach($availableTeams as $availableTeam) | |
{?> | |
<a href='batters.php?team=<?=$availableTeam?>'><?=$availableTeam?></a> | | |
<?}?> |
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
$.fn.textSummary = function (options, callback) { | |
var settings = { | |
maxlength: 150, | |
morechar: "…" | |
}; | |
$.extend(true, settings, options); | |
return this.each(function () { | |
var $context = $(this).hide().append($('<a>', { |
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
if (typeof jQuery != "undefined") { | |
(function($) { | |
$('.accordion dt').each(function() { | |
$(this).on('click', function(){ | |
$(this).toggleClass('on').siblings('.on').removeClass('on').end() | |
.next('dd').slideToggle().siblings('dd').slideUp(); | |
}).next('dd').hide(); | |
}); | |
})(jQuery); | |
} |
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
<dl class="accordion"> | |
<dt>Accordion Heading 1</dt> | |
<dd> | |
<p>Some content</p></dd> | |
<dt>Accordion Heading 2</dt> | |
<dd> | |
<p>Some more content</p></dd> | |
<dt>Accordion Heading 3</dt> | |
<dd> | |
<p>Some final content</p></dd> |
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
jQuery.extend({ | |
parseQuerystring: function(){ | |
var nvpair = {}; | |
var qs = window.location.search.replace('?', ''); | |
var pairs = qs.split('&'); | |
$.each(pairs, function(i, v){ | |
var pair = v.split('='); | |
nvpair[pair[0]] = pair[1]; | |
}); | |
return nvpair; |
NewerOlder