// DOM.event.move 2.0.0 Stephen Band !function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){var e=Object.assign||window.jQuery&&jQuery.extend,t=8,n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)};!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var o={textarea:!0,input:!0,select:!0,button:!0},i={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},a={move:"touchmove",cancel:"touchend",end:"touchend"},c=/\s+/,u={bubbles:!0,cancelable:!0},r="function"==typeof Symbol?Symbol("events"):{};function d(e){return e[r]||(e[r]={})}function m(e,t,n,o,i){t=t.split(c);var a,u=d(e),r=t.length;function m(e){n(e,o)}for(;r--;)(u[a=t[r]]||(u[a]=[])).push([n,m]),e.addEventListener(a,m)}function v(e,t,n,o){t=t.split(c);var i,a,u,r=d(e),m=t.length;if(r)for(;m--;)if(a=r[i=t[m]])for(u=a.length;u--;)a[u][0]===n&&(e.removeEventListener(i,a[u][1]),a.splice(u,1))}function f(t,n,o){var i=new CustomEvent(n,u);o&&e(i,o),t.dispatchEvent(i)}function s(){}function l(e){e.preventDefault()}function p(e,t){var n,o;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,o=e.length;++n"),e.no_overlay||a.append("
");var r=a.find("img:first"),c=a.find("img:last");a.append("
");var l=a.find(".twentytwenty-handle");l.append(""),l.append(""),a.addClass("twentytwenty-container"),r.addClass("twentytwenty-before"),c.addClass("twentytwenty-after");var d=a.find(".twentytwenty-overlay");d.append("
"),d.append("
");var w=function(t){var e,n,o,s,d=(e=t,n=r.width(),o=r.height(),{w:n+"px",h:o+"px",cw:e*n+"px",ch:e*o+"px"});l.css("vertical"===i?"top":"left","vertical"===i?d.ch:d.cw),s=d,"vertical"===i?(r.css("clip","rect(0,"+s.w+","+s.ch+",0)"),c.css("clip","rect("+s.ch+","+s.w+","+s.h+",0)")):(r.css("clip","rect(0,"+s.cw+","+s.h+",0)"),c.css("clip","rect(0,"+s.w+","+s.h+","+s.cw+")")),a.css("height",s.h)},v=function(t,e){var n,a,o;return n="vertical"===i?(e-p)/h:(t-f)/y,a=0,o=1,Math.max(a,Math.min(o,n))};t(window).on("resize.twentytwenty",function(t){w(n)});var f=0,p=0,y=0,h=0,u=function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY)&&"vertical"!==i?t.preventDefault():(t.distXt.distY&&t.distX>-t.distY)&&"vertical"===i&&t.preventDefault(),a.addClass("active"),f=a.offset().left,p=a.offset().top,y=r.width(),h=r.height()},_=function(t){a.hasClass("active")&&(n=v(t.pageX,t.pageY),w(n))},m=function(){a.removeClass("active")},g=e.move_with_handle_only?l:a;g.on("movestart",u),g.on("move",_),g.on("moveend",m),e.move_slider_on_hover&&(a.on("mouseenter",u),a.on("mousemove",_),a.on("mouseleave",m)),l.on("touchmove",function(t){t.preventDefault()}),a.find("img").on("mousedown",function(t){t.preventDefault()}),e.click_to_move&&a.on("click",function(t){f=a.offset().left,p=a.offset().top,y=r.width(),h=r.height(),n=v(t.pageX,t.pageY),w(n)}),t(window).trigger("resize.twentytwenty")})}}(jQuery); $(function(){ if(($('div.ab_dynamic_chart') || $('div.tag_dynamicChart')) && ($('div.ab_dynamic_chart').length > 0 || $('div.tag_dynamicChart').length > 0)) { // var head= document.getElementsByTagName('head')[0]; // var script= document.createElement('script'); // var script2= document.createElement('script'); // script.type2= 'text/javascript'; // var script3= document.createElement('script'); // script.type3= 'text/javascript'; // var script4= document.createElement('script'); // script.type4= 'text/javascript'; // var script5= document.createElement('script'); // script.type5= 'text/javascript'; // script.src= 'https://dev-static.joins.com/joongang_15re/scripts/_res/JAddon/v1/charts/highcharts.js'; // head.appendChild(script); // script2.src= 'https://dev-static.joins.com/joongang_15re/scripts/_res/JAddon/v1/charts/highcharts-3d.js'; // head.appendChild(script2); // script3.src= 'https://dev-static.joins.com/joongang_15re/scripts/_res/JAddon/v1/charts/highcharts-more.js'; // head.appendChild(script3); // script4.src= 'https://dev-static.joins.com/joongang_15re/scripts/_res/JAddon/v1/charts/modules/exporting.js'; // head.appendChild(script4); // script5.src= 'https://dev-static.joins.com/joongang_15re/scripts/_res/JAddon/v1/charts/modules/export-data.js'; // head.appendChild(script5); // $('head').append(''); // $('head').append(''); // $('head').append(''); // $('head').append(''); // $('head').append(''); var highcharts = "//code.highcharts.com/highcharts.js"; var highcharts_3d = "//code.highcharts.com/highcharts-3d.js"; var highcharts_more = "//code.highcharts.com/highcharts-more.js"; var exporting = "//code.highcharts.com/modules/exporting.js"; var export_data = "//code.highcharts.com/modules/export-data.js"; var map = "//code.highcharts.com/maps/modules/map.js"; $.getScript(highcharts, function() { $.getScript(highcharts_3d, function() { $.getScript(highcharts_more, function() { $.getScript(exporting, function() { $.getScript(export_data, function() { $.getScript(map, function() { Highcharts.setOptions({ lang: { thousandsSep: "," }, navigation: { buttonOptions: { enabled: false } } }) $('div.ab_dynamic_chart').articleDChartInit(); $('div.tag_dynamicChart').articleDChartInit(); }) }); }); }); }); }); // $('head').append(''); // $('head').append('