Skip to content
Snippets Groups Projects
Commit f5226770 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13504 : unify logos and icons : eln ui part

parent cd635d47
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Showing
with 43 additions and 5 deletions
...@@ -14,10 +14,24 @@ var loadJSResorce = function(pathToResource, onLoad) { ...@@ -14,10 +14,24 @@ var loadJSResorce = function(pathToResource, onLoad) {
var setFavicons = function(img) { var setFavicons = function(img) {
var head = document.getElementsByTagName('head')[0]; var head = document.getElementsByTagName('head')[0];
var iconLink= document.createElement('link');
iconLink.setAttribute('rel', 'icon'); if(_.isString(img)){
iconLink.setAttribute('href', img); var iconLink= document.createElement('link');
head.appendChild(iconLink); iconLink.setAttribute('rel', 'icon');
iconLink.setAttribute('href', img);
head.appendChild(iconLink);
}else if(_.isObject(img)){
Object.keys(img).forEach(function(linkKey){
var linkDefinition = img[linkKey]
var linkElement = document.createElement('link');
if(_.isObject(linkDefinition)){
Object.keys(linkDefinition).forEach(function(attributeName){
linkElement.setAttribute(attributeName, linkDefinition[attributeName]);
})
head.appendChild(linkElement);
}
})
}
}; };
var setHelp = function(url) { var setHelp = function(url) {
...@@ -42,7 +56,12 @@ var onLoadInstanceProfileResorceFunc = function() { ...@@ -42,7 +56,12 @@ var onLoadInstanceProfileResorceFunc = function() {
//<PROFILE_PLACEHOLDER> //<PROFILE_PLACEHOLDER>
loadJSResorce("./etc/InstanceProfile.js", onLoadInstanceProfileResorceFunc); loadJSResorce("./etc/InstanceProfile.js", onLoadInstanceProfileResorceFunc);
setFavicons("./img/favicon.ico"); setFavicons({
appleTouchIcon : { href : "./img/apple-touch-icon.png", rel: "apple-touch-icon", sizes: "180x180" },
favicon32 : { href : "./img/favicon-32x32.png", rel: "icon", type: "image/png", sizes: "32x32" },
favicon16 : { href : "./img/favicon-16x16.png", rel: "icon", type: "image/png", sizes: "16x16" },
manifest : { href : "./site.webmanifest", rel: "manifest" }
});
//</PROFILE_PLACEHOLDER> //</PROFILE_PLACEHOLDER>
var PLUGINS_CONFIGURATION = { var PLUGINS_CONFIGURATION = {
......
ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico

4.44 KiB | W: | H:

ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico

15 KiB | W: | H:

ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico
ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico
ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico
ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
{
"name": "openBIS ELN UI",
"short_name": "ELN UI",
"icons": [
{
"src": "img/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "img/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment