Skip to content

Commit 4ba984e

Browse files
committed
refactor: reordered file structure to centralize web-page elements.
1 parent 50e1c69 commit 4ba984e

10 files changed

Lines changed: 6 additions & 6 deletions

File tree

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
-->
1515
<link rel="stylesheet" href="https://pyscript.net/releases/2025.8.1/core.css" />
1616
<!-- External (local) CSS stylesheet, with multiple external CSS links. ORDER MATTERS! 'https://www.programminghead.com/how-to-link-multiple-css-style-sheets-in-html'. -->
17-
<link rel="stylesheet" href="rsrcs/io_inputs/app/config/css_styles/style-loading_splashscreen.css">
18-
<link rel="stylesheet" href="rsrcs/io_inputs/app/config/css_styles/style.css">
17+
<link rel="stylesheet" href="rsrcs/io_inputs/app/config/web_pages/_style-loading_splashscreen.css">
18+
<link rel="stylesheet" href="rsrcs/io_inputs/app/config/web_pages/index-style.css">
1919
<!--
2020
Script call; e.g. this js script tag bootstraps PyScript.
2121
- NOTE: threated as deferred script. Ref. 'https://stackoverflow.com/questions/436411/where-should-i-put-script-tags-in-html-markup/24070373#24070373'.
@@ -29,7 +29,7 @@
2929
- 'module' scripts: 'https://neerajdana.medium.com/understanding-type-module-in-javascript-a-comprehensive-guide-ebb13926da7a'.
3030
- 'module' vs. 'non-module' scripts: 'https://neerajdana.medium.com/understanding-type-module-in-javascript-a-comprehensive-guide-ebb13926da7a'.
3131
-->
32-
<script type="module" src="rsrcs/io_inputs/app/config/code_functionalities/app-loading_splashscreen.js"></script>
32+
<script type="module" src="rsrcs/io_inputs/app/config/web_pages/_app-loading_splashscreen.js"></script>
3333
</head>
3434
<body>
3535
<!-- Main dialog (as 'modal', defined in js module 'app-loading_splashscreen.js'), what appears 1st as sson as web page is loaded. -->
@@ -39,8 +39,8 @@ <h1>Loading...</h1>
3939
<main>
4040
<nav class="main-nav">
4141
<div class="main-nav-header">
42-
<!-- '/' in 'href' redirects to ROOT / HOME vs. '#' thta redirects to TOP of CURRENT PAGE (causing scrolling): 'https://stackoverflow.com/questions/17772692/what-does-it-means-when-there-is-fowards-slash-after-a-href/17772747#17772747', 'https://www.w3schools.com/tags/att_a_href.asp'. -->
43-
<a href="/"><img class="main-nav-header-logo" src="./rsrcs/media/img-logo.png" /></a>
42+
<!-- '/' in 'href' redirects to ROOT vs. '#' that redirects to TOP of CURRENT PAGE (causing scrolling): 'https://stackoverflow.com/questions/17772692/what-does-it-means-when-there-is-fowards-slash-after-a-href/17772747#17772747', 'https://www.w3schools.com/tags/att_a_href.asp'. -->
43+
<a href="/"><img class="main-nav-header-logo" src="rsrcs/media/img-logo.png" /></a>
4444
<!-- Blank 'href' REFRESH CURRENT PAGE; i.e. act as hyperlink to CURRENT PAGE: 'https://stackoverflow.com/questions/4855168/what-is-href-and-why-is-it-used/21397285#21397285'. -->
4545
<a class="main-nav-header-title" href="">Antigravity</a>
4646
</div>
@@ -129,7 +129,7 @@ <h2>Example with 'pyscript.display': display date and time. DOESN'T USE 'target=
129129
</section>
130130
<section class="main-pyscript">
131131
<b>Based on xkcd: antigravity <a href="https://xkcd.com/353/" target="_blank">https://xkcd.com/353/</a>.</b>
132-
<script type="py" src="rsrcs/io_inputs/app/config/code_functionalities/main.py" config="rsrcs/io_inputs/app/config/code_imports/main-pyscript.json" defer></script>
132+
<script type="py" src="rsrcs/io_inputs/app/config/imports/main.py" config="rsrcs/io_inputs/app/config/imports/main-pyscript.json" defer></script>
133133
<!--
134134
TODO: investigate how to redirect output to an html element.
135135
- So far, un-successful; e.g. use 'svg' element.

rsrcs/io_inputs/app/config/code_imports/.gitkeep

Whitespace-only changes.

rsrcs/io_inputs/app/config/css_styles/.gitkeep

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

rsrcs/io_inputs/app/config/code_imports/main-pyscript.json renamed to rsrcs/io_inputs/app/config/imports/main-pyscript.json

File renamed without changes.
File renamed without changes.

rsrcs/io_inputs/app/config/code_functionalities/app-loading_splashscreen.js renamed to rsrcs/io_inputs/app/config/web_pages/_app-loading_splashscreen.js

File renamed without changes.

rsrcs/io_inputs/app/config/css_styles/style-loading_splashscreen.css renamed to rsrcs/io_inputs/app/config/web_pages/_style-loading_splashscreen.css

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)