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

Merge branch 'swagger' into 'main'

aashto: add set image

See merge request !153
parents 2af77ad1 25895f38
No related branches found
No related tags found
1 merge request!153aashto: add set image
Pipeline #414605 passed
......@@ -17,8 +17,21 @@ window.onload = function() {
});
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) {
return {
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