j1-template 2021.2.2 → 2021.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/layout_metadata_generator.html +6 -1
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +7 -0
- data/_includes/themes/j1/modules/connectors/translators/google-translator.html +11 -23
- data/_layouts/default.html +31 -26
- data/assets/data/cookieconsent.html +43 -33
- data/assets/data/iso-639-language-codes-flags.json +224 -0
- data/assets/data/iso-639-language-codes.json +111 -0
- data/assets/data/quicklinks.html +25 -4
- data/assets/data/translator.html +295 -0
- data/assets/themes/j1/adapter/js/cookieConsent.js +41 -34
- data/assets/themes/j1/adapter/js/fam.js +1 -1
- data/assets/themes/j1/adapter/js/j1.js +205 -160
- data/assets/themes/j1/adapter/js/themer.js +2 -2
- data/assets/themes/j1/adapter/js/translator.js +478 -0
- data/assets/themes/j1/core/country-flags/1x1/ad.svg +148 -0
- data/assets/themes/j1/core/country-flags/1x1/ae.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/af.svg +81 -0
- data/assets/themes/j1/core/country-flags/1x1/ag.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/ai.svg +763 -0
- data/assets/themes/j1/core/country-flags/1x1/al.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/am.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/ao.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/aq.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/ar.svg +31 -0
- data/assets/themes/j1/core/country-flags/1x1/as.svg +33 -0
- data/assets/themes/j1/core/country-flags/1x1/at.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/au.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/aw.svg +186 -0
- data/assets/themes/j1/core/country-flags/1x1/ax.svg +18 -0
- data/assets/themes/j1/core/country-flags/1x1/az.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/ba.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/bb.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/bd.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/be.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/bf.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/bg.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/bh.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/bi.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/bj.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/bl.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/bm.svg +98 -0
- data/assets/themes/j1/core/country-flags/1x1/bn.svg +36 -0
- data/assets/themes/j1/core/country-flags/1x1/bo.svg +678 -0
- data/assets/themes/j1/core/country-flags/1x1/bq.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/br.svg +45 -0
- data/assets/themes/j1/core/country-flags/1x1/bs.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/bt.svg +89 -0
- data/assets/themes/j1/core/country-flags/1x1/bv.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/bw.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/by.svg +22 -0
- data/assets/themes/j1/core/country-flags/1x1/bz.svg +145 -0
- data/assets/themes/j1/core/country-flags/1x1/ca.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/cc.svg +19 -0
- data/assets/themes/j1/core/country-flags/1x1/cd.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/cf.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/cg.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/ch.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/ci.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/ck.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/cl.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/cm.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/cn.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/co.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/cr.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/cu.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/cv.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/cw.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/cx.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/cy.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/cz.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/de.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/dj.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/dk.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/dm.svg +152 -0
- data/assets/themes/j1/core/country-flags/1x1/do.svg +6745 -0
- data/assets/themes/j1/core/country-flags/1x1/dz.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/ec.svg +138 -0
- data/assets/themes/j1/core/country-flags/1x1/ee.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/eg.svg +38 -0
- data/assets/themes/j1/core/country-flags/1x1/eh.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/er.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/es-ca.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/es-ga.svg +189 -0
- data/assets/themes/j1/core/country-flags/1x1/es.svg +547 -0
- data/assets/themes/j1/core/country-flags/1x1/et.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/eu.svg +28 -0
- data/assets/themes/j1/core/country-flags/1x1/fi.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/fj.svg +125 -0
- data/assets/themes/j1/core/country-flags/1x1/fk.svg +93 -0
- data/assets/themes/j1/core/country-flags/1x1/fm.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/fo.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/fr.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/ga.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/gb-eng.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/gb-nir.svg +131 -0
- data/assets/themes/j1/core/country-flags/1x1/gb-sct.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/gb-wls.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/gb.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/gd.svg +27 -0
- data/assets/themes/j1/core/country-flags/1x1/ge.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/gf.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/gg.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/gh.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/gi.svg +32 -0
- data/assets/themes/j1/core/country-flags/1x1/gl.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/gm.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/gn.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/gp.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/gq.svg +23 -0
- data/assets/themes/j1/core/country-flags/1x1/gr.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/gs.svg +206 -0
- data/assets/themes/j1/core/country-flags/1x1/gt.svg +204 -0
- data/assets/themes/j1/core/country-flags/1x1/gu.svg +39 -0
- data/assets/themes/j1/core/country-flags/1x1/gw.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/gy.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/hk.svg +30 -0
- data/assets/themes/j1/core/country-flags/1x1/hm.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/hn.svg +18 -0
- data/assets/themes/j1/core/country-flags/1x1/hr.svg +56 -0
- data/assets/themes/j1/core/country-flags/1x1/ht.svg +116 -0
- data/assets/themes/j1/core/country-flags/1x1/hu.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/id.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ie.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/il.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/im.svg +36 -0
- data/assets/themes/j1/core/country-flags/1x1/in.svg +25 -0
- data/assets/themes/j1/core/country-flags/1x1/io.svg +140 -0
- data/assets/themes/j1/core/country-flags/1x1/iq.svg +10 -0
- data/assets/themes/j1/core/country-flags/1x1/ir.svg +219 -0
- data/assets/themes/j1/core/country-flags/1x1/is.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/it.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/je.svg +29 -0
- data/assets/themes/j1/core/country-flags/1x1/jm.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/jo.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/jp.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/ke.svg +23 -0
- data/assets/themes/j1/core/country-flags/1x1/kg.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/kh.svg +61 -0
- data/assets/themes/j1/core/country-flags/1x1/ki.svg +36 -0
- data/assets/themes/j1/core/country-flags/1x1/km.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/kn.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/kp.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/kr.svg +24 -0
- data/assets/themes/j1/core/country-flags/1x1/kw.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/ky.svg +70 -0
- data/assets/themes/j1/core/country-flags/1x1/kz.svg +23 -0
- data/assets/themes/j1/core/country-flags/1x1/la.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/lb.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/lc.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/li.svg +43 -0
- data/assets/themes/j1/core/country-flags/1x1/lk.svg +22 -0
- data/assets/themes/j1/core/country-flags/1x1/lr.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/ls.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/lt.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/lu.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/lv.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ly.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/ma.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/mc.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/md.svg +71 -0
- data/assets/themes/j1/core/country-flags/1x1/me.svg +118 -0
- data/assets/themes/j1/core/country-flags/1x1/mf.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/mg.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/mh.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/mk.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/ml.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/mm.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/mn.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/mo.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/mp.svg +86 -0
- data/assets/themes/j1/core/country-flags/1x1/mq.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/mr.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ms.svg +70 -0
- data/assets/themes/j1/core/country-flags/1x1/mt.svg +50 -0
- data/assets/themes/j1/core/country-flags/1x1/mu.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/mv.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/mw.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/mx.svg +378 -0
- data/assets/themes/j1/core/country-flags/1x1/my.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/mz.svg +21 -0
- data/assets/themes/j1/core/country-flags/1x1/na.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/nc.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/ne.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/nf.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/ng.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ni.svg +129 -0
- data/assets/themes/j1/core/country-flags/1x1/nl.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/no.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/np.svg +19 -0
- data/assets/themes/j1/core/country-flags/1x1/nr.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/nu.svg +26 -0
- data/assets/themes/j1/core/country-flags/1x1/nz.svg +41 -0
- data/assets/themes/j1/core/country-flags/1x1/om.svg +115 -0
- data/assets/themes/j1/core/country-flags/1x1/pa.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/pe.svg +244 -0
- data/assets/themes/j1/core/country-flags/1x1/pf.svg +18 -0
- data/assets/themes/j1/core/country-flags/1x1/pg.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/ph.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/pk.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/pl.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/pm.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/pn.svg +67 -0
- data/assets/themes/j1/core/country-flags/1x1/pr.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/ps.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/pt.svg +57 -0
- data/assets/themes/j1/core/country-flags/1x1/pw.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/py.svg +156 -0
- data/assets/themes/j1/core/country-flags/1x1/qa.svg +4 -0
- data/assets/themes/j1/core/country-flags/1x1/re.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/ro.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/rs.svg +296 -0
- data/assets/themes/j1/core/country-flags/1x1/ru.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/rw.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/sa.svg +26 -0
- data/assets/themes/j1/core/country-flags/1x1/sb.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/sc.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/sd.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/se.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/sg.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/sh.svg +81 -0
- data/assets/themes/j1/core/country-flags/1x1/si.svg +18 -0
- data/assets/themes/j1/core/country-flags/1x1/sj.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/sk.svg +9 -0
- data/assets/themes/j1/core/country-flags/1x1/sl.svg +12 -0
- data/assets/themes/j1/core/country-flags/1x1/sm.svg +89 -0
- data/assets/themes/j1/core/country-flags/1x1/sn.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/so.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/sr.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ss.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/st.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/sv.svg +596 -0
- data/assets/themes/j1/core/country-flags/1x1/sx.svg +56 -0
- data/assets/themes/j1/core/country-flags/1x1/sy.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/sz.svg +45 -0
- data/assets/themes/j1/core/country-flags/1x1/tc.svg +74 -0
- data/assets/themes/j1/core/country-flags/1x1/td.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/tf.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/tg.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/th.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/tj.svg +26 -0
- data/assets/themes/j1/core/country-flags/1x1/tk.svg +5 -0
- data/assets/themes/j1/core/country-flags/1x1/tl.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/tm.svg +203 -0
- data/assets/themes/j1/core/country-flags/1x1/tn.svg +13 -0
- data/assets/themes/j1/core/country-flags/1x1/to.svg +10 -0
- data/assets/themes/j1/core/country-flags/1x1/tr.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/tt.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/tv.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/tw.svg +14 -0
- data/assets/themes/j1/core/country-flags/1x1/tz.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/ua.svg +6 -0
- data/assets/themes/j1/core/country-flags/1x1/ug.svg +30 -0
- data/assets/themes/j1/core/country-flags/1x1/um.svg +15 -0
- data/assets/themes/j1/core/country-flags/1x1/un.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/us.svg +10 -0
- data/assets/themes/j1/core/country-flags/1x1/uy.svg +28 -0
- data/assets/themes/j1/core/country-flags/1x1/uz.svg +30 -0
- data/assets/themes/j1/core/country-flags/1x1/va.svg +479 -0
- data/assets/themes/j1/core/country-flags/1x1/vc.svg +8 -0
- data/assets/themes/j1/core/country-flags/1x1/ve.svg +26 -0
- data/assets/themes/j1/core/country-flags/1x1/vg.svg +128 -0
- data/assets/themes/j1/core/country-flags/1x1/vi.svg +28 -0
- data/assets/themes/j1/core/country-flags/1x1/vn.svg +11 -0
- data/assets/themes/j1/core/country-flags/1x1/vu.svg +18 -0
- data/assets/themes/j1/core/country-flags/1x1/wf.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/ws.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/xk.svg +16 -0
- data/assets/themes/j1/core/country-flags/1x1/ye.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/yt.svg +7 -0
- data/assets/themes/j1/core/country-flags/1x1/za.svg +17 -0
- data/assets/themes/j1/core/country-flags/1x1/zm.svg +27 -0
- data/assets/themes/j1/core/country-flags/1x1/zw.svg +21 -0
- data/assets/themes/j1/core/country-flags/4x3/ad.svg +150 -0
- data/assets/themes/j1/core/country-flags/4x3/ae.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/af.svg +81 -0
- data/assets/themes/j1/core/country-flags/4x3/ag.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/ai.svg +763 -0
- data/assets/themes/j1/core/country-flags/4x3/al.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/am.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/ao.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/aq.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/ar.svg +31 -0
- data/assets/themes/j1/core/country-flags/4x3/as.svg +33 -0
- data/assets/themes/j1/core/country-flags/4x3/at.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/au.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/aw.svg +186 -0
- data/assets/themes/j1/core/country-flags/4x3/ax.svg +18 -0
- data/assets/themes/j1/core/country-flags/4x3/az.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/ba.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/bb.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/bd.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/be.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/bf.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/bg.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/bh.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/bi.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/bj.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/bl.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/bm.svg +98 -0
- data/assets/themes/j1/core/country-flags/4x3/bn.svg +36 -0
- data/assets/themes/j1/core/country-flags/4x3/bo.svg +676 -0
- data/assets/themes/j1/core/country-flags/4x3/bq.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/br.svg +45 -0
- data/assets/themes/j1/core/country-flags/4x3/bs.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/bt.svg +89 -0
- data/assets/themes/j1/core/country-flags/4x3/bv.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/bw.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/by.svg +20 -0
- data/assets/themes/j1/core/country-flags/4x3/bz.svg +145 -0
- data/assets/themes/j1/core/country-flags/4x3/ca.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/cc.svg +19 -0
- data/assets/themes/j1/core/country-flags/4x3/cd.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/cf.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/cg.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/ch.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/ci.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/ck.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/cl.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/cm.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/cn.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/co.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/cr.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/cu.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/cv.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/cw.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/cx.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/cy.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/cz.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/de.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/dj.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/dk.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/dm.svg +152 -0
- data/assets/themes/j1/core/country-flags/4x3/do.svg +6745 -0
- data/assets/themes/j1/core/country-flags/4x3/dz.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/ec.svg +138 -0
- data/assets/themes/j1/core/country-flags/4x3/ee.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/eg.svg +38 -0
- data/assets/themes/j1/core/country-flags/4x3/eh.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/er.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/es-ca.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/es-ga.svg +189 -0
- data/assets/themes/j1/core/country-flags/4x3/es.svg +544 -0
- data/assets/themes/j1/core/country-flags/4x3/et.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/eu.svg +28 -0
- data/assets/themes/j1/core/country-flags/4x3/fi.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/fj.svg +122 -0
- data/assets/themes/j1/core/country-flags/4x3/fk.svg +90 -0
- data/assets/themes/j1/core/country-flags/4x3/fm.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/fo.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/fr.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/ga.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/gb-eng.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/gb-nir.svg +132 -0
- data/assets/themes/j1/core/country-flags/4x3/gb-sct.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/gb-wls.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/gb.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/gd.svg +27 -0
- data/assets/themes/j1/core/country-flags/4x3/ge.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/gf.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/gg.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/gh.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/gi.svg +32 -0
- data/assets/themes/j1/core/country-flags/4x3/gl.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/gm.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/gn.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/gp.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/gq.svg +23 -0
- data/assets/themes/j1/core/country-flags/4x3/gr.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/gs.svg +201 -0
- data/assets/themes/j1/core/country-flags/4x3/gt.svg +204 -0
- data/assets/themes/j1/core/country-flags/4x3/gu.svg +39 -0
- data/assets/themes/j1/core/country-flags/4x3/gw.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/gy.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/hk.svg +30 -0
- data/assets/themes/j1/core/country-flags/4x3/hm.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/hn.svg +18 -0
- data/assets/themes/j1/core/country-flags/4x3/hr.svg +58 -0
- data/assets/themes/j1/core/country-flags/4x3/ht.svg +116 -0
- data/assets/themes/j1/core/country-flags/4x3/hu.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/id.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ie.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/il.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/im.svg +36 -0
- data/assets/themes/j1/core/country-flags/4x3/in.svg +25 -0
- data/assets/themes/j1/core/country-flags/4x3/io.svg +138 -0
- data/assets/themes/j1/core/country-flags/4x3/iq.svg +10 -0
- data/assets/themes/j1/core/country-flags/4x3/ir.svg +219 -0
- data/assets/themes/j1/core/country-flags/4x3/is.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/it.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/je.svg +29 -0
- data/assets/themes/j1/core/country-flags/4x3/jm.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/jo.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/jp.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/ke.svg +23 -0
- data/assets/themes/j1/core/country-flags/4x3/kg.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/kh.svg +61 -0
- data/assets/themes/j1/core/country-flags/4x3/ki.svg +36 -0
- data/assets/themes/j1/core/country-flags/4x3/km.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/kn.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/kp.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/kr.svg +24 -0
- data/assets/themes/j1/core/country-flags/4x3/kw.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/ky.svg +63 -0
- data/assets/themes/j1/core/country-flags/4x3/kz.svg +23 -0
- data/assets/themes/j1/core/country-flags/4x3/la.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/lb.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/lc.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/li.svg +43 -0
- data/assets/themes/j1/core/country-flags/4x3/lk.svg +22 -0
- data/assets/themes/j1/core/country-flags/4x3/lr.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/ls.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/lt.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/lu.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/lv.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ly.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/ma.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/mc.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/md.svg +70 -0
- data/assets/themes/j1/core/country-flags/4x3/me.svg +116 -0
- data/assets/themes/j1/core/country-flags/4x3/mf.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/mg.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/mh.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/mk.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/ml.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/mm.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/mn.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/mo.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/mp.svg +86 -0
- data/assets/themes/j1/core/country-flags/4x3/mq.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/mr.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ms.svg +78 -0
- data/assets/themes/j1/core/country-flags/4x3/mt.svg +49 -0
- data/assets/themes/j1/core/country-flags/4x3/mu.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/mv.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/mw.svg +10 -0
- data/assets/themes/j1/core/country-flags/4x3/mx.svg +382 -0
- data/assets/themes/j1/core/country-flags/4x3/my.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/mz.svg +21 -0
- data/assets/themes/j1/core/country-flags/4x3/na.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/nc.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/ne.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/nf.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/ng.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ni.svg +129 -0
- data/assets/themes/j1/core/country-flags/4x3/nl.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/no.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/np.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/nr.svg +12 -0
- data/assets/themes/j1/core/country-flags/4x3/nu.svg +26 -0
- data/assets/themes/j1/core/country-flags/4x3/nz.svg +41 -0
- data/assets/themes/j1/core/country-flags/4x3/om.svg +115 -0
- data/assets/themes/j1/core/country-flags/4x3/pa.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/pe.svg +244 -0
- data/assets/themes/j1/core/country-flags/4x3/pf.svg +19 -0
- data/assets/themes/j1/core/country-flags/4x3/pg.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/ph.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/pk.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/pl.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/pm.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/pn.svg +62 -0
- data/assets/themes/j1/core/country-flags/4x3/pr.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/ps.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/pt.svg +57 -0
- data/assets/themes/j1/core/country-flags/4x3/pw.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/py.svg +157 -0
- data/assets/themes/j1/core/country-flags/4x3/qa.svg +4 -0
- data/assets/themes/j1/core/country-flags/4x3/re.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/ro.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/rs.svg +292 -0
- data/assets/themes/j1/core/country-flags/4x3/ru.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/rw.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/sa.svg +26 -0
- data/assets/themes/j1/core/country-flags/4x3/sb.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/sc.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/sd.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/se.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/sg.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/sh.svg +74 -0
- data/assets/themes/j1/core/country-flags/4x3/si.svg +18 -0
- data/assets/themes/j1/core/country-flags/4x3/sj.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/sk.svg +9 -0
- data/assets/themes/j1/core/country-flags/4x3/sl.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/sm.svg +91 -0
- data/assets/themes/j1/core/country-flags/4x3/sn.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/so.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/sr.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ss.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/st.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/sv.svg +594 -0
- data/assets/themes/j1/core/country-flags/4x3/sx.svg +56 -0
- data/assets/themes/j1/core/country-flags/4x3/sy.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/sz.svg +45 -0
- data/assets/themes/j1/core/country-flags/4x3/tc.svg +67 -0
- data/assets/themes/j1/core/country-flags/4x3/td.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/tf.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/tg.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/th.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/tj.svg +22 -0
- data/assets/themes/j1/core/country-flags/4x3/tk.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/tl.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/tm.svg +206 -0
- data/assets/themes/j1/core/country-flags/4x3/tn.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/to.svg +10 -0
- data/assets/themes/j1/core/country-flags/4x3/tr.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/tt.svg +5 -0
- data/assets/themes/j1/core/country-flags/4x3/tv.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/tw.svg +14 -0
- data/assets/themes/j1/core/country-flags/4x3/tz.svg +13 -0
- data/assets/themes/j1/core/country-flags/4x3/ua.svg +6 -0
- data/assets/themes/j1/core/country-flags/4x3/ug.svg +30 -0
- data/assets/themes/j1/core/country-flags/4x3/um.svg +15 -0
- data/assets/themes/j1/core/country-flags/4x3/un.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/us.svg +10 -0
- data/assets/themes/j1/core/country-flags/4x3/uy.svg +28 -0
- data/assets/themes/j1/core/country-flags/4x3/uz.svg +30 -0
- data/assets/themes/j1/core/country-flags/4x3/va.svg +479 -0
- data/assets/themes/j1/core/country-flags/4x3/vc.svg +8 -0
- data/assets/themes/j1/core/country-flags/4x3/ve.svg +26 -0
- data/assets/themes/j1/core/country-flags/4x3/vg.svg +127 -0
- data/assets/themes/j1/core/country-flags/4x3/vi.svg +28 -0
- data/assets/themes/j1/core/country-flags/4x3/vn.svg +11 -0
- data/assets/themes/j1/core/country-flags/4x3/vu.svg +18 -0
- data/assets/themes/j1/core/country-flags/4x3/wf.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/ws.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/xk.svg +16 -0
- data/assets/themes/j1/core/country-flags/4x3/ye.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/yt.svg +7 -0
- data/assets/themes/j1/core/country-flags/4x3/za.svg +17 -0
- data/assets/themes/j1/core/country-flags/4x3/zm.svg +27 -0
- data/assets/themes/j1/core/country-flags/4x3/zw.svg +21 -0
- data/assets/themes/j1/core/country-flags/css/theme/uno.css +73 -0
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +27 -12
- data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +27 -12
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +62 -26
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +1400 -0
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/js/template.js +8502 -10
- data/assets/themes/j1/core/js/template.min.js +16 -7
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +49 -42
- data/assets/themes/j1/modules/j1Deepl/js/j1deepl.js +388 -0
- data/assets/themes/j1/modules/j1Deepl/js/j1deepl.min.js +18 -0
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +257 -240
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +1 -2
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +16 -8
- data/assets/themes/j1/modules/msDropdown/css/flags.css +1033 -0
- data/assets/themes/j1/modules/msDropdown/css/flags.min.css +23 -0
- data/assets/themes/j1/modules/msDropdown/css/msDropdown.css +278 -0
- data/assets/themes/j1/modules/msDropdown/css/msDropdown.min.css +34 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/1273404841_tick_16.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Amex-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Cash-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Discover-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Mastercard-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Paypal-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/Visa-56.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/blank.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/browser-chrome.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/browser-firefox.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/browser-msie.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/browser-opera.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/browser-safari.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/button-large.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/demoaction.jpg +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/enabled.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/flagssprite_small.png +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/giftlelo_dot_com.jpg +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon-search.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_calendar.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_cart.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_cd.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_email.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_faq.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_games.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_lockopen.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_music.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_phone.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_sales.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_secure.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/icon_video.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/jquery-msdropdown.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/msDropDown.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/preview.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/sprite.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/sprite.jpg +0 -0
- data/assets/themes/j1/modules/msDropdown/images/icons/tick.gif +0 -0
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.js +2664 -0
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js +33 -0
- data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +1 -0
- data/assets/themes/j1/modules/translator/css/translator.css +33 -0
- data/assets/themes/j1/modules/translator/css/translator.min.css +15 -0
- data/assets/themes/j1/modules/translator/js/translator.js +586 -0
- data/assets/themes/j1/modules/translator/js/translator.min.js +15 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/j1_config.yml +6 -29
- data/lib/starter_web/_data/layouts/collection.yml +1 -12
- data/lib/starter_web/_data/layouts/home.yml +0 -12
- data/lib/starter_web/_data/layouts/post.yml +0 -11
- data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +100 -90
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -0
- data/lib/starter_web/_data/modules/defaults/translator.yml +155 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/modules/translator.yml +32 -0
- data/lib/starter_web/_data/resources.yml +125 -100
- data/lib/starter_web/_includes/attributes.asciidoc +7 -2
- data/lib/starter_web/_plugins/asciidoctor-extensions/flag-icon-inline.rb +37 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/markus-krisetya-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/vladislav-klapin-2-1920x1280.jpg +0 -0
- data/lib/starter_web/package.json +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +0 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +3 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +9 -32
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +0 -22
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +0 -20
- data/lib/starter_web/pages/public/blog/navigator/archive.html +0 -22
- data/lib/starter_web/pages/public/learn/quickstart.adoc +0 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +7 -3
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +3 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +30 -28
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +112 -10
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +8 -5
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +4 -2
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +6 -8
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -2
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +42 -43
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +15 -15
- data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +0 -1
- data/lib/starter_web/pages/public/legal/de/100_impress.adoc +0 -2
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +0 -1
- data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -3
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -3
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +0 -2
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -2
- data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +743 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +2 -0
- data/lib/starter_web/pages/public/previewer/{bootstrap_theme.adoc → preview_bootstrap_theme.adoc} +1 -2
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +581 -6
- data/assets/themes/j1/core/js/template.js.map +0 -1
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-video.js +0 -342
- data/assets/themes/j1/modules/lightGallery/js/modules/lg-video.min.js +0 -5
@@ -0,0 +1,586 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/translator/js/translator.js
|
4
|
+
# Provides JS Core functions|API for J1 Module Translator
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# http://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2021 Juergen Adams
|
10
|
+
#
|
11
|
+
# J1 Template is licensed under MIT License.
|
12
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
*/
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
// -----------------------------------------------------------------------------
|
18
|
+
// ESLint shimming
|
19
|
+
// -----------------------------------------------------------------------------
|
20
|
+
/* eslint indent: "off" */
|
21
|
+
/* eslint no-unused-vars: "off" */
|
22
|
+
/* eslint no-undef: "off" */
|
23
|
+
/* eslint no-redeclare: "off" */
|
24
|
+
/* eslint indent: "off" */
|
25
|
+
/* eslint JSUnfilteredForInLoop: "off" */
|
26
|
+
// -----------------------------------------------------------------------------
|
27
|
+
|
28
|
+
function Translator(props) {
|
29
|
+
|
30
|
+
// ---------------------------------------------------------------------------
|
31
|
+
// global vars
|
32
|
+
// ---------------------------------------------------------------------------
|
33
|
+
var self = this;
|
34
|
+
var logger = log4javascript.getLogger('j1.core.translator');
|
35
|
+
var pageURL = new liteURL(window.location.href);
|
36
|
+
var cookieSecure = (pageURL.protocol.includes('https')) ? true : false;
|
37
|
+
var detailedSettingsShown = false;
|
38
|
+
var navigator_language;
|
39
|
+
var translation_language;
|
40
|
+
|
41
|
+
// ---------------------------------------------------------------------------
|
42
|
+
// default property settings
|
43
|
+
// ---------------------------------------------------------------------------
|
44
|
+
this.props = {
|
45
|
+
contentURL: '/assets/data/translator', // this URL must contain the dialog content (modals) in the needed languages
|
46
|
+
cookieName: 'j1.user.state', // the name of the User State Cookie (primary data)
|
47
|
+
cookieConsentName: 'j1.user.consent', // the name of the Cookie Consent Cookie (secondary data)
|
48
|
+
cookieStorageDays: 365, // the duration the cookie is stored on the client
|
49
|
+
cookieSameSite: 'Strict', // restrict consent cookie to first-party, do NOT send cookie to other domains
|
50
|
+
cookieSecure: cookieSecure, // secure flag on cookies
|
51
|
+
translationEnabled: false, // enable|disable translation on first page view
|
52
|
+
disableLanguageSelector: false, // disable language dropdown for translation in dialog (modal)
|
53
|
+
translatorName: 'google', // name of the default translator
|
54
|
+
translationLanguages: 'all', // supported languages for translation
|
55
|
+
translationLanguage: 'auto', // language used for translation
|
56
|
+
translateAllPages: true, // enable tranlation on all pages
|
57
|
+
hideSuggestionBox: true, // disable suggestions on translated text
|
58
|
+
hidePoweredBy: true, // disable label "Powered by Google"
|
59
|
+
hideTopFrame: true, // disable the (google) translator frame
|
60
|
+
dialogLanguage: 'content', // language used for the consent dialog (modal)
|
61
|
+
dialogLanguages: ['en','de'], // supported languages for the consent dialog (modal), defaults to first in array//
|
62
|
+
dialogContainerID: 'translator-modal', // container, the dialog modal is (dynamically) loaded
|
63
|
+
xhrDataElement: '', // container for the language-specific consent modal taken from /assets/data/cookieconsent.html
|
64
|
+
postSelectionCallback: '', // callback function, called after the user has made his selection
|
65
|
+
};
|
66
|
+
|
67
|
+
// merge properties from default|module
|
68
|
+
for (var property in props) {
|
69
|
+
this.props[property] = props[property];
|
70
|
+
}
|
71
|
+
|
72
|
+
// extract the language portion (e.g. "en" for English)
|
73
|
+
if (this.props.dialogLanguage.indexOf("-") !== -1) {
|
74
|
+
this.props.dialogLanguage = this.props.dialogLanguage.split("-")[0];
|
75
|
+
}
|
76
|
+
|
77
|
+
// fallback on default language (modal) if dialogLanguage not suppported
|
78
|
+
if (!this.props.dialogLanguages.includes(this.props.dialogLanguage)) {
|
79
|
+
this.props.dialogLanguage = this.props.dialogLanguages[0];
|
80
|
+
}
|
81
|
+
|
82
|
+
// set the xhrDataElement of the modal loadad based on dialogLanguage
|
83
|
+
this.props.xhrDataElement = this.props.xhrDataElement + '-' + this.props.dialogLanguage;
|
84
|
+
|
85
|
+
logger.info('\n' + 'initializing core module: started');
|
86
|
+
logger.info('\n' + 'state: started');
|
87
|
+
|
88
|
+
// ---------------------------------------------------------------------------
|
89
|
+
// internal functions
|
90
|
+
// ---------------------------------------------------------------------------
|
91
|
+
|
92
|
+
// ---------------------------------------------------------------------------
|
93
|
+
// Cookie()
|
94
|
+
// manage cookies
|
95
|
+
// ---------------------------------------------------------------------------
|
96
|
+
var Cookie = {
|
97
|
+
set: function (name, value, days, samesite, secure) {
|
98
|
+
var value_encoded = window.btoa(value);
|
99
|
+
var expires = '';
|
100
|
+
if (days) {
|
101
|
+
var date = new Date();
|
102
|
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
103
|
+
expires = '; expires=' + date.toUTCString();
|
104
|
+
}
|
105
|
+
if (secure) {
|
106
|
+
document.cookie = name + '=' + (value_encoded || '') + expires + '; Path=/; SameSite=' + samesite + '; ' + 'secure=' + secure + ';';
|
107
|
+
} else {
|
108
|
+
document.cookie = name + '=' + (value_encoded || '') + expires + '; Path=/; SameSite=' + samesite + ';';
|
109
|
+
}
|
110
|
+
},
|
111
|
+
get: function (name) {
|
112
|
+
var nameEQ = name + '=';
|
113
|
+
var ca = document.cookie.split(';');
|
114
|
+
for (var i = 0; i < ca.length; i++) {
|
115
|
+
var c = ca[i];
|
116
|
+
while (c.charAt(0) === ' ') {
|
117
|
+
c = c.substring(1, c.length);
|
118
|
+
}
|
119
|
+
if (c.indexOf(nameEQ) === 0) {
|
120
|
+
var value_encoded = c.substring(nameEQ.length, c.length);
|
121
|
+
var value = window.atob(value_encoded);
|
122
|
+
return value;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
return undefined;
|
126
|
+
}
|
127
|
+
};
|
128
|
+
|
129
|
+
// ---------------------------------------------------------------------------
|
130
|
+
// global event handler
|
131
|
+
// ---------------------------------------------------------------------------
|
132
|
+
var Events = {
|
133
|
+
documentReady: function (onDocumentReady) {
|
134
|
+
if (document.readyState !== 'loading') {
|
135
|
+
onDocumentReady();
|
136
|
+
} else {
|
137
|
+
document.addEventListener('DOMContentLoaded', onDocumentReady);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
};
|
141
|
+
|
142
|
+
// ---------------------------------------------------------------------------
|
143
|
+
// extend()
|
144
|
+
// deep merge of two objects
|
145
|
+
// ---------------------------------------------------------------------------
|
146
|
+
function extend () {
|
147
|
+
var extended = {};
|
148
|
+
var deep = false;
|
149
|
+
var i = 0;
|
150
|
+
var length = arguments.length;
|
151
|
+
|
152
|
+
// Check if a deep merge
|
153
|
+
if ( Object.prototype.toString.call( arguments[0] ) === '[object Boolean]' ) {
|
154
|
+
deep = arguments[0];
|
155
|
+
i++;
|
156
|
+
}
|
157
|
+
|
158
|
+
// Merge the object into the extended object
|
159
|
+
var merge = function (obj) {
|
160
|
+
for ( var prop in obj ) {
|
161
|
+
if ( Object.prototype.hasOwnProperty.call( obj, prop ) ) {
|
162
|
+
// If deep merge and property is an object, merge properties
|
163
|
+
if ( deep && Object.prototype.toString.call(obj[prop]) === '[object Object]' ) {
|
164
|
+
extended[prop] = extend( true, extended[prop], obj[prop] );
|
165
|
+
} else {
|
166
|
+
extended[prop] = obj[prop];
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
};
|
171
|
+
|
172
|
+
// Loop through each object and conduct a merge
|
173
|
+
for ( ; i < length; i++ ) {
|
174
|
+
var obj = arguments[i];
|
175
|
+
merge(obj);
|
176
|
+
}
|
177
|
+
return extended;
|
178
|
+
}
|
179
|
+
|
180
|
+
// ---------------------------------------------------------------------------
|
181
|
+
// executeFunctionByName()
|
182
|
+
// execute a function by NAME (functionName) in a browser context
|
183
|
+
// (e.g. window) the function is published
|
184
|
+
// ---------------------------------------------------------------------------
|
185
|
+
function executeFunctionByName (functionName, context /*, args */) {
|
186
|
+
var args = Array.prototype.slice.call(arguments, 2);
|
187
|
+
var namespaces = functionName.split('.');
|
188
|
+
var func = namespaces.pop();
|
189
|
+
for(var i = 0; i < namespaces.length; i++) {
|
190
|
+
context = context[namespaces[i]];
|
191
|
+
}
|
192
|
+
return context[func].apply(context, args);
|
193
|
+
}
|
194
|
+
|
195
|
+
// ---------------------------------------------------------------------------
|
196
|
+
// createMsDropdownFromJSON()
|
197
|
+
// Create a msDropdown select DYNAMICALLY from JSON data located in a file
|
198
|
+
// specified by "url". The JSON file contaians mutiple msDropdown elements
|
199
|
+
// selected by "elm". The base (empty) <div> container the msDropdown will
|
200
|
+
// be created is specified by theID given by "selector".
|
201
|
+
// ---------------------------------------------------------------------------
|
202
|
+
function createMsDropdownFromJSON (options /* url, elm, selector */) {
|
203
|
+
var selectorID;
|
204
|
+
|
205
|
+
// -----------------------------------------------------------------------
|
206
|
+
// Merge values from defaults|options
|
207
|
+
// -----------------------------------------------------------------------
|
208
|
+
var settings = extend ({
|
209
|
+
size: 0,
|
210
|
+
width: 250,
|
211
|
+
multiple: false,
|
212
|
+
selectedIndex: 1,
|
213
|
+
enableAutoFilter: false,
|
214
|
+
visibleRows: null,
|
215
|
+
}, options);
|
216
|
+
|
217
|
+
selectorID = '#' + settings.selector;
|
218
|
+
|
219
|
+
$.ajax({
|
220
|
+
url: settings.url,
|
221
|
+
dataType: 'json',
|
222
|
+
success: function (data) {
|
223
|
+
var dropdownLanguages = [];
|
224
|
+
|
225
|
+
// collect translation languages
|
226
|
+
if (self.props.translationLanguages.includes('all')) {
|
227
|
+
dropdownLanguages = data[settings.elm];
|
228
|
+
} else {
|
229
|
+
for (var i = 0; i < data[settings.elm].length; i++) {
|
230
|
+
if(self.props.translationLanguages.includes(data[settings.elm][i].value)) {
|
231
|
+
dropdownLanguages.push(data[settings.elm][i]);
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
// correct rows of the dropdown if required
|
237
|
+
if (settings.visibleRows > dropdownLanguages.length) {
|
238
|
+
settings.visibleRows = dropdownLanguages.length;
|
239
|
+
}
|
240
|
+
|
241
|
+
// create the dropdown
|
242
|
+
MsDropdown.make(selectorID, {
|
243
|
+
byJson: {
|
244
|
+
data: dropdownLanguages,
|
245
|
+
name: settings.name,
|
246
|
+
size: settings.size,
|
247
|
+
width: settings.width,
|
248
|
+
multiple: settings.multiple,
|
249
|
+
},
|
250
|
+
enableAutoFilter: settings.enableAutoFilter,
|
251
|
+
visibleRows: settings.visibleRows,
|
252
|
+
});
|
253
|
+
},
|
254
|
+
error: function (jqXHR, textStatus, errorThrown) {
|
255
|
+
logger.error('\n' + 'failed to retrieve JSON data from: ' + settings.url);
|
256
|
+
}
|
257
|
+
});
|
258
|
+
}
|
259
|
+
|
260
|
+
// ---------------------------------------------------------------------------
|
261
|
+
// showDialog
|
262
|
+
// Show|Create the translation dialog (modal)
|
263
|
+
// ---------------------------------------------------------------------------
|
264
|
+
function showDialog() {
|
265
|
+
Events.documentReady(function () {
|
266
|
+
|
267
|
+
self.modal = document.getElementById(self.props.dialogContainerID);
|
268
|
+
if (!self.modal) {
|
269
|
+
logger.info('\n' + 'load consent modal');
|
270
|
+
self.modal = document.createElement('div');
|
271
|
+
self.modal.id = self.props.dialogContainerID;
|
272
|
+
self.modal.setAttribute('class', 'modal fade');
|
273
|
+
self.modal.setAttribute('tabindex', '-1');
|
274
|
+
self.modal.setAttribute('role', 'dialog');
|
275
|
+
self.modal.setAttribute('aria-labelledby', self.props.dialogContainerID);
|
276
|
+
document.body.append(self.modal);
|
277
|
+
self.$modal = $(self.modal);
|
278
|
+
|
279
|
+
// ---------------------------------------------------------------------
|
280
|
+
// register events for the dialog (modal)
|
281
|
+
// ---------------------------------------------------------------------
|
282
|
+
|
283
|
+
// ---------------------------------------------------------------------
|
284
|
+
// on 'show'
|
285
|
+
// ---------------------------------------------------------------------
|
286
|
+
self.$modal.on('show.bs.modal', function () {
|
287
|
+
var msDropdownJSON;
|
288
|
+
var index;
|
289
|
+
|
290
|
+
logger.info('\n' + 'show.bs.modal: entered');
|
291
|
+
|
292
|
+
// create msDropdown from JSON data
|
293
|
+
$.when (
|
294
|
+
createMsDropdownFromJSON({
|
295
|
+
url: '/assets/data/iso-639-language-codes-flags.json',
|
296
|
+
elm: 'iso-639-languages',
|
297
|
+
selector: 'dropdownJSON',
|
298
|
+
width: 400,
|
299
|
+
visibleRows: 8,
|
300
|
+
})
|
301
|
+
)
|
302
|
+
.then(function(data) {
|
303
|
+
logger.info('\n' + 'creating msDropdown from JSON data: finished');
|
304
|
+
});
|
305
|
+
}); // END modal on 'show'
|
306
|
+
|
307
|
+
// ---------------------------------------------------------------------
|
308
|
+
// on 'shown'
|
309
|
+
// ---------------------------------------------------------------------
|
310
|
+
self.$modal.on('shown.bs.modal', function () {
|
311
|
+
var msDropdownJSON = document.getElementById('dropdownJSON').msDropdown;
|
312
|
+
|
313
|
+
if (!msDropdownJSON.length) {
|
314
|
+
// critical error
|
315
|
+
logger.error('\n' + 'no msDropdown found in translation dialog');
|
316
|
+
self.$modal.hide();
|
317
|
+
} else {
|
318
|
+
// set translation language for auto detection
|
319
|
+
if (self.props.translationLanguage === 'auto') {
|
320
|
+
navigator_language = navigator.language || navigator.userLanguage;
|
321
|
+
translation_language = navigator_language.split('-')[0];
|
322
|
+
}
|
323
|
+
|
324
|
+
// set translation language for the dropdown
|
325
|
+
msDropdownJSON.selectedIndex = $('#dropdownJSON option[value=' + translation_language + ']').index();;
|
326
|
+
|
327
|
+
// disable translation language selection
|
328
|
+
if (self.props.disableLanguageSelector) {
|
329
|
+
msDropdownJSON.disabled = true;
|
330
|
+
}
|
331
|
+
|
332
|
+
$('#dropdownJSON').show();
|
333
|
+
|
334
|
+
// jadams, 2021-10-18: added stop scrolling on the body,
|
335
|
+
// if modal is OPEN
|
336
|
+
$('body').addClass('stop-scrolling');
|
337
|
+
|
338
|
+
}
|
339
|
+
|
340
|
+
}); // END modal on 'shown'
|
341
|
+
|
342
|
+
// ---------------------------------------------------------------------
|
343
|
+
// on 'hidden'
|
344
|
+
// ---------------------------------------------------------------------
|
345
|
+
self.$modal.on('hidden.bs.modal', function () {
|
346
|
+
$('body').removeClass('stop-scrolling');
|
347
|
+
// run the postSelectionCallback for (final) translation
|
348
|
+
executeFunctionByName (self.props.postSelectionCallback, window);
|
349
|
+
}); // END modal on 'hidden'
|
350
|
+
|
351
|
+
// ---------------------------------------------------------------------
|
352
|
+
// load the dialog (modal content)
|
353
|
+
// ---------------------------------------------------------------------
|
354
|
+
var templateUrl = self.props.contentURL + '/' + 'index.html';
|
355
|
+
$.get(templateUrl)
|
356
|
+
.done(function (data) {
|
357
|
+
logger.info('\n' + 'loading consent modal: successfully');
|
358
|
+
self.modal.innerHTML = data;
|
359
|
+
self.modal.innerHTML = $('#' + self.props.xhrDataElement).eq(0).html();
|
360
|
+
|
361
|
+
$(self.modal).modal({
|
362
|
+
backdrop: 'static',
|
363
|
+
keyboard: false
|
364
|
+
});
|
365
|
+
|
366
|
+
self.$buttonDoNotAgree = $('#translator-buttonDoNotAgree');
|
367
|
+
self.$buttonAgree = $('#translator-buttonAgree');
|
368
|
+
self.$buttonSave = $('#translator-buttonSave');
|
369
|
+
self.$buttonAgreeAll = $('#translator-buttonAgreeAll');
|
370
|
+
|
371
|
+
logger.info('\n' + 'load/initialze options from cookie');
|
372
|
+
updateButtons();
|
373
|
+
updateOptionsFromCookie();
|
374
|
+
|
375
|
+
// -------------------------------------------------------------------
|
376
|
+
// register button events for the dialog (modal)
|
377
|
+
// -------------------------------------------------------------------
|
378
|
+
$('#google-options').on('hide.bs.collapse', function () {
|
379
|
+
detailedSettingsShown = false;
|
380
|
+
updateButtons();
|
381
|
+
}).on('show.bs.collapse', function () {
|
382
|
+
detailedSettingsShown = true;
|
383
|
+
updateButtons();
|
384
|
+
});
|
385
|
+
|
386
|
+
logger.info('\n' + 'initialze button event handler');
|
387
|
+
|
388
|
+
self.$buttonDoNotAgree.click(function () {
|
389
|
+
doNotAgree();
|
390
|
+
});
|
391
|
+
self.$buttonAgree.click(function () {
|
392
|
+
agreeAll();
|
393
|
+
});
|
394
|
+
self.$buttonSave.click(function () {
|
395
|
+
$('#google-options').collapse('hide');
|
396
|
+
saveSettings();
|
397
|
+
updateOptionsFromCookie();
|
398
|
+
});
|
399
|
+
self.$buttonAgreeAll.click(function () {
|
400
|
+
$('#google-options').collapse('hide');
|
401
|
+
agreeAll();
|
402
|
+
});
|
403
|
+
})
|
404
|
+
.fail(function () {
|
405
|
+
logger.error('\n' + 'loading translator dialog (modal): failed');
|
406
|
+
logger.warn('\n' + 'probably no|wrong `contentURL` set');
|
407
|
+
});
|
408
|
+
} else {
|
409
|
+
self.$modal.modal('show');
|
410
|
+
}
|
411
|
+
}.bind(this));
|
412
|
+
}
|
413
|
+
|
414
|
+
// ---------------------------------------------------------------------------
|
415
|
+
// updateOptionsFromCookie()
|
416
|
+
// update all checkboxes in dialog (modal) from current cookie settings
|
417
|
+
// ---------------------------------------------------------------------------
|
418
|
+
function updateOptionsFromCookie() {
|
419
|
+
var settings = self.getSettings();
|
420
|
+
if (settings) {
|
421
|
+
for (var setting in settings) {
|
422
|
+
var $checkbox = self.$modal.find('#google-options .translator-option[data-name=' + setting + '] input[type="checkbox"]');
|
423
|
+
$checkbox.prop('checked', settings[setting]);
|
424
|
+
}
|
425
|
+
}
|
426
|
+
}
|
427
|
+
|
428
|
+
// ---------------------------------------------------------------------------
|
429
|
+
// updateButtons()
|
430
|
+
// toggle dialog (modal) buttons
|
431
|
+
// ---------------------------------------------------------------------------
|
432
|
+
function updateButtons() {
|
433
|
+
if (detailedSettingsShown) {
|
434
|
+
self.$buttonDoNotAgree.hide();
|
435
|
+
self.$buttonAgree.hide();
|
436
|
+
self.$buttonSave.show();
|
437
|
+
self.$buttonAgreeAll.show();
|
438
|
+
} else {
|
439
|
+
self.$buttonDoNotAgree.show();
|
440
|
+
self.$buttonAgree.show();
|
441
|
+
self.$buttonSave.hide();
|
442
|
+
self.$buttonAgreeAll.hide();
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
// ---------------------------------------------------------------------------
|
447
|
+
// gatherOptions()
|
448
|
+
// collect current settings from all checkboxes in dialog (modal)
|
449
|
+
// ---------------------------------------------------------------------------
|
450
|
+
function gatherOptions(setAllExceptNecessary) {
|
451
|
+
var $options = self.$modal.find('#google-options .translator-option');
|
452
|
+
var options = {};
|
453
|
+
for (var i = 0; i < $options.length; i++) {
|
454
|
+
var option = $options[i];
|
455
|
+
var name = option.getAttribute('data-name');
|
456
|
+
if (name === 'necessary') {
|
457
|
+
options[name] = true;
|
458
|
+
} else if (setAllExceptNecessary === undefined) {
|
459
|
+
var $checkbox = $(option).find('input[type="checkbox"]');
|
460
|
+
options[name] = $checkbox.prop('checked');
|
461
|
+
} else {
|
462
|
+
options[name] = !!setAllExceptNecessary;
|
463
|
+
}
|
464
|
+
}
|
465
|
+
return options;
|
466
|
+
}
|
467
|
+
|
468
|
+
// ---------------------------------------------------------------------------
|
469
|
+
// agreeAll()
|
470
|
+
// process current settings from checkboxes for button `agreeAll`
|
471
|
+
// ---------------------------------------------------------------------------
|
472
|
+
function agreeAll() {
|
473
|
+
var settings;
|
474
|
+
var consentSettings = {};
|
475
|
+
|
476
|
+
settings = gatherOptions();
|
477
|
+
consentSettings = JSON.parse(Cookie.get(self.props.cookieConsentName));
|
478
|
+
consentSettings.analysis = settings.analysis;
|
479
|
+
consentSettings.personalization = settings.personalization;
|
480
|
+
|
481
|
+
Cookie.set(
|
482
|
+
self.props.cookieConsentName,
|
483
|
+
JSON.stringify(consentSettings),
|
484
|
+
self.props.cookieStorageDays,
|
485
|
+
self.props.sameSite,
|
486
|
+
self.props.secure
|
487
|
+
);
|
488
|
+
Cookie.set(
|
489
|
+
self.props.cookieName,
|
490
|
+
JSON.stringify(gatherOptions(true)),
|
491
|
+
self.props.cookieStorageDays,
|
492
|
+
self.props.sameSite,
|
493
|
+
self.props.secure
|
494
|
+
);
|
495
|
+
|
496
|
+
self.$modal.modal('hide');
|
497
|
+
}
|
498
|
+
|
499
|
+
// ---------------------------------------------------------------------------
|
500
|
+
// doNotAgree()
|
501
|
+
// process current settings from checkboxes for button `doNotAgree`
|
502
|
+
// ---------------------------------------------------------------------------
|
503
|
+
function doNotAgree() {
|
504
|
+
var settings = gatherOptions();
|
505
|
+
|
506
|
+
settings.translationEnabled = false;
|
507
|
+
Cookie.set(
|
508
|
+
self.props.cookieName,
|
509
|
+
JSON.stringify(settings),
|
510
|
+
self.props.cookieStorageDays,
|
511
|
+
self.props.sameSite,
|
512
|
+
self.props.secure
|
513
|
+
);
|
514
|
+
self.$modal.modal('hide');
|
515
|
+
}
|
516
|
+
|
517
|
+
// ---------------------------------------------------------------------------
|
518
|
+
// saveSettings()
|
519
|
+
// write current settings from checkboxes to cookie
|
520
|
+
// ---------------------------------------------------------------------------
|
521
|
+
function saveSettings() {
|
522
|
+
var settings;
|
523
|
+
var consentSettings = {};
|
524
|
+
|
525
|
+
// update all cookies required for (google-)translation
|
526
|
+
//
|
527
|
+
settings = gatherOptions();
|
528
|
+
consentSettings = JSON.parse(Cookie.get(self.props.cookieConsentName));
|
529
|
+
consentSettings.analysis = settings.analysis;
|
530
|
+
consentSettings.personalization = settings.personalization;
|
531
|
+
|
532
|
+
Cookie.set(
|
533
|
+
self.props.cookieConsentName,
|
534
|
+
JSON.stringify(consentSettings),
|
535
|
+
self.props.cookieStorageDays,
|
536
|
+
self.props.sameSite,
|
537
|
+
self.props.secure
|
538
|
+
);
|
539
|
+
Cookie.set(
|
540
|
+
self.props.cookieName,
|
541
|
+
JSON.stringify(gatherOptions()),
|
542
|
+
self.props.cookieStorageDays,
|
543
|
+
self.props.sameSite,
|
544
|
+
self.props.secure
|
545
|
+
);
|
546
|
+
self.$modal.modal('hide');
|
547
|
+
}
|
548
|
+
|
549
|
+
// ===========================================================================
|
550
|
+
// API functions
|
551
|
+
// ===========================================================================
|
552
|
+
|
553
|
+
// ---------------------------------------------------------------------------
|
554
|
+
// showDialog()
|
555
|
+
// show the translator dialog (modal)
|
556
|
+
// ---------------------------------------------------------------------------
|
557
|
+
this.showDialog = function () {
|
558
|
+
showDialog();
|
559
|
+
}; // END showDialog
|
560
|
+
|
561
|
+
// ---------------------------------------------------------------------------
|
562
|
+
// getSettings()
|
563
|
+
// collect settings from cookie
|
564
|
+
// ---------------------------------------------------------------------------
|
565
|
+
this.getSettings = function (optionName) {
|
566
|
+
var cookie = Cookie.get(self.props.cookieName);
|
567
|
+
if (cookie) {
|
568
|
+
var settings = JSON.parse(Cookie.get(self.props.cookieName));
|
569
|
+
if (optionName === undefined) {
|
570
|
+
return settings;
|
571
|
+
} else {
|
572
|
+
if (settings) {
|
573
|
+
return settings[optionName];
|
574
|
+
} else {
|
575
|
+
return false;
|
576
|
+
}
|
577
|
+
}
|
578
|
+
} else {
|
579
|
+
return undefined;
|
580
|
+
}
|
581
|
+
}; // END getSettings
|
582
|
+
|
583
|
+
logger.info('\n' + 'initializing core module finished');
|
584
|
+
logger.info('\n' + 'state: finished');
|
585
|
+
|
586
|
+
} // END Translator
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/translator/js/translator.min.js
|
4
|
+
# Provides JS Core functions|API for J1 Module Translator
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# http://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2021 Juergen Adams
|
10
|
+
#
|
11
|
+
# J1 Template is licensed under MIT License.
|
12
|
+
# See: https://github.com/jekyll-one/J1 Template/blob/master/LICENSE
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
*/
|
15
|
+
function Translator(d){var p=this;var u=log4javascript.getLogger("j1.core.translator");var l=new liteURL(window.location.href);var c=(l.protocol.includes("https"))?true:false;var q=false;var g;var s;this.props={contentURL:"/assets/data/translator",cookieName:"j1.user.state",cookieConsentName:"j1.user.consent",cookieStorageDays:365,cookieSameSite:"Strict",cookieSecure:c,translationEnabled:false,disableLanguageSelector:false,translatorName:"google",translationLanguages:"all",translationLanguage:"auto",translateAllPages:true,hideSuggestionBox:true,hidePoweredBy:true,hideTopFrame:true,dialogLanguage:"content",dialogLanguages:["en","de"],dialogContainerID:"translator-modal",xhrDataElement:"",postSelectionCallback:"",};for(var e in d){this.props[e]=d[e]}if(this.props.dialogLanguage.indexOf("-")!==-1){this.props.dialogLanguage=this.props.dialogLanguage.split("-")[0]}if(!this.props.dialogLanguages.includes(this.props.dialogLanguage)){this.props.dialogLanguage=this.props.dialogLanguages[0]}this.props.xhrDataElement=this.props.xhrDataElement+"-"+this.props.dialogLanguage;u.info("\ninitializing core module: started");u.info("\nstate: started");var f={set:function(x,z,C,y,A){var B=window.btoa(z);var v="";if(C){var w=new Date();w.setTime(w.getTime()+(C*24*60*60*1000));v="; expires="+w.toUTCString()}if(A){document.cookie=x+"="+(B||"")+v+"; Path=/; SameSite="+y+"; secure="+A+";"}else{document.cookie=x+"="+(B||"")+v+"; Path=/; SameSite="+y+";"}},get:function(w){var z=w+"=";var v=document.cookie.split(";");for(var x=0;x<v.length;x++){var B=v[x];while(B.charAt(0)===" "){B=B.substring(1,B.length)}if(B.indexOf(z)===0){var A=B.substring(z.length,B.length);var y=window.atob(A);return y}}return undefined}};var n={documentReady:function(v){if(document.readyState!=="loading"){v()}else{document.addEventListener("DOMContentLoaded",v)}}};function t(){var v={};var w=false;var x=0;var y=arguments.length;if(Object.prototype.toString.call(arguments[0])==="[object Boolean]"){w=arguments[0];x++}var A=function(B){for(var C in B){if(Object.prototype.hasOwnProperty.call(B,C)){if(w&&Object.prototype.toString.call(B[C])==="[object Object]"){v[C]=t(true,v[C],B[C])}else{v[C]=B[C]}}}};for(;x<y;x++){var z=arguments[x];A(z)}return v}function h(A,x){var v=Array.prototype.slice.call(arguments,2);var z=A.split(".");var y=z.pop();for(var w=0;w<z.length;w++){x=x[z[w]]}return x[y].apply(x,v)}function j(w){var v;var x=t({size:0,width:250,multiple:false,selectedIndex:1,enableAutoFilter:false,visibleRows:null,},w);v="#"+x.selector;$.ajax({url:x.url,dataType:"json",success:function(A){var z=[];if(p.props.translationLanguages.includes("all")){z=A[x.elm]}else{for(var y=0;y<A[x.elm].length;y++){if(p.props.translationLanguages.includes(A[x.elm][y].value)){z.push(A[x.elm][y])}}}if(x.visibleRows>z.length){x.visibleRows=z.length}MsDropdown.make(v,{byJson:{data:z,name:x.name,size:x.size,width:x.width,multiple:x.multiple,},enableAutoFilter:x.enableAutoFilter,visibleRows:x.visibleRows,})},error:function(y,A,z){u.error("\nfailed to retrieve JSON data from: "+x.url)}})}function m(){n.documentReady(function(){p.modal=document.getElementById(p.props.dialogContainerID);if(!p.modal){u.info("\nload consent modal");p.modal=document.createElement("div");p.modal.id=p.props.dialogContainerID;p.modal.setAttribute("class","modal fade");p.modal.setAttribute("tabindex","-1");p.modal.setAttribute("role","dialog");p.modal.setAttribute("aria-labelledby",p.props.dialogContainerID);document.body.append(p.modal);p.$modal=$(p.modal);p.$modal.on("show.bs.modal",function(){var w;var x;u.info("\nshow.bs.modal: entered");$.when(j({url:"/assets/data/iso-639-language-codes-flags.json",elm:"iso-639-languages",selector:"dropdownJSON",width:400,visibleRows:8,})).then(function(y){u.info("\ncreating msDropdown from JSON data: finished")})});p.$modal.on("shown.bs.modal",function(){var w=document.getElementById("dropdownJSON").msDropdown;if(!w.length){u.error("\nno msDropdown found in translation dialog");p.$modal.hide()}else{if(p.props.translationLanguage==="auto"){g=navigator.language||navigator.userLanguage;s=g.split("-")[0]}w.selectedIndex=$("#dropdownJSON option[value="+s+"]").index();if(p.props.disableLanguageSelector){w.disabled=true}$("#dropdownJSON").show();$("body").addClass("stop-scrolling")}});p.$modal.on("hidden.bs.modal",function(){$("body").removeClass("stop-scrolling");h(p.props.postSelectionCallback,window)});var v=p.props.contentURL+"/index.html";$.get(v).done(function(w){u.info("\nloading consent modal: successfully");p.modal.innerHTML=w;p.modal.innerHTML=$("#"+p.props.xhrDataElement).eq(0).html();$(p.modal).modal({backdrop:"static",keyboard:false});p.$buttonDoNotAgree=$("#translator-buttonDoNotAgree");p.$buttonAgree=$("#translator-buttonAgree");p.$buttonSave=$("#translator-buttonSave");p.$buttonAgreeAll=$("#translator-buttonAgreeAll");u.info("\nload/initialze options from cookie");k();i();$("#google-options").on("hide.bs.collapse",function(){q=false;k()}).on("show.bs.collapse",function(){q=true;k()});u.info("\ninitialze button event handler");p.$buttonDoNotAgree.click(function(){b()});p.$buttonAgree.click(function(){o()});p.$buttonSave.click(function(){$("#google-options").collapse("hide");r();i()});p.$buttonAgreeAll.click(function(){$("#google-options").collapse("hide");o()})}).fail(function(){u.error("\nloading translator dialog (modal): failed");u.warn("\nprobably no|wrong `contentURL` set")})}else{p.$modal.modal("show")}}.bind(this))}function i(){var x=p.getSettings();if(x){for(var w in x){var v=p.$modal.find("#google-options .translator-option[data-name="+w+'] input[type="checkbox"]');v.prop("checked",x[w])}}}function k(){if(q){p.$buttonDoNotAgree.hide();p.$buttonAgree.hide();p.$buttonSave.show();p.$buttonAgreeAll.show()}else{p.$buttonDoNotAgree.show();p.$buttonAgree.show();p.$buttonSave.hide();p.$buttonAgreeAll.hide()}}function a(w){var v=p.$modal.find("#google-options .translator-option");var y={};for(var z=0;z<v.length;z++){var B=v[z];var x=B.getAttribute("data-name");if(x==="necessary"){y[x]=true}else{if(w===undefined){var A=$(B).find('input[type="checkbox"]');y[x]=A.prop("checked")}else{y[x]=!!w}}}return y}function o(){var w;var v={};w=a();v=JSON.parse(f.get(p.props.cookieConsentName));v.analysis=w.analysis;v.personalization=w.personalization;f.set(p.props.cookieConsentName,JSON.stringify(v),p.props.cookieStorageDays,p.props.sameSite,p.props.secure);f.set(p.props.cookieName,JSON.stringify(a(true)),p.props.cookieStorageDays,p.props.sameSite,p.props.secure);p.$modal.modal("hide")}function b(){var v=a();v.translationEnabled=false;f.set(p.props.cookieName,JSON.stringify(v),p.props.cookieStorageDays,p.props.sameSite,p.props.secure);p.$modal.modal("hide")}function r(){var w;var v={};w=a();v=JSON.parse(f.get(p.props.cookieConsentName));v.analysis=w.analysis;v.personalization=w.personalization;f.set(p.props.cookieConsentName,JSON.stringify(v),p.props.cookieStorageDays,p.props.sameSite,p.props.secure);f.set(p.props.cookieName,JSON.stringify(a()),p.props.cookieStorageDays,p.props.sameSite,p.props.secure);p.$modal.modal("hide")}this.showDialog=function(){m()};this.getSettings=function(w){var v=f.get(p.props.cookieName);if(v){var x=JSON.parse(f.get(p.props.cookieName));if(w===undefined){return x}else{if(x){return x[w]}else{return false}}}else{return undefined}};u.info("\ninitializing core module finished");u.info("\nstate: finished")};
|
data/lib/j1/version.rb
CHANGED
data/lib/starter_web/Gemfile
CHANGED
@@ -53,7 +53,7 @@ gem 'jekyll', '~> 4.2'
|
|
53
53
|
|
54
54
|
# Theme Rubies, default: J1 Template (NOT used for the development system)
|
55
55
|
#
|
56
|
-
gem 'j1-template', '~> 2021.2.
|
56
|
+
gem 'j1-template', '~> 2021.2.6'
|
57
57
|
|
58
58
|
# ------------------------------------------------------------------------------
|
59
59
|
# PRODUCTION: Gem needed for the Jekyll and J1 prod environment
|
data/lib/starter_web/_config.yml
CHANGED
@@ -53,7 +53,7 @@ environment: development
|
|
53
53
|
# ------------------------------------------------------------------------------
|
54
54
|
# Sets the build version of J1 Template Gem
|
55
55
|
#
|
56
|
-
version: 2021.2.
|
56
|
+
version: 2021.2.6
|
57
57
|
|
58
58
|
# version
|
59
59
|
# ------------------------------------------------------------------------------
|