cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <h1>네이버 뉴스 감성 아이콘 상태 표시</h1>

상태 표시와 액션 버튼을 같이 사용하고 있어 상태가 잘 드러나지 않고 있다.<br>

<img src=https://pbs.twimg.com/media/C8YCnomV0AITKu6.jpg:large>

function redesign(){
    var max_count=1;
  $(".u_likeit .u_likeit_list_count").each(function(){
	var count=parseInt($(this).text());
  if(count>max_count) max_count=count;
  $(".u_likeit .u_likeit_list_count").each(function(i){
	var count=parseInt($(this).text());
var size=count/max_count*0.5+0.5;
var opacity=count/max_count*0.8+0.5;
var gray=0;
if(count==0) gray=1;
	var style="<style>.u_likeit_list:nth-child("+(i+1)+") a:before{transform:scale("+size+");opacity:"+opacity+";filter:grayscale("+gray+");}</style>"
Loading ..................