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
$(document).ready(function(){ | |
//Span that the text lives | |
$('.class-name').each(function(){ | |
//Get the width of the span | |
var textWidth = $(this).width(); | |
//If the width of the span is greater than 105px then run the if. | |
if(textWidth > 105){ | |
//Your class that shrinks the the font size | |
$(this).addClass('graph-text-smaller'); | |
} |
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 lt IE 9]> | |
<%= stylesheet_link_tag 'ie', media: 'all' %> | |
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<script language="javascript" type="text/javascript" src="/assets/excanvas.js"></script> | |
<![endif]--> |
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 lt IE 9]> | |
<%= stylesheet_link_tag 'ie', media: 'all' %> | |
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<script language="javascript" type="text/javascript" src="/assets/excanvas.js"></script> | |
<![endif] --> |
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 nextPageNumber = 1; | |
function nextPage() { | |
//EX: | |
//http://www.robert-deluca.com/blog/page/2/ | |
nextPageNumber++; | |
var pageNumber = "http://www.robert-deluca.com/blog/page/" + nextPageNumber; | |
//Debugging | |
//console.log(nextPageNumber); | |
//console.log(pageNumber); | |
return pageNumber; |
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
xaxis: { | |
pad: 0, | |
padMin: 0, | |
padMax: 0, | |
min: "2013-11-07", //First date in the graph | |
max: "2014-01-05", //Last date in the graph | |
renderer: $.jqplot.DateAxisRenderer, | |
tickOptions:{ | |
formatString:'%b %#d' | |
} |
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
$("#normal_select").dropkick({ | |
mobile: true | |
}); |
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
$("#search_select").dropkick({ | |
mobile: true, | |
initialize: function() { | |
var $input, | |
dk = this; | |
$( '.dk-selected', dk.data.elem ).after([ | |
'<div class="dk-search">', | |
'<input type="text" class="dk-search-input" placeholder="Search">', | |
'</div>', | |
].join("")); |
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
$("#disabled").dropkick({ | |
mobile: true | |
}); |
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
<select id="disabled" disabled> | |
<option disabled selected class="hidden-option">Choose One</option> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
...etc |
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
$("#opt_group").dropkick({ | |
mobile: true | |
}); |
OlderNewer