31 lines
601 B
JavaScript
31 lines
601 B
JavaScript
$(document).ready( function()
|
|
{
|
|
$('.idpr').on('click', function(){
|
|
//e.preventDefault();
|
|
var n = $(this).attr('id');
|
|
|
|
if ($('#p'+n).css('display')=='none'){
|
|
$('#p'+n).css('display', 'block');
|
|
} else {
|
|
$('#p'+n).css('display', 'none');
|
|
}
|
|
});
|
|
|
|
$('.tooltip').each(function(){
|
|
var title = $(this).attr('title');
|
|
var width = $(this).attr('wdth');
|
|
$(this).attr('title', '');
|
|
$(this).qtip({
|
|
solo:true,
|
|
content: title,
|
|
style: {
|
|
width: width,
|
|
classes: "ui-tooltip-cream"
|
|
},
|
|
position: {
|
|
at: "bottom center",
|
|
my: "top center"
|
|
}
|
|
});
|
|
});
|
|
}); |