2012-12-04 23:12:12 +01:00
|
|
|
var qtip_position = {
|
|
|
|
my: 'top center',
|
|
|
|
at: 'bottom center'
|
|
|
|
};
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2012-12-19 23:47:01 +01:00
|
|
|
for (var category in annotations) {
|
|
|
|
var categoryAnnotations = annotations[category];
|
|
|
|
for (var annotation in categoryAnnotations) {
|
2013-01-22 18:15:02 +01:00
|
|
|
$('.license-rules ul.license-' + category + ' li.' + annotation).attr('title', categoryAnnotations[annotation]);
|
2012-12-19 23:47:01 +01:00
|
|
|
}
|
2013-01-22 01:45:45 +01:00
|
|
|
}
|
2012-12-19 23:47:01 +01:00
|
|
|
|
2013-01-22 18:15:02 +01:00
|
|
|
$('.license-required li').qtip({
|
2012-12-04 23:12:12 +01:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Required'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-required'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-01-22 18:15:02 +01:00
|
|
|
$('.license-permitted li').qtip({
|
2012-12-04 23:12:12 +01:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Permitted'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-permitted'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2013-01-22 18:15:02 +01:00
|
|
|
$('.license-forbidden li').qtip({
|
2012-12-04 23:12:12 +01:00
|
|
|
content: {
|
|
|
|
text: false,
|
|
|
|
title: {
|
|
|
|
text: 'Forbidden'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
position: qtip_position,
|
|
|
|
style: {
|
|
|
|
classes: 'qtip-shadow qtip-forbidden'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|