Skip to content
Snippets Groups Projects
Commit 386e649f authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

set images

parent e0346cdc
No related branches found
No related tags found
1 merge request!223Lambda
...@@ -16,8 +16,21 @@ window.onload = function() { ...@@ -16,8 +16,21 @@ window.onload = function() {
}); });
window.ui = ui; window.ui = ui;
setImage('logo-img', './drupal/images/logo.b64', 'src');
setImage('banner-img', './uswds/img/us_flag_small.b64', 'src');
setImage('icon', './favicon.b64', 'href');
}; };
function setImage(id, path, attr) {
fetch(path)
.then(res => res.text())
.then(text => {
const el = document.getElementById(id);
el.setAttribute(attr, text);
});
}
function updateContextPath(contextPath) { function updateContextPath(contextPath) {
return { return {
statePlugins: { statePlugins: {
......
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