j1-template 2021.2.0 → 2021.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (697) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +6 -6
  3. data/_includes/themes/j1/layouts/layout_metadata_generator.html +6 -1
  4. data/_includes/themes/j1/modules/connectors/translators/google-translator.html +11 -23
  5. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +5 -5
  6. data/_layouts/default.html +36 -26
  7. data/assets/data/cookieconsent.html +43 -33
  8. data/assets/data/msdropdown.json +155 -0
  9. data/assets/data/panel.html +10 -10
  10. data/assets/data/quicklinks.html +25 -4
  11. data/assets/data/translator.html +291 -0
  12. data/assets/data/translator_languages.json +142 -0
  13. data/assets/themes/j1/adapter/js/cookieConsent.js +41 -34
  14. data/assets/themes/j1/adapter/js/fam.js +1 -1
  15. data/assets/themes/j1/adapter/js/j1.js +204 -158
  16. data/assets/themes/j1/adapter/js/navigator.js +11 -4
  17. data/assets/themes/j1/adapter/js/rtable.js +77 -24
  18. data/assets/themes/j1/adapter/js/themer.js +2 -2
  19. data/assets/themes/j1/adapter/js/translator.js +492 -0
  20. data/assets/themes/j1/core/country-flags/1x1/ad.svg +148 -0
  21. data/assets/themes/j1/core/country-flags/1x1/ae.svg +6 -0
  22. data/assets/themes/j1/core/country-flags/1x1/af.svg +81 -0
  23. data/assets/themes/j1/core/country-flags/1x1/ag.svg +14 -0
  24. data/assets/themes/j1/core/country-flags/1x1/ai.svg +763 -0
  25. data/assets/themes/j1/core/country-flags/1x1/al.svg +5 -0
  26. data/assets/themes/j1/core/country-flags/1x1/am.svg +5 -0
  27. data/assets/themes/j1/core/country-flags/1x1/ao.svg +13 -0
  28. data/assets/themes/j1/core/country-flags/1x1/aq.svg +5 -0
  29. data/assets/themes/j1/core/country-flags/1x1/ar.svg +31 -0
  30. data/assets/themes/j1/core/country-flags/1x1/as.svg +33 -0
  31. data/assets/themes/j1/core/country-flags/1x1/at.svg +6 -0
  32. data/assets/themes/j1/core/country-flags/1x1/au.svg +11 -0
  33. data/assets/themes/j1/core/country-flags/1x1/aw.svg +186 -0
  34. data/assets/themes/j1/core/country-flags/1x1/ax.svg +18 -0
  35. data/assets/themes/j1/core/country-flags/1x1/az.svg +8 -0
  36. data/assets/themes/j1/core/country-flags/1x1/ba.svg +12 -0
  37. data/assets/themes/j1/core/country-flags/1x1/bb.svg +6 -0
  38. data/assets/themes/j1/core/country-flags/1x1/bd.svg +4 -0
  39. data/assets/themes/j1/core/country-flags/1x1/be.svg +7 -0
  40. data/assets/themes/j1/core/country-flags/1x1/bf.svg +7 -0
  41. data/assets/themes/j1/core/country-flags/1x1/bg.svg +7 -0
  42. data/assets/themes/j1/core/country-flags/1x1/bh.svg +9 -0
  43. data/assets/themes/j1/core/country-flags/1x1/bi.svg +15 -0
  44. data/assets/themes/j1/core/country-flags/1x1/bj.svg +14 -0
  45. data/assets/themes/j1/core/country-flags/1x1/bl.svg +7 -0
  46. data/assets/themes/j1/core/country-flags/1x1/bm.svg +98 -0
  47. data/assets/themes/j1/core/country-flags/1x1/bn.svg +36 -0
  48. data/assets/themes/j1/core/country-flags/1x1/bo.svg +678 -0
  49. data/assets/themes/j1/core/country-flags/1x1/bq.svg +5 -0
  50. data/assets/themes/j1/core/country-flags/1x1/br.svg +45 -0
  51. data/assets/themes/j1/core/country-flags/1x1/bs.svg +13 -0
  52. data/assets/themes/j1/core/country-flags/1x1/bt.svg +89 -0
  53. data/assets/themes/j1/core/country-flags/1x1/bv.svg +13 -0
  54. data/assets/themes/j1/core/country-flags/1x1/bw.svg +7 -0
  55. data/assets/themes/j1/core/country-flags/1x1/by.svg +22 -0
  56. data/assets/themes/j1/core/country-flags/1x1/bz.svg +145 -0
  57. data/assets/themes/j1/core/country-flags/1x1/ca.svg +4 -0
  58. data/assets/themes/j1/core/country-flags/1x1/cc.svg +19 -0
  59. data/assets/themes/j1/core/country-flags/1x1/cd.svg +12 -0
  60. data/assets/themes/j1/core/country-flags/1x1/cf.svg +15 -0
  61. data/assets/themes/j1/core/country-flags/1x1/cg.svg +12 -0
  62. data/assets/themes/j1/core/country-flags/1x1/ch.svg +9 -0
  63. data/assets/themes/j1/core/country-flags/1x1/ci.svg +7 -0
  64. data/assets/themes/j1/core/country-flags/1x1/ck.svg +11 -0
  65. data/assets/themes/j1/core/country-flags/1x1/cl.svg +13 -0
  66. data/assets/themes/j1/core/country-flags/1x1/cm.svg +15 -0
  67. data/assets/themes/j1/core/country-flags/1x1/cn.svg +11 -0
  68. data/assets/themes/j1/core/country-flags/1x1/co.svg +7 -0
  69. data/assets/themes/j1/core/country-flags/1x1/cr.svg +7 -0
  70. data/assets/themes/j1/core/country-flags/1x1/cu.svg +13 -0
  71. data/assets/themes/j1/core/country-flags/1x1/cv.svg +13 -0
  72. data/assets/themes/j1/core/country-flags/1x1/cw.svg +14 -0
  73. data/assets/themes/j1/core/country-flags/1x1/cx.svg +15 -0
  74. data/assets/themes/j1/core/country-flags/1x1/cy.svg +6 -0
  75. data/assets/themes/j1/core/country-flags/1x1/cz.svg +5 -0
  76. data/assets/themes/j1/core/country-flags/1x1/de.svg +5 -0
  77. data/assets/themes/j1/core/country-flags/1x1/dj.svg +13 -0
  78. data/assets/themes/j1/core/country-flags/1x1/dk.svg +5 -0
  79. data/assets/themes/j1/core/country-flags/1x1/dm.svg +152 -0
  80. data/assets/themes/j1/core/country-flags/1x1/do.svg +6745 -0
  81. data/assets/themes/j1/core/country-flags/1x1/dz.svg +5 -0
  82. data/assets/themes/j1/core/country-flags/1x1/ec.svg +138 -0
  83. data/assets/themes/j1/core/country-flags/1x1/ee.svg +7 -0
  84. data/assets/themes/j1/core/country-flags/1x1/eg.svg +38 -0
  85. data/assets/themes/j1/core/country-flags/1x1/eh.svg +15 -0
  86. data/assets/themes/j1/core/country-flags/1x1/er.svg +13 -0
  87. data/assets/themes/j1/core/country-flags/1x1/es-ca.svg +4 -0
  88. data/assets/themes/j1/core/country-flags/1x1/es-ga.svg +189 -0
  89. data/assets/themes/j1/core/country-flags/1x1/es.svg +547 -0
  90. data/assets/themes/j1/core/country-flags/1x1/et.svg +14 -0
  91. data/assets/themes/j1/core/country-flags/1x1/eu.svg +28 -0
  92. data/assets/themes/j1/core/country-flags/1x1/fi.svg +5 -0
  93. data/assets/themes/j1/core/country-flags/1x1/fj.svg +125 -0
  94. data/assets/themes/j1/core/country-flags/1x1/fk.svg +93 -0
  95. data/assets/themes/j1/core/country-flags/1x1/fm.svg +11 -0
  96. data/assets/themes/j1/core/country-flags/1x1/fo.svg +12 -0
  97. data/assets/themes/j1/core/country-flags/1x1/fr.svg +7 -0
  98. data/assets/themes/j1/core/country-flags/1x1/ga.svg +7 -0
  99. data/assets/themes/j1/core/country-flags/1x1/gb-eng.svg +5 -0
  100. data/assets/themes/j1/core/country-flags/1x1/gb-nir.svg +131 -0
  101. data/assets/themes/j1/core/country-flags/1x1/gb-sct.svg +4 -0
  102. data/assets/themes/j1/core/country-flags/1x1/gb-wls.svg +9 -0
  103. data/assets/themes/j1/core/country-flags/1x1/gb.svg +7 -0
  104. data/assets/themes/j1/core/country-flags/1x1/gd.svg +27 -0
  105. data/assets/themes/j1/core/country-flags/1x1/ge.svg +6 -0
  106. data/assets/themes/j1/core/country-flags/1x1/gf.svg +7 -0
  107. data/assets/themes/j1/core/country-flags/1x1/gg.svg +9 -0
  108. data/assets/themes/j1/core/country-flags/1x1/gh.svg +6 -0
  109. data/assets/themes/j1/core/country-flags/1x1/gi.svg +32 -0
  110. data/assets/themes/j1/core/country-flags/1x1/gl.svg +4 -0
  111. data/assets/themes/j1/core/country-flags/1x1/gm.svg +9 -0
  112. data/assets/themes/j1/core/country-flags/1x1/gn.svg +7 -0
  113. data/assets/themes/j1/core/country-flags/1x1/gp.svg +7 -0
  114. data/assets/themes/j1/core/country-flags/1x1/gq.svg +23 -0
  115. data/assets/themes/j1/core/country-flags/1x1/gr.svg +16 -0
  116. data/assets/themes/j1/core/country-flags/1x1/gs.svg +206 -0
  117. data/assets/themes/j1/core/country-flags/1x1/gt.svg +204 -0
  118. data/assets/themes/j1/core/country-flags/1x1/gu.svg +39 -0
  119. data/assets/themes/j1/core/country-flags/1x1/gw.svg +15 -0
  120. data/assets/themes/j1/core/country-flags/1x1/gy.svg +9 -0
  121. data/assets/themes/j1/core/country-flags/1x1/hk.svg +30 -0
  122. data/assets/themes/j1/core/country-flags/1x1/hm.svg +9 -0
  123. data/assets/themes/j1/core/country-flags/1x1/hn.svg +18 -0
  124. data/assets/themes/j1/core/country-flags/1x1/hr.svg +56 -0
  125. data/assets/themes/j1/core/country-flags/1x1/ht.svg +116 -0
  126. data/assets/themes/j1/core/country-flags/1x1/hu.svg +7 -0
  127. data/assets/themes/j1/core/country-flags/1x1/id.svg +6 -0
  128. data/assets/themes/j1/core/country-flags/1x1/ie.svg +7 -0
  129. data/assets/themes/j1/core/country-flags/1x1/il.svg +14 -0
  130. data/assets/themes/j1/core/country-flags/1x1/im.svg +36 -0
  131. data/assets/themes/j1/core/country-flags/1x1/in.svg +25 -0
  132. data/assets/themes/j1/core/country-flags/1x1/io.svg +140 -0
  133. data/assets/themes/j1/core/country-flags/1x1/iq.svg +10 -0
  134. data/assets/themes/j1/core/country-flags/1x1/ir.svg +219 -0
  135. data/assets/themes/j1/core/country-flags/1x1/is.svg +12 -0
  136. data/assets/themes/j1/core/country-flags/1x1/it.svg +7 -0
  137. data/assets/themes/j1/core/country-flags/1x1/je.svg +29 -0
  138. data/assets/themes/j1/core/country-flags/1x1/jm.svg +8 -0
  139. data/assets/themes/j1/core/country-flags/1x1/jo.svg +16 -0
  140. data/assets/themes/j1/core/country-flags/1x1/jp.svg +11 -0
  141. data/assets/themes/j1/core/country-flags/1x1/ke.svg +23 -0
  142. data/assets/themes/j1/core/country-flags/1x1/kg.svg +15 -0
  143. data/assets/themes/j1/core/country-flags/1x1/kh.svg +61 -0
  144. data/assets/themes/j1/core/country-flags/1x1/ki.svg +36 -0
  145. data/assets/themes/j1/core/country-flags/1x1/km.svg +16 -0
  146. data/assets/themes/j1/core/country-flags/1x1/kn.svg +14 -0
  147. data/assets/themes/j1/core/country-flags/1x1/kp.svg +15 -0
  148. data/assets/themes/j1/core/country-flags/1x1/kr.svg +24 -0
  149. data/assets/themes/j1/core/country-flags/1x1/kw.svg +13 -0
  150. data/assets/themes/j1/core/country-flags/1x1/ky.svg +70 -0
  151. data/assets/themes/j1/core/country-flags/1x1/kz.svg +23 -0
  152. data/assets/themes/j1/core/country-flags/1x1/la.svg +12 -0
  153. data/assets/themes/j1/core/country-flags/1x1/lb.svg +15 -0
  154. data/assets/themes/j1/core/country-flags/1x1/lc.svg +8 -0
  155. data/assets/themes/j1/core/country-flags/1x1/li.svg +43 -0
  156. data/assets/themes/j1/core/country-flags/1x1/lk.svg +22 -0
  157. data/assets/themes/j1/core/country-flags/1x1/lr.svg +14 -0
  158. data/assets/themes/j1/core/country-flags/1x1/ls.svg +8 -0
  159. data/assets/themes/j1/core/country-flags/1x1/lt.svg +7 -0
  160. data/assets/themes/j1/core/country-flags/1x1/lu.svg +5 -0
  161. data/assets/themes/j1/core/country-flags/1x1/lv.svg +6 -0
  162. data/assets/themes/j1/core/country-flags/1x1/ly.svg +13 -0
  163. data/assets/themes/j1/core/country-flags/1x1/ma.svg +4 -0
  164. data/assets/themes/j1/core/country-flags/1x1/mc.svg +6 -0
  165. data/assets/themes/j1/core/country-flags/1x1/md.svg +71 -0
  166. data/assets/themes/j1/core/country-flags/1x1/me.svg +118 -0
  167. data/assets/themes/j1/core/country-flags/1x1/mf.svg +7 -0
  168. data/assets/themes/j1/core/country-flags/1x1/mg.svg +7 -0
  169. data/assets/themes/j1/core/country-flags/1x1/mh.svg +8 -0
  170. data/assets/themes/j1/core/country-flags/1x1/mk.svg +5 -0
  171. data/assets/themes/j1/core/country-flags/1x1/ml.svg +7 -0
  172. data/assets/themes/j1/core/country-flags/1x1/mm.svg +16 -0
  173. data/assets/themes/j1/core/country-flags/1x1/mn.svg +13 -0
  174. data/assets/themes/j1/core/country-flags/1x1/mo.svg +9 -0
  175. data/assets/themes/j1/core/country-flags/1x1/mp.svg +86 -0
  176. data/assets/themes/j1/core/country-flags/1x1/mq.svg +7 -0
  177. data/assets/themes/j1/core/country-flags/1x1/mr.svg +6 -0
  178. data/assets/themes/j1/core/country-flags/1x1/ms.svg +70 -0
  179. data/assets/themes/j1/core/country-flags/1x1/mt.svg +50 -0
  180. data/assets/themes/j1/core/country-flags/1x1/mu.svg +8 -0
  181. data/assets/themes/j1/core/country-flags/1x1/mv.svg +6 -0
  182. data/assets/themes/j1/core/country-flags/1x1/mw.svg +15 -0
  183. data/assets/themes/j1/core/country-flags/1x1/mx.svg +378 -0
  184. data/assets/themes/j1/core/country-flags/1x1/my.svg +15 -0
  185. data/assets/themes/j1/core/country-flags/1x1/mz.svg +21 -0
  186. data/assets/themes/j1/core/country-flags/1x1/na.svg +16 -0
  187. data/assets/themes/j1/core/country-flags/1x1/nc.svg +14 -0
  188. data/assets/themes/j1/core/country-flags/1x1/ne.svg +6 -0
  189. data/assets/themes/j1/core/country-flags/1x1/nf.svg +11 -0
  190. data/assets/themes/j1/core/country-flags/1x1/ng.svg +6 -0
  191. data/assets/themes/j1/core/country-flags/1x1/ni.svg +129 -0
  192. data/assets/themes/j1/core/country-flags/1x1/nl.svg +5 -0
  193. data/assets/themes/j1/core/country-flags/1x1/no.svg +7 -0
  194. data/assets/themes/j1/core/country-flags/1x1/np.svg +19 -0
  195. data/assets/themes/j1/core/country-flags/1x1/nr.svg +12 -0
  196. data/assets/themes/j1/core/country-flags/1x1/nu.svg +26 -0
  197. data/assets/themes/j1/core/country-flags/1x1/nz.svg +41 -0
  198. data/assets/themes/j1/core/country-flags/1x1/om.svg +115 -0
  199. data/assets/themes/j1/core/country-flags/1x1/pa.svg +13 -0
  200. data/assets/themes/j1/core/country-flags/1x1/pe.svg +244 -0
  201. data/assets/themes/j1/core/country-flags/1x1/pf.svg +18 -0
  202. data/assets/themes/j1/core/country-flags/1x1/pg.svg +16 -0
  203. data/assets/themes/j1/core/country-flags/1x1/ph.svg +9 -0
  204. data/assets/themes/j1/core/country-flags/1x1/pk.svg +15 -0
  205. data/assets/themes/j1/core/country-flags/1x1/pl.svg +6 -0
  206. data/assets/themes/j1/core/country-flags/1x1/pm.svg +7 -0
  207. data/assets/themes/j1/core/country-flags/1x1/pn.svg +67 -0
  208. data/assets/themes/j1/core/country-flags/1x1/pr.svg +13 -0
  209. data/assets/themes/j1/core/country-flags/1x1/ps.svg +15 -0
  210. data/assets/themes/j1/core/country-flags/1x1/pt.svg +57 -0
  211. data/assets/themes/j1/core/country-flags/1x1/pw.svg +11 -0
  212. data/assets/themes/j1/core/country-flags/1x1/py.svg +156 -0
  213. data/assets/themes/j1/core/country-flags/1x1/qa.svg +4 -0
  214. data/assets/themes/j1/core/country-flags/1x1/re.svg +7 -0
  215. data/assets/themes/j1/core/country-flags/1x1/ro.svg +7 -0
  216. data/assets/themes/j1/core/country-flags/1x1/rs.svg +296 -0
  217. data/assets/themes/j1/core/country-flags/1x1/ru.svg +7 -0
  218. data/assets/themes/j1/core/country-flags/1x1/rw.svg +13 -0
  219. data/assets/themes/j1/core/country-flags/1x1/sa.svg +26 -0
  220. data/assets/themes/j1/core/country-flags/1x1/sb.svg +13 -0
  221. data/assets/themes/j1/core/country-flags/1x1/sc.svg +14 -0
  222. data/assets/themes/j1/core/country-flags/1x1/sd.svg +13 -0
  223. data/assets/themes/j1/core/country-flags/1x1/se.svg +5 -0
  224. data/assets/themes/j1/core/country-flags/1x1/sg.svg +13 -0
  225. data/assets/themes/j1/core/country-flags/1x1/sh.svg +81 -0
  226. data/assets/themes/j1/core/country-flags/1x1/si.svg +18 -0
  227. data/assets/themes/j1/core/country-flags/1x1/sj.svg +7 -0
  228. data/assets/themes/j1/core/country-flags/1x1/sk.svg +9 -0
  229. data/assets/themes/j1/core/country-flags/1x1/sl.svg +12 -0
  230. data/assets/themes/j1/core/country-flags/1x1/sm.svg +89 -0
  231. data/assets/themes/j1/core/country-flags/1x1/sn.svg +8 -0
  232. data/assets/themes/j1/core/country-flags/1x1/so.svg +11 -0
  233. data/assets/themes/j1/core/country-flags/1x1/sr.svg +6 -0
  234. data/assets/themes/j1/core/country-flags/1x1/ss.svg +8 -0
  235. data/assets/themes/j1/core/country-flags/1x1/st.svg +16 -0
  236. data/assets/themes/j1/core/country-flags/1x1/sv.svg +596 -0
  237. data/assets/themes/j1/core/country-flags/1x1/sx.svg +56 -0
  238. data/assets/themes/j1/core/country-flags/1x1/sy.svg +6 -0
  239. data/assets/themes/j1/core/country-flags/1x1/sz.svg +45 -0
  240. data/assets/themes/j1/core/country-flags/1x1/tc.svg +74 -0
  241. data/assets/themes/j1/core/country-flags/1x1/td.svg +7 -0
  242. data/assets/themes/j1/core/country-flags/1x1/tf.svg +15 -0
  243. data/assets/themes/j1/core/country-flags/1x1/tg.svg +14 -0
  244. data/assets/themes/j1/core/country-flags/1x1/th.svg +7 -0
  245. data/assets/themes/j1/core/country-flags/1x1/tj.svg +26 -0
  246. data/assets/themes/j1/core/country-flags/1x1/tk.svg +5 -0
  247. data/assets/themes/j1/core/country-flags/1x1/tl.svg +13 -0
  248. data/assets/themes/j1/core/country-flags/1x1/tm.svg +203 -0
  249. data/assets/themes/j1/core/country-flags/1x1/tn.svg +13 -0
  250. data/assets/themes/j1/core/country-flags/1x1/to.svg +10 -0
  251. data/assets/themes/j1/core/country-flags/1x1/tr.svg +8 -0
  252. data/assets/themes/j1/core/country-flags/1x1/tt.svg +7 -0
  253. data/assets/themes/j1/core/country-flags/1x1/tv.svg +16 -0
  254. data/assets/themes/j1/core/country-flags/1x1/tw.svg +14 -0
  255. data/assets/themes/j1/core/country-flags/1x1/tz.svg +15 -0
  256. data/assets/themes/j1/core/country-flags/1x1/ua.svg +6 -0
  257. data/assets/themes/j1/core/country-flags/1x1/ug.svg +30 -0
  258. data/assets/themes/j1/core/country-flags/1x1/um.svg +15 -0
  259. data/assets/themes/j1/core/country-flags/1x1/un.svg +16 -0
  260. data/assets/themes/j1/core/country-flags/1x1/us.svg +10 -0
  261. data/assets/themes/j1/core/country-flags/1x1/uy.svg +28 -0
  262. data/assets/themes/j1/core/country-flags/1x1/uz.svg +30 -0
  263. data/assets/themes/j1/core/country-flags/1x1/va.svg +479 -0
  264. data/assets/themes/j1/core/country-flags/1x1/vc.svg +8 -0
  265. data/assets/themes/j1/core/country-flags/1x1/ve.svg +26 -0
  266. data/assets/themes/j1/core/country-flags/1x1/vg.svg +128 -0
  267. data/assets/themes/j1/core/country-flags/1x1/vi.svg +28 -0
  268. data/assets/themes/j1/core/country-flags/1x1/vn.svg +11 -0
  269. data/assets/themes/j1/core/country-flags/1x1/vu.svg +18 -0
  270. data/assets/themes/j1/core/country-flags/1x1/wf.svg +7 -0
  271. data/assets/themes/j1/core/country-flags/1x1/ws.svg +7 -0
  272. data/assets/themes/j1/core/country-flags/1x1/xk.svg +16 -0
  273. data/assets/themes/j1/core/country-flags/1x1/ye.svg +7 -0
  274. data/assets/themes/j1/core/country-flags/1x1/yt.svg +7 -0
  275. data/assets/themes/j1/core/country-flags/1x1/za.svg +17 -0
  276. data/assets/themes/j1/core/country-flags/1x1/zm.svg +27 -0
  277. data/assets/themes/j1/core/country-flags/1x1/zw.svg +21 -0
  278. data/assets/themes/j1/core/country-flags/4x3/ad.svg +150 -0
  279. data/assets/themes/j1/core/country-flags/4x3/ae.svg +6 -0
  280. data/assets/themes/j1/core/country-flags/4x3/af.svg +81 -0
  281. data/assets/themes/j1/core/country-flags/4x3/ag.svg +14 -0
  282. data/assets/themes/j1/core/country-flags/4x3/ai.svg +763 -0
  283. data/assets/themes/j1/core/country-flags/4x3/al.svg +5 -0
  284. data/assets/themes/j1/core/country-flags/4x3/am.svg +5 -0
  285. data/assets/themes/j1/core/country-flags/4x3/ao.svg +13 -0
  286. data/assets/themes/j1/core/country-flags/4x3/aq.svg +5 -0
  287. data/assets/themes/j1/core/country-flags/4x3/ar.svg +31 -0
  288. data/assets/themes/j1/core/country-flags/4x3/as.svg +33 -0
  289. data/assets/themes/j1/core/country-flags/4x3/at.svg +6 -0
  290. data/assets/themes/j1/core/country-flags/4x3/au.svg +9 -0
  291. data/assets/themes/j1/core/country-flags/4x3/aw.svg +186 -0
  292. data/assets/themes/j1/core/country-flags/4x3/ax.svg +18 -0
  293. data/assets/themes/j1/core/country-flags/4x3/az.svg +8 -0
  294. data/assets/themes/j1/core/country-flags/4x3/ba.svg +12 -0
  295. data/assets/themes/j1/core/country-flags/4x3/bb.svg +6 -0
  296. data/assets/themes/j1/core/country-flags/4x3/bd.svg +4 -0
  297. data/assets/themes/j1/core/country-flags/4x3/be.svg +7 -0
  298. data/assets/themes/j1/core/country-flags/4x3/bf.svg +7 -0
  299. data/assets/themes/j1/core/country-flags/4x3/bg.svg +7 -0
  300. data/assets/themes/j1/core/country-flags/4x3/bh.svg +9 -0
  301. data/assets/themes/j1/core/country-flags/4x3/bi.svg +15 -0
  302. data/assets/themes/j1/core/country-flags/4x3/bj.svg +14 -0
  303. data/assets/themes/j1/core/country-flags/4x3/bl.svg +7 -0
  304. data/assets/themes/j1/core/country-flags/4x3/bm.svg +98 -0
  305. data/assets/themes/j1/core/country-flags/4x3/bn.svg +36 -0
  306. data/assets/themes/j1/core/country-flags/4x3/bo.svg +676 -0
  307. data/assets/themes/j1/core/country-flags/4x3/bq.svg +5 -0
  308. data/assets/themes/j1/core/country-flags/4x3/br.svg +45 -0
  309. data/assets/themes/j1/core/country-flags/4x3/bs.svg +13 -0
  310. data/assets/themes/j1/core/country-flags/4x3/bt.svg +89 -0
  311. data/assets/themes/j1/core/country-flags/4x3/bv.svg +13 -0
  312. data/assets/themes/j1/core/country-flags/4x3/bw.svg +7 -0
  313. data/assets/themes/j1/core/country-flags/4x3/by.svg +20 -0
  314. data/assets/themes/j1/core/country-flags/4x3/bz.svg +145 -0
  315. data/assets/themes/j1/core/country-flags/4x3/ca.svg +4 -0
  316. data/assets/themes/j1/core/country-flags/4x3/cc.svg +19 -0
  317. data/assets/themes/j1/core/country-flags/4x3/cd.svg +5 -0
  318. data/assets/themes/j1/core/country-flags/4x3/cf.svg +15 -0
  319. data/assets/themes/j1/core/country-flags/4x3/cg.svg +12 -0
  320. data/assets/themes/j1/core/country-flags/4x3/ch.svg +9 -0
  321. data/assets/themes/j1/core/country-flags/4x3/ci.svg +7 -0
  322. data/assets/themes/j1/core/country-flags/4x3/ck.svg +9 -0
  323. data/assets/themes/j1/core/country-flags/4x3/cl.svg +13 -0
  324. data/assets/themes/j1/core/country-flags/4x3/cm.svg +15 -0
  325. data/assets/themes/j1/core/country-flags/4x3/cn.svg +11 -0
  326. data/assets/themes/j1/core/country-flags/4x3/co.svg +7 -0
  327. data/assets/themes/j1/core/country-flags/4x3/cr.svg +7 -0
  328. data/assets/themes/j1/core/country-flags/4x3/cu.svg +13 -0
  329. data/assets/themes/j1/core/country-flags/4x3/cv.svg +13 -0
  330. data/assets/themes/j1/core/country-flags/4x3/cw.svg +14 -0
  331. data/assets/themes/j1/core/country-flags/4x3/cx.svg +15 -0
  332. data/assets/themes/j1/core/country-flags/4x3/cy.svg +6 -0
  333. data/assets/themes/j1/core/country-flags/4x3/cz.svg +5 -0
  334. data/assets/themes/j1/core/country-flags/4x3/de.svg +5 -0
  335. data/assets/themes/j1/core/country-flags/4x3/dj.svg +13 -0
  336. data/assets/themes/j1/core/country-flags/4x3/dk.svg +5 -0
  337. data/assets/themes/j1/core/country-flags/4x3/dm.svg +152 -0
  338. data/assets/themes/j1/core/country-flags/4x3/do.svg +6745 -0
  339. data/assets/themes/j1/core/country-flags/4x3/dz.svg +5 -0
  340. data/assets/themes/j1/core/country-flags/4x3/ec.svg +138 -0
  341. data/assets/themes/j1/core/country-flags/4x3/ee.svg +7 -0
  342. data/assets/themes/j1/core/country-flags/4x3/eg.svg +38 -0
  343. data/assets/themes/j1/core/country-flags/4x3/eh.svg +15 -0
  344. data/assets/themes/j1/core/country-flags/4x3/er.svg +8 -0
  345. data/assets/themes/j1/core/country-flags/4x3/es-ca.svg +4 -0
  346. data/assets/themes/j1/core/country-flags/4x3/es-ga.svg +189 -0
  347. data/assets/themes/j1/core/country-flags/4x3/es.svg +544 -0
  348. data/assets/themes/j1/core/country-flags/4x3/et.svg +14 -0
  349. data/assets/themes/j1/core/country-flags/4x3/eu.svg +28 -0
  350. data/assets/themes/j1/core/country-flags/4x3/fi.svg +5 -0
  351. data/assets/themes/j1/core/country-flags/4x3/fj.svg +122 -0
  352. data/assets/themes/j1/core/country-flags/4x3/fk.svg +90 -0
  353. data/assets/themes/j1/core/country-flags/4x3/fm.svg +11 -0
  354. data/assets/themes/j1/core/country-flags/4x3/fo.svg +12 -0
  355. data/assets/themes/j1/core/country-flags/4x3/fr.svg +7 -0
  356. data/assets/themes/j1/core/country-flags/4x3/ga.svg +7 -0
  357. data/assets/themes/j1/core/country-flags/4x3/gb-eng.svg +5 -0
  358. data/assets/themes/j1/core/country-flags/4x3/gb-nir.svg +132 -0
  359. data/assets/themes/j1/core/country-flags/4x3/gb-sct.svg +4 -0
  360. data/assets/themes/j1/core/country-flags/4x3/gb-wls.svg +9 -0
  361. data/assets/themes/j1/core/country-flags/4x3/gb.svg +7 -0
  362. data/assets/themes/j1/core/country-flags/4x3/gd.svg +27 -0
  363. data/assets/themes/j1/core/country-flags/4x3/ge.svg +6 -0
  364. data/assets/themes/j1/core/country-flags/4x3/gf.svg +7 -0
  365. data/assets/themes/j1/core/country-flags/4x3/gg.svg +9 -0
  366. data/assets/themes/j1/core/country-flags/4x3/gh.svg +6 -0
  367. data/assets/themes/j1/core/country-flags/4x3/gi.svg +32 -0
  368. data/assets/themes/j1/core/country-flags/4x3/gl.svg +4 -0
  369. data/assets/themes/j1/core/country-flags/4x3/gm.svg +14 -0
  370. data/assets/themes/j1/core/country-flags/4x3/gn.svg +7 -0
  371. data/assets/themes/j1/core/country-flags/4x3/gp.svg +7 -0
  372. data/assets/themes/j1/core/country-flags/4x3/gq.svg +23 -0
  373. data/assets/themes/j1/core/country-flags/4x3/gr.svg +16 -0
  374. data/assets/themes/j1/core/country-flags/4x3/gs.svg +201 -0
  375. data/assets/themes/j1/core/country-flags/4x3/gt.svg +204 -0
  376. data/assets/themes/j1/core/country-flags/4x3/gu.svg +39 -0
  377. data/assets/themes/j1/core/country-flags/4x3/gw.svg +13 -0
  378. data/assets/themes/j1/core/country-flags/4x3/gy.svg +9 -0
  379. data/assets/themes/j1/core/country-flags/4x3/hk.svg +30 -0
  380. data/assets/themes/j1/core/country-flags/4x3/hm.svg +9 -0
  381. data/assets/themes/j1/core/country-flags/4x3/hn.svg +18 -0
  382. data/assets/themes/j1/core/country-flags/4x3/hr.svg +58 -0
  383. data/assets/themes/j1/core/country-flags/4x3/ht.svg +116 -0
  384. data/assets/themes/j1/core/country-flags/4x3/hu.svg +7 -0
  385. data/assets/themes/j1/core/country-flags/4x3/id.svg +6 -0
  386. data/assets/themes/j1/core/country-flags/4x3/ie.svg +7 -0
  387. data/assets/themes/j1/core/country-flags/4x3/il.svg +14 -0
  388. data/assets/themes/j1/core/country-flags/4x3/im.svg +36 -0
  389. data/assets/themes/j1/core/country-flags/4x3/in.svg +25 -0
  390. data/assets/themes/j1/core/country-flags/4x3/io.svg +138 -0
  391. data/assets/themes/j1/core/country-flags/4x3/iq.svg +10 -0
  392. data/assets/themes/j1/core/country-flags/4x3/ir.svg +219 -0
  393. data/assets/themes/j1/core/country-flags/4x3/is.svg +12 -0
  394. data/assets/themes/j1/core/country-flags/4x3/it.svg +7 -0
  395. data/assets/themes/j1/core/country-flags/4x3/je.svg +29 -0
  396. data/assets/themes/j1/core/country-flags/4x3/jm.svg +8 -0
  397. data/assets/themes/j1/core/country-flags/4x3/jo.svg +16 -0
  398. data/assets/themes/j1/core/country-flags/4x3/jp.svg +11 -0
  399. data/assets/themes/j1/core/country-flags/4x3/ke.svg +23 -0
  400. data/assets/themes/j1/core/country-flags/4x3/kg.svg +15 -0
  401. data/assets/themes/j1/core/country-flags/4x3/kh.svg +61 -0
  402. data/assets/themes/j1/core/country-flags/4x3/ki.svg +36 -0
  403. data/assets/themes/j1/core/country-flags/4x3/km.svg +16 -0
  404. data/assets/themes/j1/core/country-flags/4x3/kn.svg +14 -0
  405. data/assets/themes/j1/core/country-flags/4x3/kp.svg +15 -0
  406. data/assets/themes/j1/core/country-flags/4x3/kr.svg +24 -0
  407. data/assets/themes/j1/core/country-flags/4x3/kw.svg +13 -0
  408. data/assets/themes/j1/core/country-flags/4x3/ky.svg +63 -0
  409. data/assets/themes/j1/core/country-flags/4x3/kz.svg +23 -0
  410. data/assets/themes/j1/core/country-flags/4x3/la.svg +12 -0
  411. data/assets/themes/j1/core/country-flags/4x3/lb.svg +15 -0
  412. data/assets/themes/j1/core/country-flags/4x3/lc.svg +8 -0
  413. data/assets/themes/j1/core/country-flags/4x3/li.svg +43 -0
  414. data/assets/themes/j1/core/country-flags/4x3/lk.svg +22 -0
  415. data/assets/themes/j1/core/country-flags/4x3/lr.svg +14 -0
  416. data/assets/themes/j1/core/country-flags/4x3/ls.svg +8 -0
  417. data/assets/themes/j1/core/country-flags/4x3/lt.svg +7 -0
  418. data/assets/themes/j1/core/country-flags/4x3/lu.svg +5 -0
  419. data/assets/themes/j1/core/country-flags/4x3/lv.svg +6 -0
  420. data/assets/themes/j1/core/country-flags/4x3/ly.svg +13 -0
  421. data/assets/themes/j1/core/country-flags/4x3/ma.svg +4 -0
  422. data/assets/themes/j1/core/country-flags/4x3/mc.svg +6 -0
  423. data/assets/themes/j1/core/country-flags/4x3/md.svg +70 -0
  424. data/assets/themes/j1/core/country-flags/4x3/me.svg +116 -0
  425. data/assets/themes/j1/core/country-flags/4x3/mf.svg +7 -0
  426. data/assets/themes/j1/core/country-flags/4x3/mg.svg +7 -0
  427. data/assets/themes/j1/core/country-flags/4x3/mh.svg +7 -0
  428. data/assets/themes/j1/core/country-flags/4x3/mk.svg +5 -0
  429. data/assets/themes/j1/core/country-flags/4x3/ml.svg +7 -0
  430. data/assets/themes/j1/core/country-flags/4x3/mm.svg +16 -0
  431. data/assets/themes/j1/core/country-flags/4x3/mn.svg +13 -0
  432. data/assets/themes/j1/core/country-flags/4x3/mo.svg +9 -0
  433. data/assets/themes/j1/core/country-flags/4x3/mp.svg +86 -0
  434. data/assets/themes/j1/core/country-flags/4x3/mq.svg +7 -0
  435. data/assets/themes/j1/core/country-flags/4x3/mr.svg +6 -0
  436. data/assets/themes/j1/core/country-flags/4x3/ms.svg +78 -0
  437. data/assets/themes/j1/core/country-flags/4x3/mt.svg +49 -0
  438. data/assets/themes/j1/core/country-flags/4x3/mu.svg +8 -0
  439. data/assets/themes/j1/core/country-flags/4x3/mv.svg +6 -0
  440. data/assets/themes/j1/core/country-flags/4x3/mw.svg +10 -0
  441. data/assets/themes/j1/core/country-flags/4x3/mx.svg +382 -0
  442. data/assets/themes/j1/core/country-flags/4x3/my.svg +15 -0
  443. data/assets/themes/j1/core/country-flags/4x3/mz.svg +21 -0
  444. data/assets/themes/j1/core/country-flags/4x3/na.svg +16 -0
  445. data/assets/themes/j1/core/country-flags/4x3/nc.svg +14 -0
  446. data/assets/themes/j1/core/country-flags/4x3/ne.svg +6 -0
  447. data/assets/themes/j1/core/country-flags/4x3/nf.svg +9 -0
  448. data/assets/themes/j1/core/country-flags/4x3/ng.svg +6 -0
  449. data/assets/themes/j1/core/country-flags/4x3/ni.svg +129 -0
  450. data/assets/themes/j1/core/country-flags/4x3/nl.svg +5 -0
  451. data/assets/themes/j1/core/country-flags/4x3/no.svg +7 -0
  452. data/assets/themes/j1/core/country-flags/4x3/np.svg +14 -0
  453. data/assets/themes/j1/core/country-flags/4x3/nr.svg +12 -0
  454. data/assets/themes/j1/core/country-flags/4x3/nu.svg +26 -0
  455. data/assets/themes/j1/core/country-flags/4x3/nz.svg +41 -0
  456. data/assets/themes/j1/core/country-flags/4x3/om.svg +115 -0
  457. data/assets/themes/j1/core/country-flags/4x3/pa.svg +14 -0
  458. data/assets/themes/j1/core/country-flags/4x3/pe.svg +244 -0
  459. data/assets/themes/j1/core/country-flags/4x3/pf.svg +19 -0
  460. data/assets/themes/j1/core/country-flags/4x3/pg.svg +9 -0
  461. data/assets/themes/j1/core/country-flags/4x3/ph.svg +9 -0
  462. data/assets/themes/j1/core/country-flags/4x3/pk.svg +15 -0
  463. data/assets/themes/j1/core/country-flags/4x3/pl.svg +6 -0
  464. data/assets/themes/j1/core/country-flags/4x3/pm.svg +7 -0
  465. data/assets/themes/j1/core/country-flags/4x3/pn.svg +62 -0
  466. data/assets/themes/j1/core/country-flags/4x3/pr.svg +13 -0
  467. data/assets/themes/j1/core/country-flags/4x3/ps.svg +15 -0
  468. data/assets/themes/j1/core/country-flags/4x3/pt.svg +57 -0
  469. data/assets/themes/j1/core/country-flags/4x3/pw.svg +11 -0
  470. data/assets/themes/j1/core/country-flags/4x3/py.svg +157 -0
  471. data/assets/themes/j1/core/country-flags/4x3/qa.svg +4 -0
  472. data/assets/themes/j1/core/country-flags/4x3/re.svg +7 -0
  473. data/assets/themes/j1/core/country-flags/4x3/ro.svg +7 -0
  474. data/assets/themes/j1/core/country-flags/4x3/rs.svg +292 -0
  475. data/assets/themes/j1/core/country-flags/4x3/ru.svg +7 -0
  476. data/assets/themes/j1/core/country-flags/4x3/rw.svg +13 -0
  477. data/assets/themes/j1/core/country-flags/4x3/sa.svg +26 -0
  478. data/assets/themes/j1/core/country-flags/4x3/sb.svg +13 -0
  479. data/assets/themes/j1/core/country-flags/4x3/sc.svg +14 -0
  480. data/assets/themes/j1/core/country-flags/4x3/sd.svg +13 -0
  481. data/assets/themes/j1/core/country-flags/4x3/se.svg +5 -0
  482. data/assets/themes/j1/core/country-flags/4x3/sg.svg +13 -0
  483. data/assets/themes/j1/core/country-flags/4x3/sh.svg +74 -0
  484. data/assets/themes/j1/core/country-flags/4x3/si.svg +18 -0
  485. data/assets/themes/j1/core/country-flags/4x3/sj.svg +7 -0
  486. data/assets/themes/j1/core/country-flags/4x3/sk.svg +9 -0
  487. data/assets/themes/j1/core/country-flags/4x3/sl.svg +7 -0
  488. data/assets/themes/j1/core/country-flags/4x3/sm.svg +91 -0
  489. data/assets/themes/j1/core/country-flags/4x3/sn.svg +8 -0
  490. data/assets/themes/j1/core/country-flags/4x3/so.svg +11 -0
  491. data/assets/themes/j1/core/country-flags/4x3/sr.svg +6 -0
  492. data/assets/themes/j1/core/country-flags/4x3/ss.svg +8 -0
  493. data/assets/themes/j1/core/country-flags/4x3/st.svg +16 -0
  494. data/assets/themes/j1/core/country-flags/4x3/sv.svg +594 -0
  495. data/assets/themes/j1/core/country-flags/4x3/sx.svg +56 -0
  496. data/assets/themes/j1/core/country-flags/4x3/sy.svg +6 -0
  497. data/assets/themes/j1/core/country-flags/4x3/sz.svg +45 -0
  498. data/assets/themes/j1/core/country-flags/4x3/tc.svg +67 -0
  499. data/assets/themes/j1/core/country-flags/4x3/td.svg +7 -0
  500. data/assets/themes/j1/core/country-flags/4x3/tf.svg +15 -0
  501. data/assets/themes/j1/core/country-flags/4x3/tg.svg +14 -0
  502. data/assets/themes/j1/core/country-flags/4x3/th.svg +7 -0
  503. data/assets/themes/j1/core/country-flags/4x3/tj.svg +22 -0
  504. data/assets/themes/j1/core/country-flags/4x3/tk.svg +5 -0
  505. data/assets/themes/j1/core/country-flags/4x3/tl.svg +13 -0
  506. data/assets/themes/j1/core/country-flags/4x3/tm.svg +206 -0
  507. data/assets/themes/j1/core/country-flags/4x3/tn.svg +13 -0
  508. data/assets/themes/j1/core/country-flags/4x3/to.svg +10 -0
  509. data/assets/themes/j1/core/country-flags/4x3/tr.svg +8 -0
  510. data/assets/themes/j1/core/country-flags/4x3/tt.svg +5 -0
  511. data/assets/themes/j1/core/country-flags/4x3/tv.svg +16 -0
  512. data/assets/themes/j1/core/country-flags/4x3/tw.svg +14 -0
  513. data/assets/themes/j1/core/country-flags/4x3/tz.svg +13 -0
  514. data/assets/themes/j1/core/country-flags/4x3/ua.svg +6 -0
  515. data/assets/themes/j1/core/country-flags/4x3/ug.svg +30 -0
  516. data/assets/themes/j1/core/country-flags/4x3/um.svg +15 -0
  517. data/assets/themes/j1/core/country-flags/4x3/un.svg +16 -0
  518. data/assets/themes/j1/core/country-flags/4x3/us.svg +10 -0
  519. data/assets/themes/j1/core/country-flags/4x3/uy.svg +28 -0
  520. data/assets/themes/j1/core/country-flags/4x3/uz.svg +30 -0
  521. data/assets/themes/j1/core/country-flags/4x3/va.svg +479 -0
  522. data/assets/themes/j1/core/country-flags/4x3/vc.svg +8 -0
  523. data/assets/themes/j1/core/country-flags/4x3/ve.svg +26 -0
  524. data/assets/themes/j1/core/country-flags/4x3/vg.svg +127 -0
  525. data/assets/themes/j1/core/country-flags/4x3/vi.svg +28 -0
  526. data/assets/themes/j1/core/country-flags/4x3/vn.svg +11 -0
  527. data/assets/themes/j1/core/country-flags/4x3/vu.svg +18 -0
  528. data/assets/themes/j1/core/country-flags/4x3/wf.svg +7 -0
  529. data/assets/themes/j1/core/country-flags/4x3/ws.svg +7 -0
  530. data/assets/themes/j1/core/country-flags/4x3/xk.svg +16 -0
  531. data/assets/themes/j1/core/country-flags/4x3/ye.svg +7 -0
  532. data/assets/themes/j1/core/country-flags/4x3/yt.svg +7 -0
  533. data/assets/themes/j1/core/country-flags/4x3/za.svg +17 -0
  534. data/assets/themes/j1/core/country-flags/4x3/zm.svg +27 -0
  535. data/assets/themes/j1/core/country-flags/4x3/zw.svg +21 -0
  536. data/assets/themes/j1/core/country-flags/css/theme/uno.css +73 -0
  537. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +58 -109
  538. data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
  539. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +30 -21
  540. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  541. data/assets/themes/j1/core/css/vendor.css +1407 -20
  542. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  543. data/assets/themes/j1/core/js/template.js +8502 -10
  544. data/assets/themes/j1/core/js/template.min.js +16 -7
  545. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  546. data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
  547. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  548. data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +49 -42
  549. data/assets/themes/j1/modules/j1Deepl/js/j1deepl.js +388 -0
  550. data/assets/themes/j1/modules/j1Deepl/js/j1deepl.min.js +18 -0
  551. data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +257 -240
  552. data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +1 -2
  553. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
  554. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
  555. data/assets/themes/j1/modules/msDropdown/css/flags.css +1033 -0
  556. data/assets/themes/j1/modules/msDropdown/css/flags.min.css +23 -0
  557. data/assets/themes/j1/modules/msDropdown/css/msDropdown.css +278 -0
  558. data/assets/themes/j1/modules/msDropdown/css/msDropdown.min.css +34 -0
  559. data/assets/themes/j1/modules/msDropdown/images/icons/1273404841_tick_16.png +0 -0
  560. data/assets/themes/j1/modules/msDropdown/images/icons/Amex-56.png +0 -0
  561. data/assets/themes/j1/modules/msDropdown/images/icons/Cash-56.png +0 -0
  562. data/assets/themes/j1/modules/msDropdown/images/icons/Discover-56.png +0 -0
  563. data/assets/themes/j1/modules/msDropdown/images/icons/Mastercard-56.png +0 -0
  564. data/assets/themes/j1/modules/msDropdown/images/icons/Paypal-56.png +0 -0
  565. data/assets/themes/j1/modules/msDropdown/images/icons/Visa-56.png +0 -0
  566. data/assets/themes/j1/modules/msDropdown/images/icons/blank.gif +0 -0
  567. data/assets/themes/j1/modules/msDropdown/images/icons/browser-chrome.png +0 -0
  568. data/assets/themes/j1/modules/msDropdown/images/icons/browser-firefox.png +0 -0
  569. data/assets/themes/j1/modules/msDropdown/images/icons/browser-msie.png +0 -0
  570. data/assets/themes/j1/modules/msDropdown/images/icons/browser-opera.png +0 -0
  571. data/assets/themes/j1/modules/msDropdown/images/icons/browser-safari.png +0 -0
  572. data/assets/themes/j1/modules/msDropdown/images/icons/button-large.gif +0 -0
  573. data/assets/themes/j1/modules/msDropdown/images/icons/demoaction.jpg +0 -0
  574. data/assets/themes/j1/modules/msDropdown/images/icons/enabled.gif +0 -0
  575. data/assets/themes/j1/modules/msDropdown/images/icons/flagssprite_small.png +0 -0
  576. data/assets/themes/j1/modules/msDropdown/images/icons/giftlelo_dot_com.jpg +0 -0
  577. data/assets/themes/j1/modules/msDropdown/images/icons/icon-search.gif +0 -0
  578. data/assets/themes/j1/modules/msDropdown/images/icons/icon_calendar.gif +0 -0
  579. data/assets/themes/j1/modules/msDropdown/images/icons/icon_cart.gif +0 -0
  580. data/assets/themes/j1/modules/msDropdown/images/icons/icon_cd.gif +0 -0
  581. data/assets/themes/j1/modules/msDropdown/images/icons/icon_email.gif +0 -0
  582. data/assets/themes/j1/modules/msDropdown/images/icons/icon_faq.gif +0 -0
  583. data/assets/themes/j1/modules/msDropdown/images/icons/icon_games.gif +0 -0
  584. data/assets/themes/j1/modules/msDropdown/images/icons/icon_lockopen.gif +0 -0
  585. data/assets/themes/j1/modules/msDropdown/images/icons/icon_music.gif +0 -0
  586. data/assets/themes/j1/modules/msDropdown/images/icons/icon_phone.gif +0 -0
  587. data/assets/themes/j1/modules/msDropdown/images/icons/icon_sales.gif +0 -0
  588. data/assets/themes/j1/modules/msDropdown/images/icons/icon_secure.gif +0 -0
  589. data/assets/themes/j1/modules/msDropdown/images/icons/icon_video.gif +0 -0
  590. data/assets/themes/j1/modules/msDropdown/images/icons/jquery-msdropdown.gif +0 -0
  591. data/assets/themes/j1/modules/msDropdown/images/icons/msDropDown.gif +0 -0
  592. data/assets/themes/j1/modules/msDropdown/images/icons/preview.gif +0 -0
  593. data/assets/themes/j1/modules/msDropdown/images/icons/sprite.gif +0 -0
  594. data/assets/themes/j1/modules/msDropdown/images/icons/sprite.jpg +0 -0
  595. data/assets/themes/j1/modules/msDropdown/images/icons/tick.gif +0 -0
  596. data/assets/themes/j1/modules/msDropdown/js/msDropdown.js +2664 -0
  597. data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js +33 -0
  598. data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +1 -0
  599. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +3 -3
  600. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +2 -174
  601. data/assets/themes/j1/modules/rtable/js/rtable.js +59 -25
  602. data/assets/themes/j1/modules/rtable/js/rtable.min.js +12 -683
  603. data/assets/themes/j1/modules/translator/css/translator.css +33 -0
  604. data/assets/themes/j1/modules/translator/css/translator.min.css +15 -0
  605. data/assets/themes/j1/modules/translator/js/translator.js +614 -0
  606. data/assets/themes/j1/modules/translator/js/translator.min.js +15 -0
  607. data/lib/j1/version.rb +1 -1
  608. data/lib/starter_web/Gemfile +1 -1
  609. data/lib/starter_web/_config.yml +13 -49
  610. data/lib/starter_web/_data/j1_config.yml +4 -7
  611. data/lib/starter_web/_data/layouts/collection.yml +1 -12
  612. data/lib/starter_web/_data/layouts/home.yml +0 -12
  613. data/lib/starter_web/_data/layouts/post.yml +0 -11
  614. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
  615. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +100 -90
  616. data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -0
  617. data/lib/starter_web/_data/modules/defaults/rtable.yml +34 -0
  618. data/lib/starter_web/_data/modules/defaults/translator.yml +142 -0
  619. data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
  620. data/lib/starter_web/_data/modules/rtable.yml +34 -0
  621. data/lib/starter_web/_data/modules/translator.yml +31 -0
  622. data/lib/starter_web/_data/resources.yml +126 -101
  623. data/lib/starter_web/_includes/attributes.asciidoc +12 -2
  624. data/lib/starter_web/_plugins/asciidoctor-extensions/flag-icon-inline.rb +37 -0
  625. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  626. data/lib/starter_web/assets/images/modules/attics/markus-krisetya-1920x1280.jpg +0 -0
  627. data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-1920x1280.jpg +0 -0
  628. data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-2-1920x1280.jpg +0 -0
  629. data/lib/starter_web/assets/images/pages/features/percentage_global_mobile_tr.jpg +0 -0
  630. data/lib/starter_web/package.json +2 -2
  631. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +0 -1
  632. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +0 -8
  633. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +3 -2
  634. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  635. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  636. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +4 -27
  637. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -27
  638. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -20
  639. data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -27
  640. data/lib/starter_web/pages/public/learn/quickstart.adoc +0 -1
  641. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  642. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +7 -3
  643. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +3 -1
  644. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +30 -28
  645. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +112 -10
  646. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +8 -5
  647. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +4 -2
  648. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +6 -8
  649. data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -2
  650. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +42 -43
  651. data/lib/starter_web/pages/public/learn/where_to_go.adoc +15 -15
  652. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +0 -1
  653. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +0 -2
  654. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +0 -1
  655. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +0 -1
  656. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -3
  657. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -3
  658. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +0 -2
  659. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -2
  660. data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +743 -0
  661. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -0
  662. data/lib/starter_web/pages/public/previewer/{bootstrap_theme.adoc → preview_bootstrap_theme.adoc} +2 -3
  663. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  664. data/lib/starter_web/utilsrv/package.json +1 -1
  665. metadata +584 -35
  666. data/assets/themes/j1/core/js/template.js.map +0 -1
  667. data/assets/themes/j1/modules/rtable/js/tablesaw-init.js +0 -18
  668. data/assets/themes/j1/modules/rtable/js/tablesaw.stackonly.js +0 -2371
  669. data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +0 -60
  670. data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +0 -19
  671. data/lib/starter_web/pages/public/previewer/_includes/documents/readme +0 -0
  672. data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +0 -119
  673. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +0 -39
  674. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +0 -47
  675. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +0 -47
  676. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +0 -71
  677. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +0 -31
  678. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +0 -39
  679. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +0 -61
  680. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +0 -55
  681. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +0 -95
  682. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +0 -95
  683. data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +0 -95
  684. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +0 -41
  685. data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +0 -857
  686. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +0 -47
  687. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +0 -47
  688. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +0 -71
  689. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +0 -30
  690. data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +0 -31
  691. data/lib/starter_web/pages/public/previewer/iframer.adoc +0 -93
  692. data/lib/starter_web/pages/public/previewer/justified_gallery.html +0 -41
  693. data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -574
  694. data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +0 -220
  695. data/lib/starter_web/pages/public/previewer/mdil_icons_preview.adoc +0 -76
  696. data/lib/starter_web/pages/public/previewer/rouge.adoc +0 -133
  697. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +0 -191
@@ -410,10 +410,10 @@ j1.adapter['navigator'] = (function (j1, window) {
410
410
  // -----------------------------------------------------------------
411
411
  // event handler|css styles
412
412
  // -----------------------------------------------------------------
413
- // continue if themer|navigator are INITIALIZED
414
413
  var dependencies_met_initialized = setInterval(function() {
415
414
  if (themerEnabled) {
416
- if (j1.adapter.navigator.getState() === 'initialized') {
415
+ // for themes, initialize if page is visible (DOM ready)
416
+ if (j1.getState() === 'finished') {
417
417
  _this.setState('processing');
418
418
 
419
419
  // set general|global theme colors
@@ -433,6 +433,7 @@ j1.adapter['navigator'] = (function (j1, window) {
433
433
  clearInterval(dependencies_met_initialized);
434
434
  }
435
435
  } else {
436
+ // no themes used
436
437
  _this.setState('processing');
437
438
 
438
439
  // set general|global theme colors
@@ -681,14 +682,20 @@ j1.adapter['navigator'] = (function (j1, window) {
681
682
 
682
683
  // Set dymanic styles
683
684
  // -----------------------------------------------------------------------
684
- // $('nav-primary').css({"background-color": "navPrimaryColor"});
685
685
 
686
686
  // navBar styles
687
687
  // -----------------------------------------------------------------------
688
- var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
688
+ // read current background colors
689
+ var bg_primary = $('#bg-primary').css('background-color');
690
+ var bg_table = $('body').css('background-color');
691
+
692
+ // set navbar background colors
689
693
  var bg_scrolled = bg_primary;
690
694
  var bg_collapsed = bg_primary;
691
695
 
696
+ // set current body background color for all tables
697
+ $('table').css('background', bg_table);
698
+
692
699
  $('head').append('<style>.mdi-bg-primary {color: ' +bg_scrolled+ ';}</style>');
693
700
 
694
701
  // Size of brand image
@@ -1,5 +1,5 @@
1
1
  ---
2
- regenerate: false
2
+ regenerate: true
3
3
  ---
4
4
 
5
5
  {% capture cache %}
@@ -21,6 +21,37 @@ regenerate: false
21
21
  # -----------------------------------------------------------------------------
22
22
  {% endcomment %}
23
23
 
24
+ {% comment %} Liquid procedures
25
+ -------------------------------------------------------------------------------- {% endcomment %}
26
+
27
+ {% comment %} Set global settings
28
+ -------------------------------------------------------------------------------- {% endcomment %}
29
+ {% assign environment = site.environment %}
30
+ {% assign asset_path = "/assets/themes/j1" %}
31
+
32
+ {% comment %} Process YML config data
33
+ ================================================================================ {% endcomment %}
34
+
35
+ {% comment %} Set config files
36
+ -------------------------------------------------------------------------------- {% endcomment %}
37
+ {% assign template_config = site.data.j1_config %}
38
+ {% assign blocks = site.data.blocks %}
39
+ {% assign modules = site.data.modules %}
40
+
41
+ {% comment %} Set config data
42
+ -------------------------------------------------------------------------------- {% endcomment %}
43
+ {% assign rtable_defaults = modules.defaults.rtable.defaults %}
44
+ {% assign rtable_settings = modules.rtable.settings %}
45
+
46
+ {% comment %} Set config options
47
+ -------------------------------------------------------------------------------- {% endcomment %}
48
+ {% assign rtable_options = rtable_defaults | merge: rtable_settings %}
49
+
50
+ {% assign production = false %}
51
+ {% if environment == 'prod' or environment == 'production' %}
52
+ {% assign production = true %}
53
+ {% endif %}
54
+
24
55
  /*
25
56
  # -----------------------------------------------------------------------------
26
57
  # ~/assets/themes/j1/adapter/js/rtable.js
@@ -53,6 +84,7 @@ j1.adapter['rtable'] = (function (j1, window) {
53
84
  ------------------------------------------------------------------------------ {% endcomment %}
54
85
  var environment = '{{environment}}';
55
86
  var moduleOptions = {};
87
+ var frontmatterOptions;
56
88
  var _this;
57
89
  var logger;
58
90
  var logText;
@@ -90,34 +122,55 @@ j1.adapter['rtable'] = (function (j1, window) {
90
122
  generated: '{{site.time}}'
91
123
  }, options);
92
124
 
93
- // -----------------------------------------------------------------------
94
- // rtable initializer
95
- // -----------------------------------------------------------------------
96
- var log_text = '\n' + 'rtable is being initialized';
97
- logger.info(log_text);
125
+ // create settings object from frontmatterOptions
126
+ frontmatterOptions = options != null ? $.extend({}, options) : {};
127
+ moduleOptions = $.extend({}, {{rtable_options | replace: 'nil', 'null' | replace: '=>', ':' }});
98
128
 
99
- // Add data attribute for tablesaw to all tables of a page
100
- // as Asciidoctor has NO option to pass 'data attributes'
101
- // See: https://stackoverflow.com/questions/50600405/how-to-add-custom-data-attributes-with-asciidoctor
102
- //
103
- $('table').each(function(){
104
- var curTable = $(this);
105
- // jadams, 2020-09-16: class 'rtable' indicate use of 'tablesaw'
106
- if ($(curTable).hasClass('rtable')) {
107
- // jadams, 2020-09-17: add BS responsive class in case of an overflow
108
- // jadams, 2020-11-21: BS responsive class disabled, bcause the
109
- // table doesn't stretch full page width
110
- //$(curTable).addClass('table-responsive')
111
- // jadams, 2020-09-16: add needed CSS class/attribute for tablesaw
112
- $(curTable).addClass('tablesaw');
113
- $(curTable).attr('data-tablesaw-mode','stack');
114
- }
115
- });
129
+ if (typeof frontmatterOptions !== 'undefined') {
130
+ moduleOptions = j1.mergeData(moduleOptions, frontmatterOptions);
131
+ }
116
132
 
117
133
  var dependencies_met_j1_finished = setInterval(function() {
118
134
  if (j1.getState() == 'finished') {
119
135
 
120
- Tablesaw.init();
136
+ // -----------------------------------------------------------------------
137
+ // rtable initializer
138
+ // -----------------------------------------------------------------------
139
+ var log_text = '\n' + 'rtable is being initialized';
140
+ // -----------------------------------------------------------------------
141
+ // rtable initializer
142
+ // -----------------------------------------------------------------------
143
+ var log_text = '\n' + 'rtable is being initialized';
144
+ logger.info(log_text);
145
+
146
+ // Add data attributes for tablesaw to all tables of a page
147
+ // as Asciidoctor has NO option to pass 'data attributes'
148
+ // See: https://stackoverflow.com/questions/50600405/how-to-add-custom-data-attributes-with-asciidoctor
149
+ //
150
+ $('table').each(function(){
151
+ var curTable = $(this);
152
+ var log_text;
153
+ // jadams, 2020-09-16: class 'rtable' indicate use of 'tablesaw'
154
+ if ($(curTable).hasClass('rtable')) {
155
+ // jadams, 2020-09-16: add needed CSS class/attribute for tablesaw
156
+ $(curTable).addClass('tablesaw');
157
+ $(curTable).attr('data-tablesaw-mode','stack');
158
+
159
+ Tablesaw.init(curTable, moduleOptions);
160
+
161
+ // set initial state for all table/colgroup elements
162
+ //
163
+ if ($(window).width() < moduleOptions.breakpoint) {
164
+ log_text = '\n' + 'hide colgroups: ' + curTable.attr('id')
165
+ curTable.find('colgroup').hide();
166
+ logger.debug(log_text);
167
+ } else {
168
+ log_text = '\n' + 'show colgroup: ' + curTable.attr('id')
169
+ curTable.find('colgroup').show();
170
+ logger.debug(log_text);
171
+ }
172
+ } // END if hasClass 'rtable'
173
+ });
121
174
 
122
175
  _this.setState('finished');
123
176
  logger.info('\n' + 'state: ' + _this.getState());
@@ -223,12 +223,12 @@ j1.adapter['themer'] = (function (j1, window) {
223
223
  // j1 adapter (displayPage)
224
224
  //
225
225
  // jadams, 2021-07-25: hide|show themes menu on cookie consent
226
- // (analyses|personalization) settings. BootSwatch is a 3rd party
226
+ // (analysis|personalization) settings. BootSwatch is a 3rd party
227
227
  // is using e.g GA. Because NO control is possible on 3rd parties,
228
228
  // for GDPR compliance, themes feature may disabled on
229
229
  // privacy settings
230
230
  //
231
- // if (!user_consent.analyses || !user_consent.personalization) {
231
+ // if (!user_consent.analysis || !user_consent.personalization) {
232
232
  // logger.warn('\n' + 'disable themes feature because of privacy settings');
233
233
  // $("#themes_menu").hide();
234
234
  // } else {
@@ -0,0 +1,492 @@
1
+ ---
2
+ regenerate: true
3
+ ---
4
+
5
+ {% capture cache %}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/themes/j1/adapter/js/translator.js
10
+ # Liquid template to create the Template Adapter for J1 Translator
11
+ #
12
+ # Product/Info:
13
+ # http://jekyll.one
14
+ #
15
+ # Copyright (C) 2021 Juergen Adams
16
+ #
17
+ # J1 Template is licensed under the MIT License.
18
+ # For details, see https://jekyll.one
19
+ # -----------------------------------------------------------------------------
20
+ # Test data:
21
+ # {{ liquid_var | debug }}
22
+ # -----------------------------------------------------------------------------
23
+ {% endcomment %}
24
+
25
+ {% comment %} Liquid var initialization
26
+ -------------------------------------------------------------------------------- {% endcomment %}
27
+
28
+ {% comment %} Set config files
29
+ -------------------------------------------------------------------------------- {% endcomment %}
30
+ {% assign environment = site.environment %}
31
+ {% assign blocks = site.data.blocks %}
32
+ {% assign modules = site.data.modules %}
33
+ {% assign template_config = site.data.j1_config %}
34
+
35
+ {% comment %} Set config data
36
+ -------------------------------------------------------------------------------- {% endcomment %}
37
+ {% assign translator_defaults = modules.defaults.translator.defaults %}
38
+ {% assign translator_settings = modules.translator.settings %}
39
+ {% assign tracking_enabled = template_config.analytics.enabled %}
40
+
41
+
42
+ {% comment %} Set config options
43
+ -------------------------------------------------------------------------------- {% endcomment %}
44
+ {% assign translator_options = translator_defaults | merge: translator_settings %}
45
+
46
+ {% assign production = false %}
47
+ {% if environment == 'prod' or environment == 'production' %}
48
+ {% assign production = true %}
49
+ {% endif %}
50
+
51
+ /*
52
+ # -----------------------------------------------------------------------------
53
+ # ~/assets/themes/j1/adapter/js/translator.js
54
+ # JS Adapter for J1 Translate
55
+ #
56
+ # Product/Info:
57
+ # http://jekyll.one
58
+ #
59
+ # Copyright (C) 2021 Juergen Adams
60
+ #
61
+ # J1 Template is licensed under MIT License.
62
+ # See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
63
+ # -----------------------------------------------------------------------------
64
+ # Adapter generated: {{site.time}}
65
+ # -----------------------------------------------------------------------------
66
+ */
67
+
68
+ // -----------------------------------------------------------------------------
69
+ // ESLint shimming
70
+ // -----------------------------------------------------------------------------
71
+ /* eslint indent: "off" */
72
+ /* eslint quotes: "off" */
73
+ // -----------------------------------------------------------------------------
74
+ // https://github.com/EdwardBalaj/Simple-DeepL-API-Integration
75
+ // https://github.com/marghoobsuleman/ms-Dropdown
76
+ // https://www.marghoobsuleman.com/image-dropdown/help
77
+ // https://www.marghoobsuleman.com/image-dropdown/advanced-help
78
+ 'use strict';
79
+
80
+ {% comment %} Main
81
+ -------------------------------------------------------------------------------- {% endcomment %}
82
+ j1.adapter['translator'] = (function (j1, window) {
83
+
84
+ var environment = '{{environment}}';
85
+ var tracking_enabled = ('{{tracking_enabled}}' === 'true') ? true: false; // Analytics/GA enabled?
86
+ var moduleOptions = {};
87
+ var user_translate = {};
88
+ var _this;
89
+ var $modal;
90
+ var cookie_names;
91
+ var user_consent;
92
+ var logger;
93
+ var url;
94
+ var baseUrl;
95
+ var hostname;
96
+ var domain;
97
+ var cookie_domain;
98
+ var secure;
99
+ var logText;
100
+ var cookie_written;
101
+ var modal_language;
102
+ var navigator_language;
103
+ var translation_language;
104
+ var ddSourceLanguage;
105
+ var head;
106
+ var script;
107
+ var languageList;
108
+
109
+ // ---------------------------------------------------------------------------
110
+ // helper functions
111
+ // ---------------------------------------------------------------------------
112
+ function setCookie(options /*cName, cValue, expDays*/) {
113
+ var defaults = {
114
+ name: '',
115
+ path: '/',
116
+ expires: 0,
117
+ domain: 'localhost'
118
+ };
119
+ var settings = $.extend(defaults, options);
120
+
121
+ var date = new Date();
122
+ date.setTime(date.getTime() + (settings.expires * 24 * 60 * 60 * 1000));
123
+ const expires = "expires=" + date.toUTCString();
124
+ // document.cookie = cName + "=" + cValue + "; " + expires + "; path=/";
125
+ // document.cookie = settings.name + "=" + settings.data + "; " + expires + "; path=/";
126
+ document.cookie = settings.name + "=" + settings.data + "; path=/";
127
+ };
128
+
129
+ // ---------------------------------------------------------------------------
130
+ // Main object
131
+ // ---------------------------------------------------------------------------
132
+ return {
133
+
134
+ // -------------------------------------------------------------------------
135
+ // Initializer
136
+ // -------------------------------------------------------------------------
137
+ init: function (options) {
138
+
139
+ // -----------------------------------------------------------------------
140
+ // globals
141
+ // -----------------------------------------------------------------------
142
+ _this = j1.adapter.translator;
143
+ logger = log4javascript.getLogger('j1.adapter.translator');
144
+ url = new liteURL(window.location.href);
145
+ baseUrl = url.origin;
146
+ hostname = url.hostname;
147
+ domain = hostname.substring(hostname.lastIndexOf('.', hostname.lastIndexOf('.') - 1) + 1);
148
+ secure = (url.protocol.includes('https')) ? true : false;
149
+ modal_language = "{{site.language}}";
150
+ navigator_language = navigator.language || navigator.userLanguage; // userLanguage for MS IE compatibility
151
+ translation_language = navigator_language.split('-')[0];
152
+ cookie_names = j1.getCookieNames();
153
+ head = document.getElementsByTagName('head')[0];
154
+ script = document.createElement('script');
155
+ script.id = 'google-translate';
156
+ script.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
157
+
158
+ user_translate = {
159
+ 'translatorName': 'google',
160
+ 'translationEnabled': false,
161
+ 'analysis': true,
162
+ 'personalization': true,
163
+ 'translateAllPages': true,
164
+ 'useLanguageFromBrowser': true,
165
+ 'translationLanguage': translation_language,
166
+ };
167
+
168
+ if (j1.existsCookie(cookie_names.user_translate)) {
169
+ user_translate = j1.readCookie(cookie_names.user_translate);
170
+ } else {
171
+ logger.debug('\n' + 'write to cookie : ' + cookie_names.user_translate);
172
+ cookie_written = j1.writeCookie({
173
+ name: cookie_names.user_translate,
174
+ data: user_translate,
175
+ samesite: 'Strict',
176
+ expires: 365
177
+ });
178
+ }
179
+
180
+ // set domain used by cookies
181
+ if(domain !== 'localhost') {
182
+ cookie_domain = '.' + hostname;
183
+ } else {
184
+ cookie_domain = hostname;
185
+ }
186
+
187
+ // initialize state flag
188
+ _this.state = 'pending';
189
+ // _this.settings.languageList = '/assets/data/ms_select.json';
190
+
191
+ // -----------------------------------------------------------------------
192
+ // Default module settings
193
+ // -----------------------------------------------------------------------
194
+ var settings = $.extend({
195
+ module_name: 'j1.adapter.translator',
196
+ generated: '{{site.time}}'
197
+ }, options);
198
+
199
+ {% comment %} Load module config from yml data
200
+ -------------------------------------------------------------------------- {% endcomment %}
201
+ // Load module DEFAULTS|CONFIG
202
+ /* eslint-disable */
203
+ moduleOptions = $.extend({}, {{translator_options | replace: '=>', ':' | replace: 'nil', '""'}});
204
+ /* eslint-enable */
205
+
206
+ if (typeof settings !== 'undefined') {
207
+ moduleOptions = j1.mergeData(moduleOptions, settings);
208
+ }
209
+
210
+ // -----------------------------------------------------------------------
211
+ // initializer
212
+ // -----------------------------------------------------------------------
213
+ var dependencies_met_page_ready = setInterval (function (options) {
214
+ user_consent = j1.readCookie(cookie_names.user_consent);
215
+
216
+ if ( j1.getState() === 'finished' ) {
217
+ _this.setState('started');
218
+ logger.info('\n' + 'state: ' + _this.getState());
219
+ logger.info('\n' + 'module is being initialized');
220
+
221
+ if ($('google_translate_element')) {
222
+ $('google_translate_element').hide();
223
+ }
224
+
225
+ // show|hide translate button if enabled
226
+ if (moduleOptions.hideTranslatorIcon) {
227
+ if (!user_consent.analysis || !user_consent.personalization) {
228
+ // disable google translate button if visible
229
+ if ($('#quickLinksTranslateButton').css('display') === 'block') {
230
+ $('#quickLinksTranslateButton').css('display', 'none');
231
+ }
232
+ }
233
+ if (user_consent.analysis && user_consent.personalization) {
234
+ // enable google translate button if not visible
235
+ if ($('#quickLinksTranslateButton').css('display') === 'none') {
236
+ $('#quickLinksTranslateButton').css('display', 'block');
237
+ }
238
+ }
239
+ }
240
+
241
+ // update user_translate cookie
242
+ user_translate.analysis = user_consent.analysis;
243
+ user_translate.personalization = user_consent.personalization;
244
+ cookie_written = j1.writeCookie({
245
+ name: cookie_names.user_translate,
246
+ data: user_translate,
247
+ samesite: 'Strict',
248
+ secure: secure
249
+ });
250
+
251
+ j1.translator = new Translator({
252
+ contentURL: moduleOptions.contentURL, // dialog content (modals) for all supported languages
253
+ cookieName: moduleOptions.cookieName, // the name of the User State Cookie (primary data)
254
+ cookieConsentName: moduleOptions.cookieConsentName, // the name of the Cookie Consent Cookie (secondary data)
255
+ dialogContainerID: moduleOptions.dialogContainerID, // dest container, the dialog modal is loaded (dynamically)
256
+ dialogLanguage: moduleOptions.dialogLanguage, // language for the dialog (modal)
257
+ translationLanguage: translation_language, // language for translation
258
+ translationEnabled: moduleOptions.translationEnabled, // run translation enabled|disabled
259
+ translatorName: moduleOptions.translatorName, // translator for translation
260
+ translationLanguage: moduleOptions.translationLanguage, // language for translation
261
+ xhrDataElement: moduleOptions.xhrDataElement, // container for all language-specific dialogs (modals)
262
+ postSelectionCallback: function () {j1.adapter.translator.cb()}
263
+ });
264
+
265
+ if (user_consent.analysis && user_consent.personalization && user_translate.translationEnabled) {
266
+ if (moduleOptions.translatorName === 'google') {
267
+ head.appendChild(script);
268
+ $('google_translate_element').hide();
269
+ }
270
+ } else {
271
+ if (moduleOptions.translatorName === 'google') {
272
+ j1.removeCookie({name: 'googtrans'});
273
+ // j1.removeCookie({name: 'CONSENT'});
274
+ // j1.removeCookie({name: 'NID'});
275
+ // j1.removeCookie({name: 'OTZ'});
276
+ }
277
+ }
278
+
279
+ _this.setState('finished');
280
+ logger.info('\n' + 'state: ' + _this.getState());
281
+ logger.debug('\n' + 'module initialized successfully');
282
+ clearInterval(dependencies_met_page_ready);
283
+ }
284
+ });
285
+ }, // END init
286
+
287
+ // -------------------------------------------------------------------------
288
+ // messageHandler: MessageHandler for J1 google_translate module
289
+ // Manage messages send from other J1 modules
290
+ // -------------------------------------------------------------------------
291
+ messageHandler: function (sender, message) {
292
+ var json_message = JSON.stringify(message, undefined, 2);
293
+
294
+ logText = '\n' + 'received message from ' + sender + ': ' + json_message;
295
+ logger.debug(logText);
296
+
297
+ // -----------------------------------------------------------------------
298
+ // Process commands|actions
299
+ // -----------------------------------------------------------------------
300
+ if (message.type === 'command' && message.action === 'module_initialized') {
301
+ //
302
+ // Place handling of command|action here
303
+ //
304
+ logger.info('\n' + message.text);
305
+ }
306
+
307
+ //
308
+ // Place handling of other command|action here
309
+ //
310
+
311
+ return true;
312
+ }, // END messageHandler
313
+
314
+ // -------------------------------------------------------------------------
315
+ // setState()
316
+ // Sets the current (processing) state of the module
317
+ // -------------------------------------------------------------------------
318
+ setState: function (stat) {
319
+ _this.state = stat;
320
+ }, // END setState
321
+
322
+ // -------------------------------------------------------------------------
323
+ // getState()
324
+ // Returns the current (processing) state of the module
325
+ // -------------------------------------------------------------------------
326
+ getState: function () {
327
+ return _this.state;
328
+ }, // END getState
329
+
330
+ // -------------------------------------------------------------------------
331
+ // cb()
332
+ // Called by the translator CORE module after the user has
333
+ // made his selection (callback)
334
+ // -------------------------------------------------------------------------
335
+ cb: function () {
336
+ var cookie_names = j1.getCookieNames();
337
+ var user_state = j1.readCookie(cookie_names.user_state);
338
+ var user_consent = j1.readCookie(cookie_names.user_consent);
339
+ var user_translate = j1.readCookie(cookie_names.user_translate);
340
+ var head;
341
+ var script;
342
+ var srcLang;
343
+ var destLang;
344
+ var transCode;
345
+ var cookie_written;
346
+
347
+ logger.info('\n' + 'entered post selection callback from google_translate');
348
+ logger.debug('\n' + 'current values from cookie consent: ' + JSON.stringify(user_consent));
349
+ logger.debug('\n' + 'current values from user state: ' + JSON.stringify(user_state));
350
+
351
+ // update cookie consent settings
352
+ user_consent.analysis = user_translate.analysis;
353
+ user_consent.personalization = user_translate.personalization;
354
+ cookie_written = j1.writeCookie({
355
+ name: cookie_names.user_consent,
356
+ data: user_consent,
357
+ samesite: 'Strict',
358
+ secure: secure,
359
+ expires: 0
360
+ });
361
+
362
+ if (user_consent.analysis && user_consent.personalization) {
363
+
364
+ // detect changes on the last element on your page, cause then
365
+ // you know all elements above is translated.
366
+ // $('#j1_footer').bind('DOMSubtreeModified', function() {
367
+ // var val = $(this);
368
+ // var strlang = "" + val[0].innerText + "";
369
+ // console.log(strlang); // print your selected language in console
370
+ // });
371
+
372
+ // $('#google_translate_element').bind('DOMSubtreeModified', function() {
373
+ // var val = $(this);
374
+ // var strlang = "" + val[0].innerText + "";
375
+ // console.log(strlang); // print your selected language in console
376
+ // });
377
+
378
+ // remove class dropcap
379
+ // $('.dropcap').children('span').removeClass('j1-dropcap');
380
+
381
+ // remove span dropcap !!!
382
+ // $('.dropcap').children('span').remove();
383
+
384
+ // $('.dropcap').children('span').removeClass('j1-dropcap');
385
+ // $('.paragraph.dropcap').parent().find('p').removeClass('j1-dropcap');
386
+
387
+ head = document.getElementsByTagName('head')[0];
388
+ script = document.createElement('script');
389
+ script.id = 'google-translate';
390
+ script.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
391
+
392
+ if (user_translate.translationEnabled && moduleOptions.translatorName === 'google') {
393
+ head.appendChild(script);
394
+
395
+ if ($('google_translate_element')) {
396
+ $('google_translate_element').hide();
397
+ }
398
+
399
+ srcLang = "{{site.language}}";
400
+ destLang = translation_language;
401
+ transCode = '/' + srcLang + '/' + destLang;
402
+
403
+ // set language
404
+ setCookie({
405
+ name: 'googtrans',
406
+ data: transCode
407
+ });
408
+
409
+ // enable google transalate button if not visible
410
+ if ($('#quickLinksTranslateButton').css('display') === 'none') {
411
+ $('#quickLinksTranslateButton').css('display', 'block');
412
+ }
413
+
414
+ } else {
415
+
416
+ user_translate.translationEnabled = false;
417
+ cookie_written = j1.writeCookie({
418
+ name: cookie_names.user_translate,
419
+ data: user_translate,
420
+ samesite: 'Strict',
421
+ secure: secure
422
+ });
423
+
424
+ var el = document.getElementById(script.id);
425
+
426
+ if (el) { el.remove(); }
427
+
428
+ el = document.getElementById('google_translate_element');
429
+ if (el) { el.remove(); }
430
+
431
+ j1.removeCookie({name: 'googtrans'});
432
+ // j1.removeCookie({name: '1P_JAR'});
433
+ // j1.removeCookie({name: 'CONSENT'});
434
+ // j1.removeCookie({name: 'NID'});
435
+ }
436
+
437
+ }
438
+
439
+ if (!user_translate.analysis || !user_translate.personalization) {
440
+ head = document.getElementsByTagName('head')[0];
441
+ script = document.createElement('script');
442
+ script.id = 'google-translate';
443
+ // script.src = '//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
444
+
445
+ var el = document.getElementById(script.id);
446
+
447
+ // update cookie consent settings
448
+ user_consent.analysis = user_translate.analysis;
449
+ user_consent.personalization = user_translate.personalization;
450
+ cookie_written = j1.writeCookie({
451
+ name: cookie_names.user_consent,
452
+ data: user_consent,
453
+ samesite: 'Strict',
454
+ secure: secure,
455
+ expires: 0
456
+ });
457
+
458
+ user_translate.translationEnabled = false;
459
+ cookie_written = j1.writeCookie({
460
+ name: cookie_names.user_translate,
461
+ data: user_consent,
462
+ samesite: 'Strict',
463
+ secure: secure,
464
+ expires: 0
465
+ });
466
+
467
+ if (el) { el.remove(); }
468
+
469
+ el = document.getElementById('google_translate_element');
470
+ if (el) { el.remove(); }
471
+
472
+ j1.removeCookie({name: 'googtrans'});
473
+ }
474
+
475
+ if (moduleOptions.reloadPageOnChange) {
476
+ // reload current page (skip cache)
477
+ location.reload(true);
478
+ }
479
+
480
+ // disable google translate button if visible
481
+ if ($('#quickLinksTranslateButton').css('display') === 'block') {
482
+ $('#quickLinksTranslateButton').css('display', 'none');
483
+ }
484
+
485
+ } // END cbCookie
486
+
487
+ }; // END return
488
+ })(j1, window);
489
+
490
+ {% endcapture %}
491
+ {{ cache | strip_empty_lines }}
492
+ {% assign cache = nil %}