Skip to content

Commit

Permalink
add mas app switch / 17.06 first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-armour committed Oct 18, 2019
1 parent 15b0fa7 commit 7ef7791
Show file tree
Hide file tree
Showing 162 changed files with 22,388 additions and 292 deletions.
532 changes: 270 additions & 262 deletions spider-gbxml-viewer/v-0-17-05/app-viewer/spider-gbxml-viewer-dev.html

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions spider-gbxml-viewer/v-0-17-05/app-viewer/spider-gbxml-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<meta charset="utf-8">
<meta name="copyright" content="Ladybug Tools authors">
<meta name="date" content="2019-10-11">
<meta name="date" content="2019-10-17">
<meta name="description" content="JavaScript utilities to help you identify and fix common errors in gbXML files">
<meta name="keywords" content="gbXML,Three.js,WebGL,JavaScript,GitHub,FOSS">
<meta name="version" content="0.17.05-0">
Expand All @@ -17,10 +17,10 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-129035557-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
function gtag() { dataLayer.push( arguments ); }
gtag( 'js', new Date() );

gtag('config', 'UA-129035557-5');
gtag( 'config', 'UA-129035557-5' );
</script>


Expand All @@ -47,6 +47,7 @@

<!--TooToo ~ menus generally -->
<script src="pop-popup/pop-popup.js"></script>
<script src="mnu-menu/mas-menu-app-switch.js"></script>
<script src="mnu-menu/mnu-menu.js"></script>


Expand Down Expand Up @@ -149,6 +150,8 @@

<header>

<h3 id="MNUdivAppSwitch"></h3>

<div id="MNUdivHeader"></div>

</header>
Expand Down Expand Up @@ -384,11 +387,11 @@

THMdivMenuThemeSelect.innerHTML = THM.getMenuThemeSelect();

THM.init();


// Menu header

MNUdivAppSwitch.innerHTML = MAS.getAppSwitch;

MNUdivHeader.innerHTML = MNU.getNavHeader();


Expand Down Expand Up @@ -447,10 +450,13 @@

MNUdivFooterPopup.innerHTML = MNU.getNavFooterPopup();


POP.init();

PIN.init();



FOB.onHashChange();


Expand All @@ -461,12 +467,17 @@
toggleNavPanel();
POP.setPopupShowHide( butPopupClose, ' ', POP.footer );

THM.init();

} else {

POP.setPopupShowHide();
THM.init();

}



}


Expand Down
67 changes: 67 additions & 0 deletions spider-gbxml-viewer/v-0-17-05/mnu-menu/mas-menu-app-switch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@


MAS = {}


MAS.arrApps = [

{
text: "Ladybug Tools home page", url: "https://www.ladybug.tools",
title: "free computer applications that support environmental design and education"
},
{
text: "Ladybug Tools GitHub", url: "https://github.com/ladybug-tools",
title: "Source code repositories"
},
{
text: "gbXML.org home page", url: "http://www.gbxml.org",
title: "Green Building XML (gbXML) is the language of buildings ... allowing disparate building design software tools to all communicate with one another."
},
{
text: "gbXML.org Schema", url: "http://www.gbxml.org/schema_doc/6.01/GreenBuildingXML_Ver6.01.html",
title: "Version 6.01 of the gbXML schema"
},
{
text: "Spider home page", url: "https://www.ladybug.tools/spider/",
title: "3D interactive analysis in your browser mostly written around the Three.js JavaScript library"
},
{
text: "Spider gbXML Viewer R12 Aragog", url: "https://https://www.ladybug.tools/spider/gbxml-viewer/",
title: "A popular release"
},
{
text: "Spider gbXML Viewer R14", url: "https://www.ladybug.tools/spider/gbxml-viewer/r14/aragog-shortcut.html",
title: "An interesting release"
},
{
text: "Spider gbXML tools", url: "https://www.ladybug.tools/spider-gbxml-tools/",
title: "Home page for yools to help you find, load, examine and edit gbXML files - in large numbers and sizes"
},
{
text: "Spider gbXML Viewer v0.17 Atrax stable", url: "https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/",
title: "Mission: run a series of basic checks on gbXML files to identify, report and help you fix any issues."
},
{
text: "Spider gbXML Viewer v0.17 beta", url: "https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/dev/",
title: "Latest development release - still under development - may have issues"
},
{
text: "Spider gbXML Fixer", url: "https://www.ladybug.tools/spider-gbxml-fixer/",
title: "Scripts to help you load and manage gbXML files"
},
{
text: "Radiance Online home page", url: "https://www.radiance-online.org/",
title: "Radiance is a suite of programs for the analysis and visualization of lighting in design."
},
{
text: "Spider RAD viewer", url: "https://www.ladybug.tools/spider-rad-viewer/rad-viewer",
title: "View Radiance RAD files in interactive 3D in your browser using the Three.js JavaScript library"
},

];

