VariablesWeb.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="ko"
  3. xmlns:th="http://www.thymeleaf.org">
  4. <!--
  5. *******************************************************************************
  6. * @source : VariablesWeb.html
  7. * @desc : Global variables 설정
  8. * prefix를 _(underbar)로 시작한다.
  9. *============================================================================
  10. * STYLE24
  11. * Copyright(C) 2020 TSIT, All rights reserved.
  12. *============================================================================
  13. * VER DATE AUTHOR DESCRIPTION
  14. * === =========== ========== =============================================
  15. * 1.0 2021.01.28 gagamel 최초 작성
  16. *******************************************************************************
  17. -->
  18. <th:block th:fragment="variables">
  19. <script th:inline="javascript">
  20. /*<![CDATA[*/
  21. var _frontUrl = [[${@environment.getProperty('domain.front')}]];
  22. var _uximgUrl = [[${@environment.getProperty('domain.uximage')}]];
  23. var _imgUrl = [[${@environment.getProperty('domain.image')}]];
  24. var _uploadDefaultUrl = [[${@environment.getProperty('upload.default.view')}]];
  25. var _uploadGoodsUrl = [[${@environment.getProperty('upload.goods.view')}]];
  26. var _uploadImageUrl = [[${@environment.getProperty('upload.image.view')}]];
  27. var _frontGb = [[${frontGb}]];
  28. var _today = [[${#calendars.format(#calendars.createNow(), 'yyyy-MM-dd')}]];
  29. var _realtime = [[${#calendars.format(#calendars.createNow(), 'HHmmss')}]];
  30. var _thisYear = [[${#calendars.format(#calendars.createNow(), 'yyyy')}]];
  31. // App Info.
  32. var _osType = [[${osType}]];
  33. var _isApp = [[${isApp}]];
  34. var _appName = [[${appName}]];
  35. var _appVersion = [[${appVersion}]];
  36. /*]]>*/
  37. </script>
  38. </th:block>
  39. </html>