diff --git a/js/apps.js b/js/apps.js index 624bd23..60af112 100644 --- a/js/apps.js +++ b/js/apps.js @@ -13,7 +13,7 @@ window.addEventListener('DOMContentLoaded', () => { }); function load() { - const cardTemplate = `
{1}
{2}

{3}

`; + const cardTemplate = `
{1}
{2}

{3}

`; const galleryTitle = "Federico Navarrete — Projects Gallery"; const https = 'https://'; diff --git a/js/apps.min.js b/js/apps.min.js index 66ec9a4..ce3fd51 100644 --- a/js/apps.min.js +++ b/js/apps.min.js @@ -1 +1 @@ -let apps,panesOptions,tabsOptions;function load(){const e='
{1}
{2}

{3}

',t="https://",r=`Some icons were created by Freepik - www.flaticon.com. © Federico Navarrete & Supernova IC {0}.`,o="{1}";document.getElementById("galleryApps").innerHTML+=createTabs()+createPanes(),document.getElementById("galleryTitle").innerHTML+="Federico Navarrete — Projects Gallery";let a=(new Date).getFullYear();document.getElementById("galleryFooter").innerHTML+=r.format(a);let s=[],n=[],i=[],l=[],p=[],c=[],d=[],g=[],u=[],y=[],m=[],f=[],b=[],h=[],w=[],$=[],S=[],L=[],B=[],P=[],k=[],v=[],x=[],E=[],I=[];new URLSearchParams(window.location.search).get("isIframe")||(document.getElementById("header").style.display="block",document.getElementById("header").classList.add("pt-4"),[...document.getElementsByClassName(".gallery-block")].forEach((e=>{e.style.paddingTop="60px"})));for(let e in apps)O(apps[e],"android",!0,s),O(apps[e],"android_huawei",!0,n),O(apps[e],"android_samsung",!0,i),O(apps[e],"android_amazon",!0,l),O(apps[e],"windows10",!0,c),O(apps[e],"android",!1,h),O(apps[e],"windows10",!1,w),O(apps[e],"windowsPhone",!1,S),O(apps[e],"windows8",!1,L),O(apps[e],"web",!0,g),O(apps[e],"web",!1,B),O(apps[e],"windowsXP",!1,$),O(apps[e],"nuget",!0,y),O(apps[e],"js_lib",!0,f),O(apps[e],"out_lib",!0,b),O(apps[e],"nuget",!1,P),O(apps[e],"xamarin_forms",!1,k),O(apps[e],"uwp_lib",!1,E),O(apps[e],"js_lib",!1,x);M(s.sort(sortByProperty("order")),"playStore",p,I),M(n.sort(sortByProperty("order")),"huaweiStore",p,I),M(i.sort(sortByProperty("order")),"samsungStore",p,I),M(l.sort(sortByProperty("order")),"amazonStore",p,I),M(c.sort(sortByProperty("order")),"msStore",d,I),M(g.sort(sortByProperty("order")),"webStore",u,I),M(y.sort(sortByProperty("order")),"nugetsStore",m,I),M(f.sort(sortByProperty("order")),"jsLibStore",m,I),M(b.sort(sortByProperty("order")),"outLibStore",m,I),M(k.sort(sortByProperty("order")),"unsupportedXamarinForms",v,I),M(h.sort(sortByProperty("order")),"unsupportedAndroid",v,I),M(L.sort(sortByProperty("order")),"unsupportedWindows8",v,I),M(w.sort(sortByProperty("order")),"unsupportedWindows10",v,I),M(S.sort(sortByProperty("order")),"unsupportedWindowsPhone",v,I),M(B.sort(sortByProperty("order")),"unsupportedWeb",v,I),M($.sort(sortByProperty("order")),"unsupportedVB",v,I),M(P.sort(sortByProperty("order")),"unsupportedNuget",v,I),M(x.sort(sortByProperty("order")),"unSuppportedJsLibStore",m,I),M(E.sort(sortByProperty("order")),"unsupportedUwpLibStore",m,I),A(p,"techsPlayStore",I),A(d,"techsMSStore",I),A(u,"techsWebStore",I),A(v,"techsOldStore",I),A(m,"techsLibsStore",I);[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)}));function A(e,t,r){const o={};for(let t=0;tt.id==a[e][0])),`×${a[e][1]}`,3):T(a[e][0],`×${a[e][1]}`,3);document.getElementById(`${t}`).innerHTML+=s}function T(e,t,r){let a="";for(let e=0;e<=r;e++)a+=" ";if(!Array.isArray(e))return`${o.format("",`${t}`)}${a}`;{let r="";switch(e[0].tooltip&&(r=`data-bs-toggle="tooltip" title="${e[0].tooltip}"`),e[0].type){case"text":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-left-icon":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-right-icon":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-left-img":return`${o.format(r,`icon${e[0].text}${t}`)}${a}`;case"mix-right-img":return`${o.format(r,`${e[0].text}icon${t}`)}${a}`;case"img":return`${o.format(r,`icon${t}`)}${a}`;case"icon":return`${o.format(r,`${t}`)}${a}`}}}function M(r,o,a,s){for(let n in r){let i="";""!==r[n].storeLink&&(i+=``),""!==r[n].link&&r[n].isSupported?i+=``:void 0===r[n].secondaryLink||r[n].isSupported||""!==r[n].secondaryLink&&(i+=``),""!==r[n].preview&&(i+=``);let l=r[n].yearStart;r[n].yearStart!==r[n].yearEnd&&(l+=null!==r[n].yearEnd?` - ${r[n].yearEnd}`:" - now");let p=`${l}

${r[n].description}`,c="";for(let e in r[n].technologies)Array.isArray(r[n].technologies[e])?(c+=T(r[n].technologies[e],"",1),F(a,r[n].technologies[e][0].id),void 0!==s&&null==_.findWhere(s,r[n].technologies[e][0])&&s.push(r[n].technologies[e][0])):(c+=T(r[n].technologies[e],"",1),F(a,r[n].technologies[e]));p+=`

Technologies:

${c.replaceAll('"',"'")}
`,document.getElementById(`${o}`).innerHTML+=e.format(r[n].logo,r[n].app,r[n].app,i,r[n].app,p)}}function F(e,t){void 0!==e&&e.push(Array.isArray(e)?t:t.replaceAll(" ","_").replaceAll("-","__"))}function O(e,t,r,o){let a=e.edition.filter((e=>e.mainTech==t&&e.isSupported===r))[0];void 0!==a&&o.push(function(e,t){return{app:e.app,link:e.link,description:e.description,logo:e.logo,preview:t.preview,storeLink:t.storeLink,technologies:t.technologies,yearStart:t.yearStart,yearEnd:t.yearEnd,technologies:t.technologies,isSupported:t.isSupported,secondaryLink:t.link,order:t.order}}(e,a))}[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map((function(e){return new bootstrap.Popover(e)}))}function gAnalytics(){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","G-WQKJ9Y00XJ")}function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"en",includedLanguages:"es,nl,de,fr,it,en,pt",autoDisplay:!1,layout:google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element")}window.addEventListener("DOMContentLoaded",(()=>{fetchData("js/i18n/en-us/apps.min.json").then((e=>{apps=e.apps,panesOptions=e.panesOptions,tabsOptions=e.tabsOptions,load()})).catch((e=>{console.error(e)}))})),googleTranslateElementInit(),gAnalytics(); \ No newline at end of file +let apps,panesOptions,tabsOptions;function load(){const e='
{1}
{2}

{3}

',t="https://",r=`Some icons were created by Freepik - www.flaticon.com. © Federico Navarrete & Supernova IC {0}.`,o="{1}";document.getElementById("galleryApps").innerHTML+=createTabs()+createPanes(),document.getElementById("galleryTitle").innerHTML+="Federico Navarrete — Projects Gallery";let a=(new Date).getFullYear();document.getElementById("galleryFooter").innerHTML+=r.format(a);let s=[],n=[],i=[],l=[],p=[],c=[],d=[],g=[],u=[],y=[],m=[],f=[],b=[],h=[],w=[],$=[],S=[],L=[],B=[],P=[],k=[],v=[],x=[],E=[],I=[];new URLSearchParams(window.location.search).get("isIframe")||(document.getElementById("header").style.display="block",document.getElementById("header").classList.add("pt-4"),[...document.getElementsByClassName(".gallery-block")].forEach((e=>{e.style.paddingTop="60px"})));for(let e in apps)O(apps[e],"android",!0,s),O(apps[e],"android_huawei",!0,n),O(apps[e],"android_samsung",!0,i),O(apps[e],"android_amazon",!0,l),O(apps[e],"windows10",!0,c),O(apps[e],"android",!1,h),O(apps[e],"windows10",!1,w),O(apps[e],"windowsPhone",!1,S),O(apps[e],"windows8",!1,L),O(apps[e],"web",!0,g),O(apps[e],"web",!1,B),O(apps[e],"windowsXP",!1,$),O(apps[e],"nuget",!0,y),O(apps[e],"js_lib",!0,f),O(apps[e],"out_lib",!0,b),O(apps[e],"nuget",!1,P),O(apps[e],"xamarin_forms",!1,k),O(apps[e],"uwp_lib",!1,E),O(apps[e],"js_lib",!1,x);M(s.sort(sortByProperty("order")),"playStore",p,I),M(n.sort(sortByProperty("order")),"huaweiStore",p,I),M(i.sort(sortByProperty("order")),"samsungStore",p,I),M(l.sort(sortByProperty("order")),"amazonStore",p,I),M(c.sort(sortByProperty("order")),"msStore",d,I),M(g.sort(sortByProperty("order")),"webStore",u,I),M(y.sort(sortByProperty("order")),"nugetsStore",m,I),M(f.sort(sortByProperty("order")),"jsLibStore",m,I),M(b.sort(sortByProperty("order")),"outLibStore",m,I),M(k.sort(sortByProperty("order")),"unsupportedXamarinForms",v,I),M(h.sort(sortByProperty("order")),"unsupportedAndroid",v,I),M(L.sort(sortByProperty("order")),"unsupportedWindows8",v,I),M(w.sort(sortByProperty("order")),"unsupportedWindows10",v,I),M(S.sort(sortByProperty("order")),"unsupportedWindowsPhone",v,I),M(B.sort(sortByProperty("order")),"unsupportedWeb",v,I),M($.sort(sortByProperty("order")),"unsupportedVB",v,I),M(P.sort(sortByProperty("order")),"unsupportedNuget",v,I),M(x.sort(sortByProperty("order")),"unSuppportedJsLibStore",m,I),M(E.sort(sortByProperty("order")),"unsupportedUwpLibStore",m,I),A(p,"techsPlayStore",I),A(d,"techsMSStore",I),A(u,"techsWebStore",I),A(v,"techsOldStore",I),A(m,"techsLibsStore",I);[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)}));function A(e,t,r){const o={};for(let t=0;tt.id==a[e][0])),`×${a[e][1]}`,3):T(a[e][0],`×${a[e][1]}`,3);document.getElementById(`${t}`).innerHTML+=s}function T(e,t,r){let a="";for(let e=0;e<=r;e++)a+=" ";if(!Array.isArray(e))return`${o.format("",`${t}`)}${a}`;{let r="";switch(e[0].tooltip&&(r=`data-bs-toggle="tooltip" title="${e[0].tooltip}"`),e[0].type){case"text":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-left-icon":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-right-icon":return`${o.format(r,`${e[0].text}${t}`)}${a}`;case"mix-left-img":return`${o.format(r,`icon${e[0].text}${t}`)}${a}`;case"mix-right-img":return`${o.format(r,`${e[0].text}icon${t}`)}${a}`;case"img":return`${o.format(r,`icon${t}`)}${a}`;case"icon":return`${o.format(r,`${t}`)}${a}`}}}function M(r,o,a,s){for(let n in r){let i="";""!==r[n].storeLink&&(i+=``),""!==r[n].link&&r[n].isSupported?i+=``:void 0===r[n].secondaryLink||r[n].isSupported||""!==r[n].secondaryLink&&(i+=``),""!==r[n].preview&&(i+=``);let l=r[n].yearStart;r[n].yearStart!==r[n].yearEnd&&(l+=null!==r[n].yearEnd?` - ${r[n].yearEnd}`:" - now");let p=`${l}

${r[n].description}`,c="";for(let e in r[n].technologies)Array.isArray(r[n].technologies[e])?(c+=T(r[n].technologies[e],"",1),F(a,r[n].technologies[e][0].id),void 0!==s&&null==_.findWhere(s,r[n].technologies[e][0])&&s.push(r[n].technologies[e][0])):(c+=T(r[n].technologies[e],"",1),F(a,r[n].technologies[e]));p+=`

Technologies:

${c.replaceAll('"',"'")}
`,document.getElementById(`${o}`).innerHTML+=e.format(r[n].logo,r[n].app,r[n].app,i,r[n].app,p)}}function F(e,t){void 0!==e&&e.push(Array.isArray(e)?t:t.replaceAll(" ","_").replaceAll("-","__"))}function O(e,t,r,o){let a=e.edition.filter((e=>e.mainTech==t&&e.isSupported===r))[0];void 0!==a&&o.push(function(e,t){return{app:e.app,link:e.link,description:e.description,logo:e.logo,preview:t.preview,storeLink:t.storeLink,technologies:t.technologies,yearStart:t.yearStart,yearEnd:t.yearEnd,technologies:t.technologies,isSupported:t.isSupported,secondaryLink:t.link,order:t.order}}(e,a))}[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map((function(e){return new bootstrap.Popover(e)}))}function gAnalytics(){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","G-WQKJ9Y00XJ")}function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:"en",includedLanguages:"es,nl,de,fr,it,en,pt",autoDisplay:!1,layout:google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element")}window.addEventListener("DOMContentLoaded",(()=>{fetchData("js/i18n/en-us/apps.min.json").then((e=>{apps=e.apps,panesOptions=e.panesOptions,tabsOptions=e.tabsOptions,load()})).catch((e=>{console.error(e)}))})),googleTranslateElementInit(),gAnalytics(); \ No newline at end of file