55 < meta charset ='UTF-8 '>
66 < title > solid-ui UI.widgets.header examples page</ title >
77 < script type ="text/javascript " src ="../../lib/webpack-bundle.js "> </ script >
8- < script type ="text/javascript " src ="../../lib/authn/authn.js "> </ script >
9- < script >
8+ < script type ="text/javascript " src ="../../lib/index.js "> </ script > < script >
109 const $ = document . querySelector . bind ( document )
1110 function showSource ( widgetName ) {
1211 $ ( `#viewSource-${ widgetName } ` ) . innerHTML = $ ( `#script-${ widgetName } ` ) . innerText
@@ -25,11 +24,11 @@ <h2 id="header"><a href="#header">Header</a>
2524 < div id ="webId "> </ div >
2625 < div id ="loginBanner "> </ div >
2726 < script >
28- loginBanner . appendChild ( authn . loginStatusBox ( document , null , { } ) ) ;
27+ loginBanner . appendChild ( UI . login . loginStatusBox ( document , null , { } ) ) ;
2928
3029 async function finishLogin ( ) {
31- await authn . authSession . handleIncomingRedirect ( ) ;
32- const session = authn . authSession ;
30+ await UI . solidLogicLib . authSession . handleIncomingRedirect ( ) ;
31+ const session = UI . solidLogicLib . authSession ;
3332 if ( session . info . isLoggedIn ) {
3433 // Update the page with the status.
3534 webId . innerHTML = "Logged in as: " + authn . currentUser ( ) . uri ;
@@ -82,7 +81,7 @@ <h2 id="header"><a href="#header">Header</a>
8281 window . addEventListener ( 'DOMContentLoaded' , async ( ) => {
8382 try {
8483 options = { menuList : [ { label : "Testing Button" , onclick : ( ) => { alert ( 'hello' ) } } , { label : "Testing Link" , url : 'https://reflectechblog.wordpress.com/' } ] }
85- await UI . initHeader ( UI . store , options )
84+ await UI . initHeader ( UI . solidLogicLib . store , options )
8685 } catch ( error ) {
8786 window . alert ( `Error loading header. You need to have a div with id = PageHeader on your page.` )
8887 }
0 commit comments