MAS.optApps = MAS.arrApps.map( item => `<option value="${item.url}" title="${item.title}" >${item.text}</option>` )
.join( "" )

MAS.getAppSwitch = `<select oninput=window.location.href=this.value >${MAS.optApps}</select>`;

89 changes: 89 additions & 0 deletions spider-gbxml-viewer/v-0-17-05/mnu-menu/menu-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!doctype html>
<html lang = "en" >
<head>
<meta charset = "utf-8" >
<meta name = "viewport" content= "width=device-width, initial-scale=1" >
<meta name = "description" content = "Basic TooToo HTML template" >
<meta name = "keywords" content = "JavaScript,GitHub,FOSS" >
<meta name = "date" content = "2019-09-21" >
<meta name = "version" content = "0.00.0" >
<title></title>
<style>

* { box-sizing: border-box; }

:root { font: 12pt monospace; --mnu-width: 22rem; --screen-width: calc( 100vw ); --headerHeight: 6rem; }

html { height: 100%; }

body { margin: 0 auto; max-width: 800px; padding: 0 0.5rem; }

a { color: crimson; text-decoration: none; }
a:hover, a:focus, a:active { background-color: yellow; color: #aaa; text-decoration: underline }

button, input[type=button] { background-color: #ddd; border: none; color: #322; cursor: pointer; padding: 3px 5px; }
button:hover { background: #ccc; color: #fff }


main { border: 0px; height: 100%; left: var( --mnu-width ); margin: 0;
padding: 0 1rem; position: absolute; width: calc( 100% - var( --mnu-width ) ); }

#navMenu { background-color: #eee; left: 0; margin: 0; padding: 0 1rem;
position: absolute; top: 0; width: var( --mnu-width ); }


</style>
</head>
<body>
<script src="mas-menu-app-switch.js" ></script>
<script src="mnu-menu.js" ></script>


<nav id="navMenu" >

<details open>

<summary class="sumMenuTitle" >Menu bar header</summary>

<header>

<h3 id="MNUdivAppSwitch" ></h3>

<div id="MNUdivHeader" ></div>

</header>

</details>

</nav>

<main>

<div id="divContents" ></div>

</main>


<script>

const urlSourceCode = "https://github.com/zzzzz/xxxxx.html";
const urlSourceCodeIcon = "https://pushme-pullyou.github.io/github-mark-32.png";

init();

function init() {


MNUdivAppSwitch.innerHTML = MAS.getAppSwitch;

MNUdivHeader.innerHTML = MNU.getNavHeader();

divContents.innerHTML += `${ ( new Date ) }<p>lorem ipsum, quia dolor sit, amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?</p>`;

}



</script>
</body>
</html>
23 changes: 0 additions & 23 deletions spider-gbxml-viewer/v-0-17-05/mnu-menu/mnu-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,6 @@ MNU.footerPopupUrl = "https://www.ladybug.tools/spider/";
MNU.footerTarget = "target=_blank";
MNU.footerIssues = "https://github.com/ladybug-tools/spider-gbxml-tools/issues";

MNU.arrApps = [

{ text: "Ladybug Tools home page", url: "https://www.ladybug.tools", title: "free computer applications that support environmental design and education" },
{ text: "Ladybug Tools GitHub", url: "https://github.com/ladybug-tools", title: "Source code repositories" },
{ text: "gbXML.org home page", url: "http://www.gbxml.org", title: "Green Building XML (gbXML) is the language of buildings ... allowing disparate building design software tools to all communicate with one another." },
{ text: "gbXML.org Schema", url: "http://www.gbxml.org/schema_doc/6.01/GreenBuildingXML_Ver6.01.html", title: "Version 6.01 of the gbXML schema" },
{ text: "Spider home page", url: "https://www.ladybug.tools/spider/", title: "3D interactive analysis in your browser mostly written around the Three.js JavaScript library" },
{ text: "Spider gbXML Viewer R12 Aragog", url: "https://https://www.ladybug.tools/spider/gbxml-viewer/", title: "A popular release" },
{ text: "Spider gbXML Viewer R14", url: "https://www.ladybug.tools/spider/gbxml-viewer/r14/aragog-shortcut.html", title: "An interesting release" },
{ text: "Spider gbXML tools", url: "https://www.ladybug.tools/spider-gbxml-tools/", title: "Home page for yools to help you find, load, examine and edit gbXML files - in large numbers and sizes" },
{ text: "Spider gbXML Viewer v0.17 Atrax stable", url: "https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/", title: "Mission: run a series of basic checks on gbXML files to identify, report and help you fix any issues." },
{ text: "Spider gbXML Viewer v0.17 beta", url: "https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/dev/", title: "Latest development release - still under development - may have issues" },
{ text: "Spider gbXML Fixer", url: "https://www.ladybug.tools/spider-gbxml-fixer/", title: "Scripts to help you load and manage gbXML files" },
{ text: "Radiance Online home page", url: "https://www.radiance-online.org/", title: "Radiance is a suite of programs for the analysis and visualization of lighting in design." },
{ text: "Spider RAD viewer", url: "https://www.ladybug.tools/spider-rad-viewer/rad-viewer", title: "View Radiance RAD files in interactive 3D in your browser using the Three.js JavaScript library" },

].map( item => `<option value="${ item.url}" title="${ item.title }" >${ item.text }</option>`).join( "" )

//////////

MNU.getNavHeader = function() {
Expand All @@ -94,11 +76,6 @@ MNU.getNavHeader = function() {
`
<div>
<h3 style="padding: 1rem 0;">
<select oninput=window.location.href=this.value >${ MNU.arrApps }</select>
</h3>
<h2>
<a href=${ MNU.urlSourceCode } ${ MNU.target } title="Source code on GitHub" >
${ MNU.urlSourceCodeIcon }
Expand Down
2 changes: 1 addition & 1 deletion spider-gbxml-viewer/v-0-17-05/thm-theme/thm-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ THM.init = function() {
THM.themeUrl = localStorage.getItem( THM.themeUrlStorage ) || "";

THMcssCurrent.value = THM.themeUrl;
console.log( "THM.themeUrl", THM.themeUrl );
//console.log( "THM.themeUrl", THM.themeUrl );

if ( THM.themeUrl.includes( "w3schools" ) ) {

Expand Down
68 changes: 68 additions & 0 deletions spider-gbxml-viewer/v-0-17-06/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

<span style=display:none; >[You are now in a GitHub source code view - click this link to view Read Me file as a web page]( https://www.ladybug.tools/spider-gbxml-tools/#spider-gbxml-viewer/README.md "View file as a web page." ) </span>

<div><input type=button onclick="window.location.href='https://github.com/ladybug-tools/spider-gbxml-tools/tree/master/spider-gbxml-viewer/'";
value='You are now in a GitHub web page view - Click this button to view this read me file as source code' ></div>

<br>

# [Spider gbXML Viewer 'Maevia' Read Me]( #spider-gbxml-viewer/README.md )


<iframe src=https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/dev/index.html width=100% height=500px >Iframes are do not render in GitHub source code views</iframe>
<div style=display:none; >
<img src=https://www.ladybug.tools/spider-gbxml-tools/images/sgv-0-17-02.png >
</div>

_Spider gbXML Viewer 'Maevia'_



## Stable version: [Spider gbXML Viewer 'Maevia' ]( https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/ "Click me to run the stable app" )

Or copy this link: https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/


## Development Version: [Spider gbXML Viewer Dev ]( https://www.ladybug.tools/spider-gbxml-tools/spider-gbxml-viewer/dev/ "Click me to run the latest app" )



<details>

<summary>To Do / Wish List</summary>

* Embed the help buttons inside the details
* jsHint all the files
* Make sure all
* report number of items found
* input type=search
* create core script?
* help
* select index
* select surfaces show hide
* Add openType script
* Try in OpenStudio

</details>

<details>

<summary>Issues</summary>


</details>

<details>

<summary>Change Log</summary>

### 2019-10-03 ~ Theo

v0.17.04-0

* F: First commit
* D: Update to three.js r109 - seems OK



</details>
Loading

0 comments on commit 7ef7791

Please sign in to comment.