mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 03:08:51 +01:00
caa47fb00c
* Move licenses to license template * Move home / about to page template * Move annotations to config file, included via annotations.js * Move license metadata to YML Front matter * Automate the presentation of license metadata * Move sidebar to include * Add _site to gitignore
52 lines
1.0 KiB
JavaScript
52 lines
1.0 KiB
JavaScript
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({
|
|
content: {
|
|
text: false,
|
|
title: {
|
|
text: 'Required'
|
|
}
|
|
},
|
|
position: qtip_position,
|
|
style: {
|
|
classes: 'qtip-shadow qtip-required'
|
|
}
|
|
});
|
|
|
|
$('.license-permitted li').qtip({
|
|
content: {
|
|
text: false,
|
|
title: {
|
|
text: 'Permitted'
|
|
}
|
|
},
|
|
position: qtip_position,
|
|
style: {
|
|
classes: 'qtip-shadow qtip-permitted'
|
|
}
|
|
});
|
|
|
|
$('.license-forbidden li').qtip({
|
|
content: {
|
|
text: false,
|
|
title: {
|
|
text: 'Forbidden'
|
|
}
|
|
},
|
|
position: qtip_position,
|
|
style: {
|
|
classes: 'qtip-shadow qtip-forbidden'
|
|
}
|
|
});
|
|
}); |