Commit 96bd1735 authored by malzer's avatar malzer
Browse files

Fix embed version

parent 26dcec00
......@@ -3,11 +3,12 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/png" href="https://res.de.dariah.eu/dhrep/img/page_icon.png" />
<link rel="stylesheet" href="https://dariah-de.github.io/status/dariah/embed.css" />
<link rel="stylesheet" href="../PLATIN/css/platin.css" type="text/css" />
<title>DARIAH-DE Geo-Browser Embedded Mode</title>
<style type="text/css">
.tableTabs {
overflow: hidden !important;
}
<script src="../PLATIN/lib/jquery/jquery.min.js"></script>
<script src="../PLATIN/platin.js"></script>
<style>
#plotContainerDiv {
width: 100%;
height: 200px;
......@@ -20,11 +21,6 @@
}
</style>
<script src="../js/matomo.js"></script>
<script src="../PLATIN/js/Util/Publisher.js"></script>
<script src="../PLATIN/js/Build/Loader/DynaJsLoader.js"></script>
<script src="../PLATIN/js/Build/Loader/Loader.js"></script>
</head>
<body>
<noscript>
......@@ -47,34 +43,7 @@
<div id="tableContainerDiv" style="position:relative;"></div>
</div>
<script>
Publisher.Subscribe( 'GeoTemCoReady', this, function(){
var datasets = [];
var mapDiv = document.getElementById("mapContainerDiv");
var map = new WidgetWrapper();
var mapWidget = new MapWidget(map,mapDiv,{
mapTitle: "Locations"
});
var timeDiv = document.getElementById("plotContainerDiv");
var time = new WidgetWrapper();
var timeWidget = new FuzzyTimelineWidget(time,timeDiv,{
timeTitle: "Publication date"
});
timeWidget.options.timelineMode = 'stacking';
var tableDiv = document.getElementById("tableContainerDiv");
var table = new WidgetWrapper();
var tableWidget = new TableWidget(table,tableDiv);
var dataloaderDiv = document.getElementById("dataloaderContainerDiv");
var dataloader = new WidgetWrapper();
var dataloaderWidget = new DataloaderWidget(dataloader,dataloaderDiv);
var overlayloaderDiv = document.getElementById("overlayloaderContainerDiv");
var overlayloader = new WidgetWrapper();
var overlayloaderWidget = new OverlayloaderWidget(overlayloader,overlayloaderDiv);
overlayloaderWidget.attachMapWidget(mapWidget);
var storytellingDiv = document.getElementById("storytellingContainerDiv");
var storytelling = new WidgetWrapper();
var storytellingWidget = new StorytellingWidget(storytelling,storytellingDiv);
dataloaderWidget.loadFromURL();
});
</script>
</body>
</html>
......@@ -42,7 +42,7 @@ module.exports = merge(baseConfig, {
template: './embed/index.html',
filename: 'embed/index.html',
inject: 'head',
chunks: ['embed'],
chunks: ['main'],
version: version
}),
]
......
......@@ -19,7 +19,6 @@ module.exports = {
'./edit/js/dariah.utils.js', './edit/js/dariah.workflow.conf.js', './edit/js/dariah.storage.js',
'./js/dariah.geobro.js'],
"edit": ['./js/dariah.geobro.conf.js', './js/sessionStorageWrapper.js'].concat(glob.sync("./edit/js/*.js")),
"embed": ['./js/dariah.geobro.conf.js', './js/sessionStorageWrapper.js'],
},
output: {
filename: "[name].js",
......@@ -34,7 +33,6 @@ module.exports = {
{ from: "./PLATIN/lib", to: path.resolve(__dirname, './dist/PLATIN/lib') },
{ from: "./PLATIN/data", to: path.resolve(__dirname, './dist/PLATIN/data') },
{ from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./PLATIN/php", to: path.resolve(__dirname, './dist/PLATIN/php') },
{ from: "./css", to: path.resolve(__dirname, './dist/css') },
{ from: "./edit/css", to: path.resolve(__dirname, './dist/edit/css') },
......
......@@ -39,7 +39,7 @@ module.exports = merge(baseConfig, {
template: './embed/index.html',
filename: 'embed/index.html',
inject: 'head',
chunks: ['embed'],
chunks: ['main'],
version: version
}),
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment