{"action":"created","issue":{"url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/2","labels_url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/2/comments","events_url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/2/events","html_url":"https://github.com/probi/Ding_Fixed_Banner/issues/2","id":67512766,"number":2,"title":"타 자료와 충돌이 발생하네요.","user":{"login":"wookho","id":6590236,"avatar_url":"https://avatars.githubusercontent.com/u/6590236?v=3","gravatar_id":"","url":"https://api.github.com/users/wookho","html_url":"https://github.com/wookho","followers_url":"https://api.github.com/users/wookho/followers","following_url":"https://api.github.com/users/wookho/following{/other_user}","gists_url":"https://api.github.com/users/wookho/gists{/gist_id}","starred_url":"https://api.github.com/users/wookho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wookho/subscriptions","organizations_url":"https://api.github.com/users/wookho/orgs","repos_url":"https://api.github.com/users/wookho/repos","events_url":"https://api.github.com/users/wookho/events{/privacy}","received_events_url":"https://api.github.com/users/wookho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-10T05:25:12Z","updated_at":"2015-04-14T06:49:02Z","closed_at":null,"body":"http://webconsoft.co.kr/webcon_p_widgets/936\r\n\r\n\r\n위 자료의 뉴스가 출력이 되지 않네요. "},"comment":{"url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/comments/92654065","html_url":"https://github.com/probi/Ding_Fixed_Banner/issues/2#issuecomment-92654065","issue_url":"https://api.github.com/repos/probi/Ding_Fixed_Banner/issues/2","id":92654065,"user":{"login":"probi","id":10782883,"avatar_url":"https://avatars.githubusercontent.com/u/10782883?v=3","gravatar_id":"","url":"https://api.github.com/users/probi","html_url":"https://github.com/probi","followers_url":"https://api.github.com/users/probi/followers","following_url":"https://api.github.com/users/probi/following{/other_user}","gists_url":"https://api.github.com/users/probi/gists{/gist_id}","starred_url":"https://api.github.com/users/probi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probi/subscriptions","organizations_url":"https://api.github.com/users/probi/orgs","repos_url":"https://api.github.com/users/probi/repos","events_url":"https://api.github.com/users/probi/events{/privacy}","received_events_url":"https://api.github.com/users/probi/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T06:49:02Z","updated_at":"2015-04-14T06:49:02Z","body":"<!--%import(\"normal.css\")-->\r\n{@ \r\n\t$unique = rand(0,100);\r\n\t$s_title = $widget_info->search_title;\r\n    $list_count = $widget_info->rows_list_count*$widget_info->page_count;\r\n    $str_cutsize = $widget_info->subject_cut_size;\r\n    $dispaly_list = $widget_info->rows_list_count;\r\n}\r\n<div class=\"N_contents_container_{$unique}\">\r\n\t<!--@if($widget_info->search_title_header == 'Y')-->\r\n\t\t<div class=\"header_title\" style=\"padding:5px;\"></div>\r\n    <!--@end-->\r\n\t<ul id=\"list\"></ul>    \r\n    <!--@if($widget_info->page_count > 1 && $widget_info->rows_list_count < 50)-->\r\n    \t<ul class=\"list_navi\">\r\n        \t<li><a onclick=\"N_content_prev(jQuery(this).parents('.N_contents_container_{$unique} ul.list_navi').prev('.N_contents_container_{$unique} ul.#list'),{$widget_info->rows_list_count});\">이전</a></li>\r\n            <li><a onclick=\"N_content_next(jQuery(this).parents('.N_contents_container_{$unique} ul.list_navi').prev('.N_contents_container_{$unique} ul.#list'),{$widget_info->rows_list_count});\">다음</a></li>\r\n        </ul>\r\n    <!--@end-->\r\n</div>\r\n<script type=\"text/javascript\">\r\nvar ran = Math.floor(Math.random()*45);\r\n\r\n(function ($){\r\n    $(document).ready(function () {\r\n        var query_data =  encodeURIComponent(\"{$s_title}\");\r\n        var listCount = Number(\"{$list_count}\");\r\n        var display_list = Number(\"{$dispaly_list}\");\r\n        var str_cutsize = Number(\"{$str_cutsize}\");\r\n        $.ajax({\r\n            url : 'widgets/webcon_N_newsSearch/skins/N_newsSearch/dataProxy.php',\r\n            dataType : 'json' ,\r\n            type : 'POST' ,\r\n            data:{\r\n                \"query\":query_data\r\n            },\r\n            success:function(data){\r\n                if(data['channel']['item'].length > 0){\r\n                    var start =0 ;\r\n                    content_li = \"<div style='font-size:14px;'>\"+ data['channel'].description +\"</div>\";\r\n                    $('.N_contents_container_{$unique} > .header_title').append(content_li);\r\n                    for(var i in data['channel']['item']){\r\n                        if(start < listCount){\r\n                            var item = data['channel']['item'][i];\r\n                            if(start >= display_list){\r\n                                var content_li = \"<li style='display:none;'>\";\r\n                            }else{\r\n                                var content_li = \"<li>\";\r\n                            }\r\n                            content_li += \"<p class='title'><a href='\"+ item.link +\"' target='_black'> - \" + cutStr(item.title,str_cutsize) +\"</a>\";\r\n                            content_li += \"<font style='color:#788eb7; font-size:10px;'>&nbsp;(\"+item.author+\")</font>\";\r\n                            content_li += \"</p>\";\r\n                            content_li += \"</li>\";\r\n                            $('.N_contents_container_{$unique} > #list').append(content_li);\r\n                        }\r\n                        start++;\r\n                    }\r\n                }else{\r\n                    var content_li = \"<li style='text-align:center;'>※ 검색데이터 목록이 없습니다.</li>\";\r\n                    $('.N_contents_container_{$unique} > #list').append(content_li);\r\n                }\r\n            },error:function(e){}\r\n        });\r\n    });\r\n\r\n})(jQuery.noConflict());\r\n\r\n\r\n \r\nfunction N_content_next(obj,list_per_page){\r\n\tif(obj.is('ul')) {\r\n\t\tvar list = jQuery('>li',obj);\r\n\t}\r\n\tvar total_page = parseInt((list.size()-1) / list_per_page,10)+1;\r\n\tlist.each(function(i){\r\n\t\tif(jQuery(this).css('display') !='none'){\r\n\t\t\tpage = parseInt(i/list_per_page,10) + 1;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t});\r\n\tif(total_page <= page) return;\r\n\tlist.each(function(i){\r\n\t\tif( (page* list_per_page) <= i && ((page+1) * list_per_page) > i){\r\n\t\t\tjQuery(this).show();\r\n\t\t}else{\r\n\t\t\tjQuery(this).hide();\r\n\t\t}\r\n\t});\r\n}\r\n\r\nfunction N_content_prev(obj,list_per_page){\r\n\tif(obj.is('ul')){\r\n\t\tvar list = jQuery('>li',obj);\r\n\t}\r\n\tvar total_page = parseInt((list.size()-1) / list_per_page,10)+1;\r\n\tlist.each(function(i){\r\n\t\tif(jQuery(this).css('display') !='none'){\r\n\t\t\tpage = parseInt(i/list_per_page,10)+1;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t});\r\n\tif(page <= 1) return;\r\n\tlist.each(function(i){\r\n\t\tif( ((page-2)* list_per_page)<= i && ((page-1) * list_per_page) > i){\r\n\t\t\tjQuery(this).show();\r\n\t\t}else{\r\n\t\t\tjQuery(this).hide();\r\n\t\t}\r\n\t});\r\n}\r\nfunction cutStr(str,limit){\r\n\t  var tmpStr = str;\r\n\t  var byte_count = 0;\r\n\t  var len = str.length;\r\n\t  var dot = \"\";\r\n\t  \r\n\t  for(i=0; i<len; i++){\r\n\t\t\tbyte_count += chr_byte(str.charAt(i)); \r\n\t\t\tif(byte_count == limit-1){\r\n\t\t\t\tif(chr_byte(str.charAt(i+1)) == 2){\r\n\t\t\t\t\ttmpStr = str.substring(0,i+1);\r\n\t\t\t\t\tdot = \"...\";\r\n\t\t\t\t}else {\r\n\t\t\tif(i+2 != len) dot = \"...\";\r\n\t\t\t\ttmpStr = str.substring(0,i+2);\r\n\t\t\t }\r\n\t\t\t break;\r\n\t\t\t}else if(byte_count == limit){\r\n\t\t\t\tif(i+1 != len) dot = \"...\";\r\n\t\t\t\ttmpStr = str.substring(0,i+1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t  }\r\n\t  return tmpStr+dot;\r\n}\r\nfunction chr_byte(chr){\r\n  if(escape(chr).length > 4)\r\n    return 2;\r\n  else\r\n    return 1;\r\n}\r\n</script>\r\n\r\n이렇게 수정해주었더니, 충돌나지 않네요. "}}