1
0
mirror of https://github.com/github/choosealicense.com synced 2024-07-01 16:13:02 +02:00
choosealicense.com/javascripts/app.js

52 lines
1.0 KiB
JavaScript
Raw Normal View History

2012-12-04 23:12:12 +01:00
var qtip_position = {
my: 'top center',
at: 'bottom center'
};
$(document).ready(function() {
for (var category in annotations) {
var categoryAnnotations = annotations[category];
for (var annotation in categoryAnnotations) {
$('.license-rules ul.license-' + category + ' li.' + annotation).attr('title', categoryAnnotations[annotation]);
}
}
$('.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'
}
});
$('.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'
}
});
$('.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'
}
});
});