-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into patch-14
- Loading branch information
Showing
18 changed files
with
933 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
body { | ||
background-color: #cff4fc; | ||
margin: 0; | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
.material-icons { | ||
font-size: 24px; | ||
vertical-align: middle; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta name="keywords" content="camicroscope, quip" /> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | ||
<title>Responsive Cards with Modal Expansion</title> | ||
<link rel="stylesheet" href="visualization-dashboard.css"> | ||
<link rel="stylesheet" href="../components/visualization-dashboard/navbar.css"> | ||
<link rel="stylesheet" href="../components/visualization-dashboard/cardContainer.css"> | ||
<link rel="stylesheet" href="../components/visualization-dashboard/modal.css"> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <!-- Loading Chart.js --> | ||
</head> | ||
<body> | ||
<script src="../core/Store.js"></script> | ||
<script src="../common/util.js"></script> | ||
<script type="text/javascript" src="../components/visualization-dashboard/navbar.js"></script> | ||
<script type="text/javascript" src="../components/visualization-dashboard/chartData.js"></script> | ||
<script type="text/javascript" src="../components/visualization-dashboard/chartSetup.js"></script> | ||
<script type="text/javascript" src="../components/visualization-dashboard/modal.js"></script> | ||
<script type="text/javascript" src="../components/visualization-dashboard/visualization-init.js"></script> | ||
<script> | ||
var getVisualizationData = {}; | ||
|
||
async function init() { | ||
try { | ||
console.log('Before initialization getVisualizationData:', getVisualizationData); | ||
await initialize(); // Wait for asynchronous process to complete | ||
console.log('After initialization getVisualizationData:', getVisualizationData); | ||
|
||
// After asynchronous process is complete, dynamically add other scripts | ||
loadScripts(); | ||
} catch (error) { | ||
console.error('Error:', error); | ||
} | ||
} | ||
|
||
function loadScripts() { | ||
const scripts = [ | ||
'../components/visualization-dashboard/cardContainer.js' | ||
]; | ||
|
||
// Manage script loading with Promises | ||
const loadScriptPromises = scripts.map(src => { | ||
return new Promise((resolve, reject) => { | ||
const script = document.createElement('script'); | ||
script.type = "text/javascript"; | ||
script.src = src; | ||
script.onload = () => { | ||
// console.log(`${src} loaded successfully.`); | ||
resolve(); | ||
}; | ||
script.onerror = () => { | ||
reject(new Error(`Failed to load script ${src}`)); | ||
}; | ||
document.body.appendChild(script); | ||
}); | ||
}); | ||
|
||
// Execute after all scripts have been loaded | ||
Promise.all(loadScriptPromises) | ||
.then(() => { | ||
// console.log('All scripts loaded successfully'); | ||
}) | ||
.catch(error => { | ||
console.error('Error loading scripts:', error); | ||
}); | ||
} | ||
|
||
// Execute init function after the page has loaded | ||
document.addEventListener('DOMContentLoaded', init); | ||
</script> | ||
<script> | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.