Skip to content

Instantly share code, notes, and snippets.

@tirams
tirams / getRallyStories.js
Created January 19, 2012 19:29
extract data from Rally views
// extract the stories from rally list
//jQuerieze the page first to use it
var stories=""; rows = jQuery('#storycard_tps tr').each(function(ind, e) {
var vals={}; $(e).find('td').each(function(indt,f) {
if (f.className.indexOf('idstring') != -1)
stories += f.innerText + ",";
else if (f.className.indexOf('name0') !=-1)
stories += f.innerText + ",";
else if (f.className.indexOf('owner') !=-1)
stories += f.innerText + "\n";
$(function () { // this line makes sure this code runs on page load
$('.checkall').click(function () {
$(this).parents('fieldset:eq(0)').find(':checkbox').attr('checked', this.checked);
});
});
@tirams
tirams / htmlForLoadJQuery.txt
Created December 22, 2011 04:56
How to add html tag to include jquery
_ ____
(_)/ __ \
_| | | |_ _ ___ _ __ _ _
| | | | | | | |/ _ \ '__| | | |
| | |__| | |_| | __/ | | |_| |
| |\___\_\\__,_|\___|_| \__, |
_/ | __/ |
|__/ |___/
//get latest minified
@tirams
tirams / BradleyAudio.css
Created December 22, 2011 04:12
Audio troubleshooting for Bradley
/* globals */
html {
font:62.5%/1 "Droid Sans", "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
background: url('background.png');
background-repeat: no-repeat
}
body {
margin: 0 auto;
}
@tirams
tirams / jqueryize.js
Created December 20, 2011 00:29
function to include latest jquery
function(){
if (typeof jQuery != 'undefined')
{
console.log('jquery version ' + $.fn.jquery);
return;
}
var s=document.createElement('script');
s.setAttribute('src','http://code.jquery.com/jquery.min.js');
document.body.appendChild(s);
void(s);