Add chronological streak format to league table column equation generator

This commit is contained in:
Brian Miyaji
2016-12-09 15:12:07 +11:00
parent 3f6272f4b0
commit f42ee4ead9
8 changed files with 172 additions and 18 deletions

View File

@@ -0,0 +1,26 @@
jQuery(document).ready(function($){
// Color picker
$('.colorpick').iris( {
change: function(event, ui){
$(this).css( { backgroundColor: ui.color.toString() } );
},
hide: true,
border: true
} ).each( function() {
$(this).css( { backgroundColor: $(this).val() } );
})
.click(function(){
$('.iris-picker').hide();
$(this).closest('.sp-color-box, td').find('.iris-picker').show();
});
$('body').click(function() {
$('.iris-picker').hide();
});
$('.sp-color-box, .colorpick').click(function(event){
event.stopPropagation();
});
});