Преглед на файлове

마케팅스크립트 정리

gagamel преди 5 години
родител
ревизия
10a5619dbf

+ 42 - 0
src/main/webapp/WEB-INF/views/web/common/fragments/HeadWeb.html

@@ -47,6 +47,48 @@
 // 		gtag('js', new Date());
 // 		gtag('config', 'UA-168660512-1');
 	</script>
+	
+	<th:block th:if="${sessioninfo != null}">
+		<script th:inline="javascript">
+		/*<![CDATA[*/
+			var gCustId = [[${sessionInfo.custId}]];
+			/*]]>*/
+		</script>
+	</th:block>
+	<th:block th:if="${sessioninfo == null}">
+		<script th:inline="javascript">
+		/*<![CDATA[*/
+			var gCustId = '';
+			/*]]>*/
+		</script>
+	</th:block>
+	
+	<script src="/ux/sha512.min.js"></script>
+	<script>
+		String.prototype.hashCode = function() {
+			var hash = 0;
+			for (var i = 0; i < this.length; i++) {
+				var character = this.charCodeAt(i);
+				hash = ((hash<<5) - hash) + character;
+				hash = hash & hash; // Convert to 32bit integer
+			}
+			return hash;
+		}
+		var eglqueueCuid = '1252aed4-78dc-46e8-b784-94ac42e86dd4';
+		var hCustId = gCustId ? hex_sha512(gCustId).toString().hashCode() : '';
+		
+		/* Eiengine Script (Visit) */
+		window._eglqueue = window._eglqueue || [];
+		_eglqueue.push(['setVar', 'cuid', eglqueueCuid]);
+		_eglqueue.push(['setVar', 'userId', hCustId]);
+		_eglqueue.push(['track', 'visit']);
+		(function (s, x) {
+			s = document.createElement('script'); s.type = 'text/javascript';
+			s.async = true; s.defer = true; s.src = (('https:' == document.location.protocol) ? 'https' : 'http') + '://logger.eigene.io/js/logger.min.js';
+			x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
+		})();
+		/* \\Eiengine Script (Visit) */
+	</script>
 </head>
 
 </html>

+ 0 - 65
src/main/webapp/WEB-INF/views/web/common/fragments/MktScriptsWeb.html

@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html lang="ko"
-	xmlns:th="http://www.thymeleaf.org">
-<!--
- *******************************************************************************
- * @source  : MktScriptsWeb.html
- * @desc    : 마케팅 스크립트
- *============================================================================
- * STYLE24
- * Copyright(C) 2020 TSIT, All rights reserved.
- *============================================================================
- * VER  DATE         AUTHOR      DESCRIPTION
- * ===  ===========  ==========  =============================================
- * 1.0  2021.03.18   gagamel     최초 작성
- *******************************************************************************
- -->
-<th:block th:fragment="mscripts">
-
-<th:block th:if="${sessioninfo != null}">
-<script th:inline="javascript">
-/*<![CDATA[*/
-	var gCustId = [[${sessionInfo.custId}]];
-	/*]]>*/
-</script>
-</th:block>
-<th:block th:if="${sessioninfo == null}">
-<script th:inline="javascript">
-/*<![CDATA[*/
-	var gCustId = '';
-	/*]]>*/
-</script>
-</th:block>
-
-<script th:inline="javascript">
-/*<![CDATA[*/
-	String.prototype.hashCode = function() {
-		var hash = 0;
-		for (var i = 0; i < this.length; i++) {
-			var character = this.charCodeAt(i);
-			hash = ((hash<<5) - hash) + character;
-			hash = hash & hash; // Convert to 32bit integer
-		}
-		return hash;
-	}
-	
-	var hCustId = gCustId ? gCustId.hashCode() : '';
-	console.log('hCustId: ' + hCustId);
-	
-	/* Eiengine Script */
-	window._eglqueue = window._eglqueue || [];
-	_eglqueue.push(['setVar', 'cuid', '1252aed4-78dc-46e8-b784-94ac42e86dd4']);
-	_eglqueue.push(['setVar', 'userId', hCustId]);
-	_eglqueue.push(['track', 'visit']);
-	(function (s, x) {
-		s = document.createElement('script'); s.type = 'text/javascript';
-		s.async = true; s.defer = true; s.src = (('https:' == document.location.protocol) ? 'https' : 'http') + '://logger.eigene.io/js/logger.min.js';
-		x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
-	})();
-	/* \\Eiengine Script */
-/*]]>*/
-</script>
-
-</th:block>
-
-</html>

+ 0 - 1
src/main/webapp/WEB-INF/views/web/common/layout/BrandLayoutWeb.html

@@ -27,7 +27,6 @@
 <footer id="footer" th:replace="~{web/common/fragments/FooterWeb :: footer}"></footer>
 
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
-<th:block th:replace="~{web/common/fragments/MktScriptsWeb :: mscripts}"></th:block>
 
 <script th:inline="javascript">
 /*<![CDATA[*/

+ 0 - 1
src/main/webapp/WEB-INF/views/web/common/layout/CallcenterLayoutWeb.html

@@ -27,7 +27,6 @@
 <footer id="footer" th:replace="~{web/common/fragments/FooterWeb :: footer}"></footer>
 
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
-<th:block th:replace="~{web/common/fragments/MktScriptsWeb :: mscripts}"></th:block>
 
 <script th:inline="javascript">
 /*<![CDATA[*/

+ 0 - 1
src/main/webapp/WEB-INF/views/web/common/layout/DefaultLayoutWeb.html

@@ -27,7 +27,6 @@
 <footer id="footer" th:replace="~{web/common/fragments/FooterWeb :: footer}"></footer>
 
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
-<th:block th:replace="~{web/common/fragments/MktScriptsWeb :: mscripts}"></th:block>
 
 <script th:inline="javascript">
 /*<![CDATA[*/

+ 0 - 1
src/main/webapp/WEB-INF/views/web/common/layout/MypageLayoutWeb.html

@@ -75,7 +75,6 @@
 
 <th:block th:replace="~{web/common/fragments/ScriptsWeb :: scripts}"></th:block>
 <script th:src="@{'/ux/pc/js/mypage.js?v=' + ${#calendars.format(#calendars.createNow(), 'yyyyMMddHHmmss')}}" src="/ux/pc/js/mypage.js"></script>
-<th:block th:replace="~{web/common/fragments/MktScriptsWeb :: mscripts}"></th:block>
 
 <script th:inline="javascript">
 /*<![CDATA[*/

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
src/main/webapp/ux/sha512.min.js


Някои файлове не бяха показани, защото твърде много файлове са промени