video hosting website stuck loading thumbnails
It does not load, nor does it act as a hyperlink as it should either.
It does not load, nor does it act as a hyperlink as it should either.
I have a directory structure C: Gustafson Website ⋮ scripts global.js ⋮ ⋮ TestDirector… (閱讀更多)
I have a directory structure
C:
Gustafson
Website
⋮
scripts
global.js
⋮
⋮
TestDirectory
baseUrl_test.html
⋮
In the <head> of a webpage, I determine a baseUrl for the page using the following:
<script>
// assumes website topmost directory is "Website""
( async ( ) => {
const segments = document.documentURI.split ( "/");
const index = segments.findIndex ( element =>
element == "Website" );
if ( index < 0 )
{
throw new TypeError (
"Website structure not constructed correctly" );
}
segments.length = index + 1;
let path = segments.join ( "/" );
path += "/";
window.baseUrl = path;
console.log(`${baseUrl}`);
} ) ( );
</script>
The console log displays
file:///C:/Gustafson/Website/
In the body is
<script>
console.log ( `${baseUrl}scripts/global.js` );
</script>
<script src=`${baseUrl}scripts/global.js`></script>
<script>
window.onload =
function ( )
{
Global.initialize_globals ( );
};
</script>
The console log displays
file:///C:/Gustafson/Website/scripts/global.js Loading failed for the <script> with source “file:///C:/Gustafson/Website/TestDirectory/%60$%7BbaseUrl%7Dscripts/global.js%60”. Uncaught ReferenceError: Global is not defined
onload file:///C:/Gustafson/Website/TestDirectory/baseUrl_test.html:37 EventHandlerNonNull* file:///C:/Gustafson/Website/TestDirectory/baseUrl_test.html:34
The problem is the console.log displays what is expected but the src= is using something totally different.
1] Topic list is insufficient; 2] I tried to use the share data option of <;tblshg ; > troubleshooting. It could not automatically collect data, so I returned [bac… (閱讀更多)
1] Topic list is insufficient; 2] I tried to use the share data option of <;tblshg ; > troubleshooting. It could not automatically collect data, so I returned [back icon] to the form and found the form blank. The write-up I had spent well over an hour preparing was simply GONE.
No reply needed, buy that needs a fix. how could that ever pass QA.
cant open my home page it defaults to a adblock error which I dont have