Index: arms/detail.html =================================================================== diff -u -raf7e1dfac5365de9f699e7cd6602e17918b2535e -r483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294 --- arms/detail.html (.../detail.html) (revision af7e1dfac5365de9f699e7cd6602e17918b2535e) +++ arms/detail.html (.../detail.html) (revision 483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294) @@ -382,7 +382,13 @@ var str = window.location.href; console.table(str); - if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0) { + if (str.indexOf("313.co.kr:9999") > 0 || str.indexOf("a-rms.net:9999") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0 || str.indexOf("localhost:9999") > 0 || str.indexOf("127.0.0.1:9999") > 0) { + console.log("개발용으로 접속한 경우"); + console.log("마토모 : OFF"); + + } else if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") > 0) { + console.log("313 사이트에 접속했거나 arms 사이트에 접속한 경우"); + console.log("마토모 : ON"); var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ @@ -400,8 +406,9 @@ s.parentNode.insertBefore(g, s); })(); - - console.log("matomo send"); + } else { + console.log("고객사 사이트에 접속한 경우"); + console.log("마토모 : OFF"); } }; //]]> Index: arms/html/pdService =================================================================== diff -u -raf7e1dfac5365de9f699e7cd6602e17918b2535e -r483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294 --- arms/html/pdService (.../pdService) (revision af7e1dfac5365de9f699e7cd6602e17918b2535e) +++ arms/html/pdService (.../pdService) (revision 483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294) @@ -2689,9 +2689,16 @@ var str = window.location.href; console.table(str); - if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0) { - $(".animated-button1").prop("href", "/arms/template.html?page=pdService"); + if (str.indexOf("313.co.kr:9999") > 0 || str.indexOf("a-rms.net:9999") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0 || str.indexOf("localhost:9999") > 0 || str.indexOf("127.0.0.1:9999") > 0) { + console.log("개발용으로 접속한 경우"); + $(".animated-button1").prop("href", "/arms/template.html?page=pdService"); + console.log("마토모 : OFF"); + } else if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") > 0) { + console.log("313 사이트에 접속했거나 arms 사이트에 접속한 경우"); + $(".animated-button1").prop("href", "/php/gnuboard5/index.php"); + + console.log("마토모 : ON"); var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ @@ -2709,10 +2716,10 @@ s.parentNode.insertBefore(g, s); })(); - - console.log("matomo send"); - } else { + } else { + console.log("고객사 사이트에 접속한 경우"); $(".animated-button1").prop("href", "/php/gnuboard5/index.php"); + console.log("마토모 : OFF"); } }; //]]> Index: arms/template.html =================================================================== diff -u -raf7e1dfac5365de9f699e7cd6602e17918b2535e -r483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294 --- arms/template.html (.../template.html) (revision af7e1dfac5365de9f699e7cd6602e17918b2535e) +++ arms/template.html (.../template.html) (revision 483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294) @@ -438,7 +438,13 @@ var str = window.location.href; console.table(str); - if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0) { + if (str.indexOf("313.co.kr:9999") > 0 || str.indexOf("a-rms.net:9999") || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0 || str.indexOf("localhost:9999") > 0 || str.indexOf("127.0.0.1:9999") > 0) { + console.log("개발용으로 접속한 경우"); + console.log("마토모 : OFF"); + + } else if (str.indexOf("313.co.kr") > 0 || str.indexOf("a-rms.net") > 0) { + console.log("313 사이트에 접속했거나 arms 사이트에 접속한 경우"); + console.log("마토모 : ON"); var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ @@ -456,8 +462,9 @@ s.parentNode.insertBefore(g, s); })(); - - console.log("matomo send"); + } else { + console.log("고객사 사이트에 접속한 경우"); + console.log("마토모 : OFF"); } }; //]]> Index: index.html =================================================================== diff -u -r62a60be191c4dd6a04b6516fc5d3d864ccd9c800 -r483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294 --- index.html (.../index.html) (revision 62a60be191c4dd6a04b6516fc5d3d864ccd9c800) +++ index.html (.../index.html) (revision 483f09ab8f43b3f2a6a40b21f4bfdb26e6ef2294) @@ -103,10 +103,13 @@ console.log("The URL of this page is: " + window.location.href); var str = window.location.href; - if (str.indexOf("313.co.kr:9999") > 0 || str.indexOf("a-rms.net:9999") > 0 || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0) { + if (str.indexOf("313.co.kr:9999") > 0 || str.indexOf("a-rms.net:9999") > 0 || str.indexOf("localhost") > 0 || str.indexOf("127.0.0.1") > 0 || str.indexOf("localhost:9999") > 0 || str.indexOf("127.0.0.1:9999") > 0) { + console.log("개발용으로 접속한 경우"); alert("개발에 참여해 주셔서 감사합니다.\n기필코 그대의 노고를 잊지않고, 최대한의 보상을 약속하겠습니다.\n이동민 드림."); window.location.replace("/arms/index.html"); } else { + console.log("313 사이트에 접속했거나 arms 사이트에 접속한 경우"); + console.log("고객사 사이트에 접속한 경우"); window.location.replace("/arms/index.html"); } };