PageSourceSearch

https://www.frasicelebri.it/static/js/fc/ui/phrase_page.min.js?dfd3121c

js frasicelebri.it collected 2026-10-03 21:39:41 UTC 4,635 bytes, 12 lines download raw bytes

1define(['jquery','fc/ui/stars','fc/utils','fc/ui/comment','inflatetext','setup'],function($,fc_ui_stars,fc_utils,fc_ui_comment){var module={};module.inflate=(function(){function inflate_text($target){if(!$target){$target=$(document);}
2$heading=$target.find('.inflate');if($heading.length==0){return;}
3if($heading.css('width').length==0){$heading.width($heading.parent().width());}
4$heading.css('width',$heading.width());$heading.inflateText({'maxFontSize':$heading.data('max-font-size'),'minFontSize':$heading.data('min-font-size'),'scale':$heading.data('font-scale')});$heading.css('width','auto');$heading.addClass('inflated');$heading.addClass('inflated-void');}
5function init($target){if(document.fc_fontloaded){inflate_text($target);}else{setTimeout(function(){inflate_text($target);},100);}}
6return{'init':init};}());module.comments=(function(){function counter_update($counter,difference){var cnt=parseInt($counter.find('.comment_counter').text());var new_cnt=cnt+difference;if(new_cnt<0){new_cnt=0;}
7if(new_cnt!=cnt){$counter.removeClass('num-'+cnt);$counter.addClass('num-'+new_cnt);$counter.find('.comment_counter').text(new_cnt);}}
8function init(){$(document).on('comment-reload','.phrase-comments .comment_form',function(e){$target=$(e.currentTarget);if($target.data('url')){var url=fc_utils.urls.getFromElement($target.data('url'),$target);require(['fc/ui/freeze'],function(fc_ui_freeze){$.get(url,function(data){$target.html(data);fc_ui_freeze.unfreeze($('.phrase-comments'));},'html');});}});$(document).on('comment-waiting','.phrase-comments .comment_form',function(e){require(['fc/ui/freeze'],function(fc_ui_freeze){fc_ui_freeze.freeze($('.phrase-comments'));});});$(document).on('comment-ready','.phrase-comments .comment_form',function(e){require(['fc/ui/freeze'],function(fc_ui_freeze){fc_ui_freeze.unfreeze($('.phrase-comments'));});});$('.quote-block.current-phrase a.comment').click(function(e){$(e.target).closest('.quote-block').find('a.active').trigger('close');$('.phrase-comments .comment_form textarea').focus();});$(document).on('comment-new','.phrase-comments .comment_form',function(e){counter_update($('.current-phrase .quote-num'),1);});$(document).on('comment-deleted','.phrase-comments .comment_form',function(e){counter_update($('.current-phrase .quote-num'),-1);});fc_ui_comment.init($('.phrase-comments'));}
9return{'init':init};}());module.details=(function(){function init(){$(document).on('reload-details','.current-phrase',function(){$target=$('.phrase-details');if($target.data('url')){require(['fc/ui/freeze'],function(fc_ui_freeze){fc_ui_freeze.freeze($target);var url=fc_utils.urls.getFromElement($target.data('url'),$target);$.get(url,function(data){$target.find('.phrase-page-row').html(data);module.inflate.init($('.phrase-detail-box.vote'));module.inflate.init($('.phrase-detail-box.vote-after'));fc_ui_freeze.unfreeze($target);},'html');});}});}
10return{'init':init};}());module.auto_action=(function(){var actions_allowed=['comment','share_button','addto'];function init(){var hash_scroll=fc_utils.hashParser.get('as',false);var hash_action=fc_utils.hashParser.get('aa',true);if(hash_action){for(i in actions_allowed){if(hash_action==actions_allowed[i]){$(function(){require(['fc/ui/phrase_list'],function(fc_ui_phrases){$('.post-info.row a.'+hash_action).first().click();if(hash_scroll){$('html, body').animate({scrollTop:$("#"+hash_scroll).offset().top},0);}});});}}}}
11return{'init':init};}());function init(){module.inflate.init($('.phrase-detail-box.vote'));module.inflate.init($('.phrase-detail-box.vote-after'));module.comments.init();fc_ui_stars.init($('.phrase-detail-box .vote-here'));module.details.init();module.auto_action.init();$(document).on('phrase-data-changed','.phrase-page',function(e){$('.current-phrase').trigger('reload-details');});$(document).on('stars-new-rating','.vote-here',function(e,vote){$('.current-phrase').trigger('reload-details');fc_ui_stars.setVote($('.current-phrase .post-info .stars'),vote);fc_ui_stars.setVote($('.current-phrase .lateral-info .stars'),vote);fc_ui_stars.setVote($('.phrase-detail-box.vote .vote-here .stars'),vote);fc_ui_stars.setVote($('.phrase-detail-box.vote-after .vote-here .stars'),vote);});$(document).on('stars-new-rating','.current-phrase',function(e,vote){$('.current-phrase').trigger('reload-details');fc_ui_stars.setVote($('.current-phrase .post-info .stars'),vote);fc_ui_stars.setVote($('.current-phrase .lateral-info .stars'),vote);fc_ui_stars.setVote($('.phrase-detail-box.vote .vote-here .stars'),vote);fc_ui_stars.setVote($('.phrase-detail-box.vote-after .vote-here .stars'),vote);});}
12return{'init':init};});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.