diff --git a/.DS_Store b/.DS_Store index 024a9e3..7b702d9 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 9bea433..e43b0f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ - .DS_Store diff --git a/insurance_en/all.css b/Excel_Wealth_Insurance/all.css similarity index 100% rename from insurance_en/all.css rename to Excel_Wealth_Insurance/all.css diff --git a/insurance_en/css/all.min.css b/Excel_Wealth_Insurance/css/all.min.css similarity index 100% rename from insurance_en/css/all.min.css rename to Excel_Wealth_Insurance/css/all.min.css diff --git a/insurance_en/home.css b/Excel_Wealth_Insurance/home.css similarity index 100% rename from insurance_en/home.css rename to Excel_Wealth_Insurance/home.css diff --git a/insurance_en/images/cardiflogo.svg b/Excel_Wealth_Insurance/images/cardiflogo.svg similarity index 100% rename from insurance_en/images/cardiflogo.svg rename to Excel_Wealth_Insurance/images/cardiflogo.svg diff --git a/insurance_en/images/generali-logo-big.svg b/Excel_Wealth_Insurance/images/generali-logo-big.svg similarity index 100% rename from insurance_en/images/generali-logo-big.svg rename to Excel_Wealth_Insurance/images/generali-logo-big.svg diff --git a/insurance_en/images/insurance_logo.png b/Excel_Wealth_Insurance/images/insurance_logo.png similarity index 100% rename from insurance_en/images/insurance_logo.png rename to Excel_Wealth_Insurance/images/insurance_logo.png diff --git a/insurance_en/index.html b/Excel_Wealth_Insurance/index.html similarity index 100% rename from insurance_en/index.html rename to Excel_Wealth_Insurance/index.html diff --git a/insurance_en/jquery.min.js b/Excel_Wealth_Insurance/jquery.min.js similarity index 100% rename from insurance_en/jquery.min.js rename to Excel_Wealth_Insurance/jquery.min.js diff --git a/insurance_en/resizeSensor.js b/Excel_Wealth_Insurance/resizeSensor.js similarity index 100% rename from insurance_en/resizeSensor.js rename to Excel_Wealth_Insurance/resizeSensor.js diff --git a/insurance_en/webfonts/fa-brands-400.eot b/Excel_Wealth_Insurance/webfonts/fa-brands-400.eot similarity index 100% rename from insurance_en/webfonts/fa-brands-400.eot rename to Excel_Wealth_Insurance/webfonts/fa-brands-400.eot diff --git a/insurance_en/webfonts/fa-brands-400.svg b/Excel_Wealth_Insurance/webfonts/fa-brands-400.svg similarity index 100% rename from insurance_en/webfonts/fa-brands-400.svg rename to Excel_Wealth_Insurance/webfonts/fa-brands-400.svg diff --git a/insurance_en/webfonts/fa-brands-400.ttf b/Excel_Wealth_Insurance/webfonts/fa-brands-400.ttf similarity index 100% rename from insurance_en/webfonts/fa-brands-400.ttf rename to Excel_Wealth_Insurance/webfonts/fa-brands-400.ttf diff --git a/insurance_en/webfonts/fa-brands-400.woff b/Excel_Wealth_Insurance/webfonts/fa-brands-400.woff similarity index 100% rename from insurance_en/webfonts/fa-brands-400.woff rename to Excel_Wealth_Insurance/webfonts/fa-brands-400.woff diff --git a/insurance_en/webfonts/fa-brands-400.woff2 b/Excel_Wealth_Insurance/webfonts/fa-brands-400.woff2 similarity index 100% rename from insurance_en/webfonts/fa-brands-400.woff2 rename to Excel_Wealth_Insurance/webfonts/fa-brands-400.woff2 diff --git a/insurance_en/webfonts/fa-regular-400.eot b/Excel_Wealth_Insurance/webfonts/fa-regular-400.eot similarity index 100% rename from insurance_en/webfonts/fa-regular-400.eot rename to Excel_Wealth_Insurance/webfonts/fa-regular-400.eot diff --git a/insurance_en/webfonts/fa-regular-400.svg b/Excel_Wealth_Insurance/webfonts/fa-regular-400.svg similarity index 100% rename from insurance_en/webfonts/fa-regular-400.svg rename to Excel_Wealth_Insurance/webfonts/fa-regular-400.svg diff --git a/insurance_en/webfonts/fa-regular-400.ttf b/Excel_Wealth_Insurance/webfonts/fa-regular-400.ttf similarity index 100% rename from insurance_en/webfonts/fa-regular-400.ttf rename to Excel_Wealth_Insurance/webfonts/fa-regular-400.ttf diff --git a/insurance_en/webfonts/fa-regular-400.woff b/Excel_Wealth_Insurance/webfonts/fa-regular-400.woff similarity index 100% rename from insurance_en/webfonts/fa-regular-400.woff rename to Excel_Wealth_Insurance/webfonts/fa-regular-400.woff diff --git a/insurance_en/webfonts/fa-regular-400.woff2 b/Excel_Wealth_Insurance/webfonts/fa-regular-400.woff2 similarity index 100% rename from insurance_en/webfonts/fa-regular-400.woff2 rename to Excel_Wealth_Insurance/webfonts/fa-regular-400.woff2 diff --git a/insurance_en/webfonts/fa-solid-900.eot b/Excel_Wealth_Insurance/webfonts/fa-solid-900.eot similarity index 100% rename from insurance_en/webfonts/fa-solid-900.eot rename to Excel_Wealth_Insurance/webfonts/fa-solid-900.eot diff --git a/insurance_en/webfonts/fa-solid-900.svg b/Excel_Wealth_Insurance/webfonts/fa-solid-900.svg similarity index 100% rename from insurance_en/webfonts/fa-solid-900.svg rename to Excel_Wealth_Insurance/webfonts/fa-solid-900.svg diff --git a/insurance_en/webfonts/fa-solid-900.ttf b/Excel_Wealth_Insurance/webfonts/fa-solid-900.ttf similarity index 100% rename from insurance_en/webfonts/fa-solid-900.ttf rename to Excel_Wealth_Insurance/webfonts/fa-solid-900.ttf diff --git a/insurance_en/webfonts/fa-solid-900.woff b/Excel_Wealth_Insurance/webfonts/fa-solid-900.woff similarity index 100% rename from insurance_en/webfonts/fa-solid-900.woff rename to Excel_Wealth_Insurance/webfonts/fa-solid-900.woff diff --git a/insurance_en/webfonts/fa-solid-900.woff2 b/Excel_Wealth_Insurance/webfonts/fa-solid-900.woff2 similarity index 100% rename from insurance_en/webfonts/fa-solid-900.woff2 rename to Excel_Wealth_Insurance/webfonts/fa-solid-900.woff2 diff --git a/insurance_en/widget/css/all.min.css b/Excel_Wealth_Insurance/widget/css/all.min.css similarity index 100% rename from insurance_en/widget/css/all.min.css rename to Excel_Wealth_Insurance/widget/css/all.min.css diff --git a/insurance_en/widget/css/grid.css b/Excel_Wealth_Insurance/widget/css/grid.css similarity index 100% rename from insurance_en/widget/css/grid.css rename to Excel_Wealth_Insurance/widget/css/grid.css diff --git a/insurance_en/widget/css/loader.css b/Excel_Wealth_Insurance/widget/css/loader.css similarity index 100% rename from insurance_en/widget/css/loader.css rename to Excel_Wealth_Insurance/widget/css/loader.css diff --git a/insurance_en/widget/css/menu.css b/Excel_Wealth_Insurance/widget/css/menu.css similarity index 100% rename from insurance_en/widget/css/menu.css rename to Excel_Wealth_Insurance/widget/css/menu.css diff --git a/insurance_en/widget/css/modal.css b/Excel_Wealth_Insurance/widget/css/modal.css similarity index 100% rename from insurance_en/widget/css/modal.css rename to Excel_Wealth_Insurance/widget/css/modal.css diff --git a/insurance_en/widget/css/searchicon.png b/Excel_Wealth_Insurance/widget/css/searchicon.png similarity index 100% rename from insurance_en/widget/css/searchicon.png rename to Excel_Wealth_Insurance/widget/css/searchicon.png diff --git a/insurance_en/widget/css/switch.css b/Excel_Wealth_Insurance/widget/css/switch.css similarity index 100% rename from insurance_en/widget/css/switch.css rename to Excel_Wealth_Insurance/widget/css/switch.css diff --git a/insurance_en/widget/dist/fileSaver.js b/Excel_Wealth_Insurance/widget/dist/fileSaver.js similarity index 100% rename from insurance_en/widget/dist/fileSaver.js rename to Excel_Wealth_Insurance/widget/dist/fileSaver.js diff --git a/insurance_en/widget/dist/jquery.collision.js b/Excel_Wealth_Insurance/widget/dist/jquery.collision.js similarity index 100% rename from insurance_en/widget/dist/jquery.collision.js rename to Excel_Wealth_Insurance/widget/dist/jquery.collision.js diff --git a/insurance_en/widget/dist/jquery.coords.js b/Excel_Wealth_Insurance/widget/dist/jquery.coords.js similarity index 100% rename from insurance_en/widget/dist/jquery.coords.js rename to Excel_Wealth_Insurance/widget/dist/jquery.coords.js diff --git a/insurance_en/widget/dist/jquery.draggable.js b/Excel_Wealth_Insurance/widget/dist/jquery.draggable.js similarity index 100% rename from insurance_en/widget/dist/jquery.draggable.js rename to Excel_Wealth_Insurance/widget/dist/jquery.draggable.js diff --git a/insurance_en/widget/dist/jquery.gridster.css b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.css similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.css rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.css diff --git a/insurance_en/widget/dist/jquery.gridster.js b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.js similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.js rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.js diff --git a/insurance_en/widget/dist/jquery.gridster.min.css b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.min.css similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.min.css rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.min.css diff --git a/insurance_en/widget/dist/jquery.gridster.min.js b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.min.js similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.min.js rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.min.js diff --git a/insurance_en/widget/dist/jquery.gridster.with-extras.js b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.with-extras.js similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.with-extras.js rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.with-extras.js diff --git a/insurance_en/widget/dist/jquery.gridster.with-extras.min.js b/Excel_Wealth_Insurance/widget/dist/jquery.gridster.with-extras.min.js similarity index 100% rename from insurance_en/widget/dist/jquery.gridster.with-extras.min.js rename to Excel_Wealth_Insurance/widget/dist/jquery.gridster.with-extras.min.js diff --git a/insurance_en/widget/dist/jquery.min.js b/Excel_Wealth_Insurance/widget/dist/jquery.min.js similarity index 100% rename from insurance_en/widget/dist/jquery.min.js rename to Excel_Wealth_Insurance/widget/dist/jquery.min.js diff --git a/insurance_en/widget/dist/micromodal.min.js b/Excel_Wealth_Insurance/widget/dist/micromodal.min.js similarity index 100% rename from insurance_en/widget/dist/micromodal.min.js rename to Excel_Wealth_Insurance/widget/dist/micromodal.min.js diff --git a/insurance_en/widget/dist/tableau-2.7.0.min.js b/Excel_Wealth_Insurance/widget/dist/tableau-2.7.0.min.js similarity index 100% rename from insurance_en/widget/dist/tableau-2.7.0.min.js rename to Excel_Wealth_Insurance/widget/dist/tableau-2.7.0.min.js diff --git a/insurance_en/widget/dist/utils.js b/Excel_Wealth_Insurance/widget/dist/utils.js similarity index 100% rename from insurance_en/widget/dist/utils.js rename to Excel_Wealth_Insurance/widget/dist/utils.js diff --git a/insurance_en/widget/index.html b/Excel_Wealth_Insurance/widget/index.html similarity index 100% rename from insurance_en/widget/index.html rename to Excel_Wealth_Insurance/widget/index.html diff --git a/insurance_en/widget/js/main.js b/Excel_Wealth_Insurance/widget/js/main.js similarity index 100% rename from insurance_en/widget/js/main.js rename to Excel_Wealth_Insurance/widget/js/main.js diff --git a/Excel_Wealth_Insurance/widget/manufacturing.tabw b/Excel_Wealth_Insurance/widget/manufacturing.tabw new file mode 100644 index 0000000..43fed75 --- /dev/null +++ b/Excel_Wealth_Insurance/widget/manufacturing.tabw @@ -0,0 +1,9 @@ +{"_92co9tnek":"1#31#30#8#https://public.tableau.com/views/broker_en/POLICYKPI#_h0rrti2wo", +"_337hldwbt":"1#1#30#8#https://public.tableau.com/views/broker_en/OUTSTANDINGSKPI#_zktqdyq1s", +"_puietbnif":"9#1#30#8#https://public.tableau.com/views/broker_en/INFLOWSKPI#_qdccl0viu", +"_sx5tlfgsn":"9#31#30#8#https://public.tableau.com/views/broker_en/FUNDSKPI#_0tvyamf9h", +"SAMPLE_NEW":"", +"ASK_URL":"https://eu-west-1a.online.tableau.com/t/alteirac/askData/lens/nomineoAsk", +"SYNC_FILTERS":"true", +"VERSION":"1.52", +"EDIT_URL":"https://eu-west-1a.online.tableau.com/t/alteirac/authoring/broker_en/MyDash"} \ No newline at end of file diff --git a/Excel_Wealth_Insurance/widget/predefined.tabw b/Excel_Wealth_Insurance/widget/predefined.tabw new file mode 100644 index 0000000..cc2f0ec --- /dev/null +++ b/Excel_Wealth_Insurance/widget/predefined.tabw @@ -0,0 +1,11 @@ +{"Compensation":"https://public.tableau.com/views/broker_en/COMPENSATION", +"Policy KPI":"https://public.tableau.com/views/broker_en/POLICYKPI", +"Outstandings KPI":"https://public.tableau.com/views/broker_en/OUTSTANDINGSKPI", +"Inflows KPI":"https://public.tableau.com/views/broker_en/INFLOWSKPI", +"Funds KPI":"https://public.tableau.com/views/broker_en/FUNDSKPI", +"Policy":"https://public.tableau.com/views/broker_en/POLICY", +"Outstandings":"https://public.tableau.com/views/broker_en/OUTSTANDINGS", +"Inflows":"https://public.tableau.com/views/broker_en/INFLOWS", +"Funds":"https://public.tableau.com/views/broker_en/FUNDS", +"My Dashboard":"https://public.tableau.com/views/broker_en/MyDash" +} diff --git a/insurance_en/widget/webfonts/fa-brands-400.eot b/Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.eot similarity index 100% rename from insurance_en/widget/webfonts/fa-brands-400.eot rename to Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.eot diff --git a/insurance_en/widget/webfonts/fa-brands-400.svg b/Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.svg similarity index 100% rename from insurance_en/widget/webfonts/fa-brands-400.svg rename to Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.svg diff --git a/insurance_en/widget/webfonts/fa-brands-400.ttf b/Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.ttf similarity index 100% rename from insurance_en/widget/webfonts/fa-brands-400.ttf rename to Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.ttf diff --git a/insurance_en/widget/webfonts/fa-brands-400.woff b/Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.woff similarity index 100% rename from insurance_en/widget/webfonts/fa-brands-400.woff rename to Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.woff diff --git a/insurance_en/widget/webfonts/fa-brands-400.woff2 b/Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.woff2 similarity index 100% rename from insurance_en/widget/webfonts/fa-brands-400.woff2 rename to Excel_Wealth_Insurance/widget/webfonts/fa-brands-400.woff2 diff --git a/insurance_en/widget/webfonts/fa-regular-400.eot b/Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.eot similarity index 100% rename from insurance_en/widget/webfonts/fa-regular-400.eot rename to Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.eot diff --git a/insurance_en/widget/webfonts/fa-regular-400.svg b/Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.svg similarity index 100% rename from insurance_en/widget/webfonts/fa-regular-400.svg rename to Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.svg diff --git a/insurance_en/widget/webfonts/fa-regular-400.ttf b/Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.ttf similarity index 100% rename from insurance_en/widget/webfonts/fa-regular-400.ttf rename to Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.ttf diff --git a/insurance_en/widget/webfonts/fa-regular-400.woff b/Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.woff similarity index 100% rename from insurance_en/widget/webfonts/fa-regular-400.woff rename to Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.woff diff --git a/insurance_en/widget/webfonts/fa-regular-400.woff2 b/Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.woff2 similarity index 100% rename from insurance_en/widget/webfonts/fa-regular-400.woff2 rename to Excel_Wealth_Insurance/widget/webfonts/fa-regular-400.woff2 diff --git a/insurance_en/widget/webfonts/fa-solid-900.eot b/Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.eot similarity index 100% rename from insurance_en/widget/webfonts/fa-solid-900.eot rename to Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.eot diff --git a/insurance_en/widget/webfonts/fa-solid-900.svg b/Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.svg similarity index 100% rename from insurance_en/widget/webfonts/fa-solid-900.svg rename to Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.svg diff --git a/insurance_en/widget/webfonts/fa-solid-900.ttf b/Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.ttf similarity index 100% rename from insurance_en/widget/webfonts/fa-solid-900.ttf rename to Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.ttf diff --git a/insurance_en/widget/webfonts/fa-solid-900.woff b/Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.woff similarity index 100% rename from insurance_en/widget/webfonts/fa-solid-900.woff rename to Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.woff diff --git a/insurance_en/widget/webfonts/fa-solid-900.woff2 b/Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.woff2 similarity index 100% rename from insurance_en/widget/webfonts/fa-solid-900.woff2 rename to Excel_Wealth_Insurance/widget/webfonts/fa-solid-900.woff2 diff --git a/INE/css/config.css b/INE/css/config.css deleted file mode 100644 index 18b9c4b..0000000 --- a/INE/css/config.css +++ /dev/null @@ -1,12 +0,0 @@ -:root { ---Button-Text:#303030; ---Header-Text:#363636; ---Header-Background:#FFFFFF; ---Button-Background:#DEDEDE; ---Footer-Background:#C1C1C1; ---Content-Background:#ffffff; ---Content-Text:#ffffff; ---Button-Hover-Text:#ffffff; ---Footer-Text:#ffffff; ---Button-Hover-Background:#F44336; -} \ No newline at end of file diff --git a/INE/css/layout.css b/INE/css/layout.css deleted file mode 100644 index 0d9de73..0000000 --- a/INE/css/layout.css +++ /dev/null @@ -1,86 +0,0 @@ -body { - margin: 0px; -} - -.container { - display: grid; - font-family: Arial, Helvetica, sans-serif; - grid-template-areas: - "header header" - "nav content" - "footer footer"; - - grid-template-columns: 200px 1fr; - grid-template-rows: auto 1fr auto; - grid-gap: 0px; - - height: 205vh; -} - -header { - grid-area: header; - background-color: var(--Header-Background); - color: var(--Header-Text); -} - -nav { - color: var(--Header-Text); - background-color: var(--Button-Background); - grid-area: nav; -} - -main { - grid-area: content; - color: var(--Content-Text); - background-color: var(--Content-Background); -} - -footer { - grid-area: footer; -} - -.log { - max-height: 50px; - width: auto; - margin: 10px; -} - -.logo { - width: 100%; - height: 100%; - color: var(--Header-Text); - display: flex; -} - -.person { - margin: auto 20px auto auto; -} - -@media (max-width: 768px) { - .container { - grid-template-areas: - "header" - "nav" - "content" - "side" - "footer"; - - grid-template-columns: 1fr; - grid-template-rows: - auto - /* Header */ - minmax(75px, auto) - /* Nav */ - 1fr - /* Content */ - minmax(75px, auto) - /* Sidebar */ - auto; - /* Footer */ - } - - nav, - aside { - margin: 0; - } -} \ No newline at end of file diff --git a/INE/css/page.css b/INE/css/page.css deleted file mode 100644 index 87aa8ae..0000000 --- a/INE/css/page.css +++ /dev/null @@ -1,92 +0,0 @@ - -.header_right { - display: flex; - line-height: 25px; -} -.ButtonBar { - overflow: hidden; - display: flex; - font-family: Arial, Helvetica, sans-serif; - min-height: 35px; - white-space: nowrap; - flex-direction: column; - margin-top: 30px; -} - -.ButtonBar a{ - display: flex; -} -.ButtonBar a i{ - margin-right: 5px; -} -.ButtonBar a:not(.filter-entry) { - - font-size: 16px; - color: var(--Button-Text); - text-align: center; - padding-right:20px; - padding-left:20px; - height: 25px; - text-decoration: none; - padding-top: 10px; -} - -.ButtonBar a{ - transition: all 0.5s; -} -.ButtonBar a:hover { - background-color: var(--Button-Hover-Background); - color: var(--Button-Hover-Text); -} - -.divider{ - margin-top: 8px; - color:var(--Button-Background); - text-align: center; - border-top: grey; - border-top-width: 1px; - border-top-style: solid; -} -.show { - display: block!important; -} - - -.dropdown { - display: inline-block; -} - -.dropdown-content { - display: none; - position: absolute; - min-width: 160px; - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - background-color: var(--Button-Background); - z-index: 1; - max-height: 80%; - overflow: auto; -} - -/* Links inside the filter dropdown */ -.dropdown-content a { - color: var(--Button-Text); - padding: 12px 16px; - text-decoration: none; - display: block; -} - -.usrpic { - height: 30px; - margin-right: 10px; -} -.footer{ - background-color: var(--Footer-Background); - color: var(--Footer-Text); - display: flex; - line-height: 30px; - justify-content: space-between; - padding: 10px; -} -/* Change color of dropdown links on hover */ -.dropdown-content a:hover {background-color: var(--Button-Hover-Background)} - diff --git a/INE/img/tableau-white.png b/INE/img/tableau-white.png deleted file mode 100644 index da55cf0..0000000 Binary files a/INE/img/tableau-white.png and /dev/null differ diff --git a/INE/img/user.png b/INE/img/user.png deleted file mode 100644 index d7f82be..0000000 Binary files a/INE/img/user.png and /dev/null differ diff --git a/INE/index copy.html b/INE/index copy.html deleted file mode 100644 index 7e42efb..0000000 --- a/INE/index copy.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - -Tableau Example - - -
-
- -
- - - -
-
-
-
-
- - -
- - diff --git a/INE/index.html b/INE/index.html deleted file mode 100644 index 7e42efb..0000000 --- a/INE/index.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - -Tableau Example - - -
-
- -
- - - -
-
-
-
-
- - -
- - diff --git a/INE/lib/advanced.js b/INE/lib/advanced.js deleted file mode 100644 index 485a852..0000000 --- a/INE/lib/advanced.js +++ /dev/null @@ -1,262 +0,0 @@ -// YOU DON'T NEED TO WORRY ABOUT THIS -//Few explaination on each -var layout=""; -window.onresize = function(e){ - var wd=document.querySelector('body').clientWidth; - if(wd<800 && layout!="phone"){ - layout="phone"; - viz.getCurrentUrlAsync().then (function(current_url){ - var index=tab_server.indexOf(current_url.split("?")[0]); - loadVizByIndex(index,true,layout); - }) - } - if(wd>=800 && layout!=""){ - layout=""; - viz.getCurrentUrlAsync().then (function(current_url){ - var index=tab_server.indexOf(current_url.split("?")[0]); - loadVizByIndex(index,true,layout); - }) - } -}; -function showFilterBox(el){ - document.querySelector(`div[mid='${el}']`).classList.toggle("show"); - document.querySelectorAll(`.dropdown-content`).forEach((dd)=>{if(dd.getAttribute("mid")!=el)dd.classList.remove("show")}); -} -function populateFilterMenu(fil){ - var links=""; - if(fil.getAppliedValues()==null){ - console.log("this filter as no applied values :"+fil.getFieldName()); - return; - } - fil.getAppliedValues().map((val)=>{ - var found=false; - document.querySelectorAll(`[filName="${fil.getFieldName()}"]`).forEach((el)=>{ - console.log(); - if(el.text==val.value.toString()) - found=true; - }) - if(!found ){ - links+=`${val.value}`; - } - }) - var list=` - -
${fil.getFieldName()}
- -
` - if(document.querySelector(`div[mid='${fil.getFieldName()}']`)==null){ - document.getElementsByClassName("filter-container")[0].innerHTML=list+document.getElementsByClassName("filter-container")[0].innerHTML; - } - else{ - document.querySelector(`div[mid='${fil.getFieldName()}']`).innerHTML+=links; - } -} -function populateParameterMenu(param){ - var links=""; - if(param.getAllowableValues()==null){ - console.log("this param as no allowable values :"+param.getName()); - return; - } - param.getAllowableValues().map((val)=>{ - var found=false; - document.querySelectorAll(`[paramName="${param.getName()}"]`).forEach((el)=>{ - if(el.text==val.value) - found=true; - }) - if(!found ){ - links+=`${val.value}`; - } - }) - var list=` - -
${param.getName()}
- -
` - if(document.querySelector(`div[mid='${param.getName()}']`)==null){ - document.getElementsByClassName("filter-container")[0].innerHTML=list+document.getElementsByClassName("filter-container")[0].innerHTML; - } - else{ - document.querySelector(`div[mid='${param.getName()}']`).innerHTML+=links; - } -} -function getParametersForViz(index){ - workbook.getParametersAsync().then((current_param)=>{ - if(typeof(tab_all_params)!="undefined")tab_all_params[index]={parameters:current_param,viz:viz}; - current_param.map((f)=>{ - tab_param[index].map((cf)=>{ - if(cf==f.getName()){ - populateParameterMenu(f); - } - }) - }) - window.parent.restoreTexts(); - }) -} -function getFiltersForViz(index){ - activeSheet.getFiltersAsync().then((current_filter)=>{ - if(typeof(tab_all_filters)!="undefined") { - tab_all_filters[index].filters=[]; - current_filter.map((fl)=>{ - var found=false; - tab_all_filters[index].filters.map(tb=>{ - if(tb.getFieldName()==fl.getFieldName()) - found=true; - }) - if(found==false) - tab_all_filters[index].filters.push(fl) - - }) - tab_all_filters[index].viz=viz; - } - current_filter.map((f)=>{ - tab_filter[index].map((cf)=>{ - if(cf==f.getFieldName()){ - populateFilterMenu(f); - } - }) - }) - window.parent.restoreTexts(); - }) -} -function hideDropDownList(filterName){ - document.querySelector(`div[mid='${filterName}']`).classList.remove("show") -} -function hideEditAskButton(){ - document.getElementsByClassName("webedit")[0].style.display = "none"; - document.getElementsByClassName("askdata")[0].style.display = "none"; -} -function hideEditButton(){ - document.getElementsByClassName("webedit")[0].style.display = "none"; -} -function hideActionButton(){ - document.getElementsByClassName("action")[0].style.display = "none"; -} -function showActionIfExist(index){ - var ids; - tab_action.map((el,id)=>{ - if(el.key==String(index)) - ids=el; - }) - if(ids && ids.val && ids.val=="true") - document.getElementsByClassName("action")[0].style.display = "inline-flex"; -} -function showWebEditIfExist(index){ - var ids; - tab_web.map((el,id)=>{ - if(el.key==String(index)) - ids=el; - }) - if(ids && ids.val && ids.val=="true") - document.getElementsByClassName("webedit")[0].style.display = "inline-flex"; -} -function showAskButtonIfExist(index){ - var ids; - tab_ask.map((el,id)=>{ - if(el.key==String(index)) - ids=el; - }) - if(ids && ids.val && ids.val!=""){ - document.getElementsByClassName("askdata")[0].style.display = "inline-flex"; - } -} -function getElementIndexByIndex(arr,index){ - var ids=-1; - arr.map((el,id)=>{ - if(el.key==String(index)) - ids=id; - }) - return ids -} -function navigateToSheet(workbook,sheetName,index){ - workbook.activateSheetAsync(sheetName).then(()=>{ - activeSheet=workbook.getActiveSheet(); - const removeElements = (elms) => elms.forEach(el => el.remove()); - removeElements( document.querySelectorAll(".filter_dropdown") ); - getFiltersForViz(index); - getParametersForViz(index); - showWebEditIfExist(index); - showActionIfExist(index); - showAskButtonIfExist(index); - // viz.addEventListener(tableau.TableauEventName.MARKS_SELECTION, onMarksSelection); - }); -} -function getOnlyText(from, to){ - from.map((el)=>{ - if(isNaN(el) && !/^(\d+|(\.\d+))(\.\d+)?%$/.test(el)){ - if(!to.includes(el)) - to.push(el); - } - }) - return to; -} -function clearFiltersMenu(){ - const removeElements = (elms) => elms.forEach(el => el.remove()); - removeElements( document.querySelectorAll(".filter_dropdown") ); -} -function restoreImgs(){ - tab_img.map((el)=>{ - if(document.getElementById(el.key)) - document.getElementById(el.key).setAttribute('src',el.val); - }) -} -function restoreTexts(){ - tab_text.map((el)=>{ - if(document.getElementById(el.key)) - document.getElementById(el.key).innerHTML=decodeURIComponent(el.val); - }) -} -function lengthInUtf8Bytes(str) { - var m = encodeURIComponent(str).match(/%[89ABab]/g); - return str.length + (m ? m.length : 0); -} -function setViewMenuVisibility(){ - var firstIndex=[]; - tab_server.map((s,ind)=>{ - if(s==""){ - document.querySelector(`.viz[index='${ind+1}']`).style.display='none'; - } - else{ - document.querySelector(`.viz[index='${ind+1}']`).style.display='inline-flex'; - firstIndex.push(ind); - } - }) - var lower=1000; - firstIndex.map((el)=>{ - lower=Math.min(lower,el) - }) - return lower; -} -function storeLastPageload(index){ - localStorage.setItem("lastpageloaded-grid",index); -} -function getLastPageload(index){ - var id=localStorage.getItem("lastpageloaded-grid"); - if(id!=null) - return parseInt(id); - return null; - -} -function getIndexFromViz(viz){ - return new Promise((resolve,reject)=>{ - viz.getCurrentUrlAsync().then (function(current_url){ - var index=tab_server.findIndex(element => element.includes(current_url.split("?")[0])); - resolve(index); - }) - }) -} -function findElement(arr,keyVal){ - var found = arr.filter(function(item) { return item.key === keyVal.toString(); }); - return found[0] || null; -} -function initialize(){ - if(typeof(tab_img)!="undefined"){ - restoreImgs(); - restoreTexts(); - if(title_index) - document.querySelector("head title").text=title_index; - } -} \ No newline at end of file diff --git a/INE/lib/config.js b/INE/lib/config.js deleted file mode 100644 index 084cb53..0000000 --- a/INE/lib/config.js +++ /dev/null @@ -1,9 +0,0 @@ -var tab_server = ["https://public.tableau.com/views/AnlisisdeZonasTuristicasenEspaa/Gestindezonastursticas?:showVizHome=no&:embed=true","https://public.tableau.com/views/CmohacambiadolanatalidadenEspaa_16158138490250/CmohacambiadolanatalidadenEspaa?:showVizHome=no&:embed=true","https://public.tableau.com/views/MadridInDetail/MadridinDetail?:showVizHome=no&:embed=true","https://public.tableau.com/views/Qualityoflifein85Europeancities/Qualityoflifein87Europeancities?:showVizHome=no&:embed=true"]; - var tab_filter=[[],[],[],[]]; - var tab_web=[{"key":"1","val":"true"},{"key":"0","val":"true"},{"key":"2","val":"false"},{"key":"3","val":"false"}]; - var tab_ask=[{"key":"1","val":""},{"key":"2","val":""},{"key":"3","val":""},{"key":"0","val":""}]; - var tab_param=[["Zona turística principal"],[],[],[]]; - var tab_text=[{"key":"Download-Data-text","val":"Descarga"},{"key":"Viz-4-text","val":"Ciudades%20en%20Europa"},{"key":"User-text","val":"Usuario"},{"key":"Action-text","val":"Action%20"},{"key":"Viz-1-text","val":"Zonas%20tur%C3%ADsticas"},{"key":"Reset-Viz-text","val":"Restaurar"},{"key":"Filter-text-Zona turística principal","val":"Zona%20tur%C3%ADstica"},{"key":"PrivacyPolicy-text","val":"Pol%C3%ADtica%20de%20privacidad"},{"key":"Viz-3-text","val":"Detalle%20de%20Madrid"},{"key":"Viz-2-text","val":"Natalidad%20en%20Espa%C3%B1a"},{"key":"WebEdit-text","val":"Edita"},{"key":"Terms-text","val":"T%C3%A9rminos%20y%20condiciones"},{"key":"AskData-text","val":"Ask%20data%20"}]; - var tab_img=[{"key":"img-logo","val":"https://www.ine.es/menus/_b/img/logoINESocial.png"},{"key":"img-avatar","val":"https://assets.webiconspng.com/uploads/2016/12/User-Icon.png"}]; - var tab_action=[{"key":"1","val":"false"},{"key":"0","val":"false"},{"key":"2","val":"false"},{"key":"3","val":"false"}]; - var title_index="INE"; \ No newline at end of file diff --git a/INE/tableau.js b/INE/tableau.js deleted file mode 100644 index d2e90d2..0000000 --- a/INE/tableau.js +++ /dev/null @@ -1,186 +0,0 @@ -// This script contains all the Tableau JavaScript API calls needed -// The reference manual can be found here - https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_ref.htm -// The JS API Tutorial can be found here - https://help.tableau.com/samples/en-us/js_api/tutorial.htm -var viz, workbook, activeSheet, options, placeholderDiv, selectedMarks, askindex = -1; - -function loadVizInit() { - // This function kicks off the process - initialize(); - setViewMenuVisibility(); - if (getLastPageload() == null) { - loadVizByIndex(setViewMenuVisibility()); - } else { - loadVizByIndex(getLastPageload()); - } -} - -function loadVizByIndex(index, force, device = "") { - // This function simply loads each dashboard - // If all from the same workbook we can use activateSheetAsync() and method of the workbook class - // https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_ref.htm#workbook_class - // If from different workbooks we need to reload the new viz from scratch - var url = tab_server[index]; - if (url == "") - return; - hideEditAskButton(); - hideActionButton(); - var isSameWorkbook = false; - if (workbook && !force && askindex == -1) { - var sheets = workbook.getPublishedSheetsInfo(); - sheets.map((sh) => { - if (sh.getUrl() == url) { - navigateToSheet(workbook, sh.getName(), index); - isSameWorkbook = true; - } - }) - } - if (!isSameWorkbook) { - placeholderDiv = document.getElementById("tableauViz"); - options = { - device: device, - width: '100%', - height: '100%', - hideTabs: true, - hideToolbar: true, - showShareOptions: false, - onFirstInteractive: function () { - workbook = viz.getWorkbook(); - activeSheet = workbook.getActiveSheet(); - getFiltersForViz(index); - getParametersForViz(index); - showWebEditIfExist(index); - showActionIfExist(index); - showAskButtonIfExist(index); - viz.addEventListener(tableau.TableauEventName.MARKS_SELECTION, onMarksSelection); - } - } - if (url) { - loadViz(placeholderDiv, url, options); - storeLastPageload(index); - } - } - askindex = -1; -} - -function loadViz(placeholderDiv, url, options) { - // https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_concepts_initializing.htm - if (viz) - viz.dispose(); - viz = new tableau.Viz(placeholderDiv, url, options); - clearFiltersMenu(); -} - -function launchAsk() { - // This switches between view mode and Ask Data mode - if (askindex != -1) { - loadVizByIndex(askindex, true); - askindex = -1; - return; - } - var containerDiv = document.getElementById("tableauViz"); - hideEditButton() - var ask_options = { - width: '100%', - height: '100%', - }; - viz.getCurrentUrlAsync().then(function (current_url) { - var indexv = tab_server.indexOf(current_url.split("?")[0]); - askindex = indexv; - loadViz(containerDiv, tab_ask[getElementIndexByIndex(tab_ask, indexv)].val, ask_options); - }) - -} - -function launchEdit() { - // When embedding Web Edit this is the technique used - https://medium.com/@kannanmadhav/embedding-tableau-web-edit-in-a-web-application-246ff53eee76 - var containerDiv = document.getElementById("tableauViz"); - viz.getCurrentUrlAsync().then(function (current_url) { - hideEditAskButton() - edit_url = current_url.split('?')[0].replace('/views', '/authoring'); - edit_options = { - hideTabs: true, - hideToolbar: true, - width: '100%', - height: '100%', - onFirstInteractive: function () { - var iframe = document.querySelectorAll('iframe')[0]; - iframe.onload = function () { - getIndexFromViz(viz).then(function (index) { - loadVizByIndex(index, true) - }) - } - } - }; - loadViz(containerDiv, edit_url, edit_options); - }) -} - -function launchAction() { - // Obtaining data from a Tableau dashboard via event listers - // This is an example of getting data from selected marks - // https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_concepts_events.htm - if (!selectedMarks) { - window.open('http://google.com/search?q=There is no selection :-)'); - return; - } - var textOnly = getOnlyText(selectedMarks, []); - if (textOnly.length == 0) - window.open('http://google.com/search?q=There are no text values in your selection :-)'); - if (lengthInUtf8Bytes(textOnly.join(" ")) < 1024) - window.open('http://google.com/search?q=' + encodeURIComponent(textOnly.join(" "))); - else - window.open('http://google.com/search?q=' + "Too many elements in your selection :-) Please reduce !"); -} - -function onMarksSelection(marksEvent) { - getIndexFromViz(viz).then(function (index) { - if (findElement(tab_action, index) && findElement(tab_action, index).val == "true") - return marksEvent.getMarksAsync().then(reportSelectedMarks, (err) => { - alert("You don't have right to download data thus not able to see marks. Uncheck 'Actions' in the view settings") - }); - }) -} - -function reportSelectedMarks(marks) { - var curmarks = marks; - selectedMarks = []; - for (var markIndex = 0; markIndex < curmarks.length; markIndex++) { - var pairs = curmarks[markIndex].getPairs(); - for (var pairIndex = 0; pairIndex < pairs.length; pairIndex++) { - var pair = pairs[pairIndex]; - selectedMarks.push(pair.value) - } - } -} - -function applyFilter(filterName, value) { - // Filtering from the web page, pushing values into Tableau - // https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_concepts_filtering.htm - if (activeSheet.getSheetType() == tableau.SheetType.DASHBOARD) - activeSheet.getWorksheets().map((ws) => { - ws.applyFilterAsync(filterName, value, tableau.FilterUpdateType.REPLACE); - }) - else { - activeSheet.applyFilterAsync(filterName, value, tableau.FilterUpdateType.REPLACE); - } - hideDropDownList(filterName); -} - -function resetViz() { - // Action to rever the viz back to initial state - // Method of the viz class https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_ref.htm#viz_class - viz.revertAllAsync(); -} - -function dataDownload() { - // Action to rever the viz back to initial state - // Method of the viz class https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_ref.htm#viz_class - viz.showExportDataDialog(); -} - -function applyParam(paramName, value) { - // Same concept as filtering - // https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_ref.htm#changeParameterValueAsync - workbook.changeParameterValueAsync(paramName, value) - hideDropDownList(paramName); -} \ No newline at end of file diff --git a/insurance_en/widget/.DS_Store b/insurance_en/widget/.DS_Store deleted file mode 100644 index 58eede0..0000000 Binary files a/insurance_en/widget/.DS_Store and /dev/null differ diff --git a/insurance_en/widget/manufacturing.tabw b/insurance_en/widget/manufacturing.tabw deleted file mode 100644 index 94d030c..0000000 --- a/insurance_en/widget/manufacturing.tabw +++ /dev/null @@ -1,9 +0,0 @@ -{"_92co9tnek":"1#31#30#8#https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/POLICYKPI#_h0rrti2wo", -"_337hldwbt":"1#1#30#8#https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/OUTSTANDINGSKPI#_zktqdyq1s", -"_puietbnif":"9#1#30#8#https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/INFLOWSKPI#_qdccl0viu", -"_sx5tlfgsn":"9#31#30#8#https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/FUNDSKPI#_0tvyamf9h", -"SAMPLE_NEW":"", -"ASK_URL":"https://eu-west-1a.online.tableau.com/t/alteirac/askData/lens/nomineoAsk", -"SYNC_FILTERS":"true", -"VERSION":"1.52", -"EDIT_URL":"https://eu-west-1a.online.tableau.com/t/alteirac/authoring/broker_en/MyDash"} \ No newline at end of file diff --git a/insurance_en/widget/predefined.tabw b/insurance_en/widget/predefined.tabw deleted file mode 100644 index cb8e5ab..0000000 --- a/insurance_en/widget/predefined.tabw +++ /dev/null @@ -1,11 +0,0 @@ -{"Compensation":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/COMPENSATION", -"Policy KPI":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/POLICYKPI", -"Outstandings KPI":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/OUTSTANDINGSKPI", -"Inflows KPI":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/INFLOWSKPI", -"Funds KPI":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/FUNDSKPI", -"Policy":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/POLICY", -"Outstandings":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/OUTSTANDINGS", -"Inflows":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/INFLOWS", -"Funds":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/FUNDS", -"My Dashboard":"https://eu-west-1a.online.tableau.com/t/alteirac/views/broker_en/MyDash" -}