2016-02-08 10:20:05 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- saved from url=(0054)http://leafletjs.com/examples/quick-start-example.html -->
|
|
|
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
2016-04-13 11:24:19 -05:00
|
|
|
<title>Online Editor</title>
|
2016-02-08 10:20:05 -06:00
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
2016-04-20 05:50:14 -05:00
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/leaflet.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/selectionMarkers.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/loleaflet.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/partsPreviewControl.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/scrollBar.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/searchControl.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/spreadsheet.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/branding.css"> <!-- add your logo here -->
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/plugins/draw-0.2.4/dist/leaflet.draw.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/scrollbar/jquery.mCustomScrollbar.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/contextMenu/jquery.contextMenu.css">
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/dialog/vex.css" />
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/dialog/vex-theme-plain.css" />
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar/w2ui.min.css" />
|
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar/select2.min.css" />
|
2016-05-17 07:28:55 -05:00
|
|
|
<link rel="stylesheet" href="/loleaflet/dist/smartmenus/sm-core-css.css" />
|
|
|
|
<link rel="stylesheet" href="/loleaflet/dist/smartmenus/sm-simple.css" />
|
2016-03-20 05:59:32 -05:00
|
|
|
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/ui-lightness/jquery-ui.css">
|
2016-04-20 05:50:14 -05:00
|
|
|
<link rel="stylesheet" href="/loleaflet/%VERSION%/toolbar/evol.colorpicker.min.css">
|
|
|
|
<link rel="localizations" href="/loleaflet/%VERSION%/l10n/localizations.json" type="application/vnd.oftn.l10n+json"/>
|
|
|
|
<link rel="localizations" href="/loleaflet/%VERSION%/l10n/styles-localizations.json" type="application/vnd.oftn.l10n+json" />
|
2016-05-20 11:13:44 -05:00
|
|
|
<link rel="localizations" href="/loleaflet/%VERSION%/l10n/uno-localizations.json" type="application/vnd.oftn.l10n+json" />
|
2016-02-08 10:20:05 -06:00
|
|
|
<style type="text/css"></style></head>
|
|
|
|
<body>
|
2016-03-20 05:59:32 -05:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
|
2016-04-20 05:50:14 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/l10n/json2.min.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/l10n/l10n.min.js"></script>
|
2016-05-23 17:17:44 -05:00
|
|
|
<script>var _ = function (string) {return string.toLocaleString();};</script>
|
2016-04-20 05:50:14 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/toolbar/w2ui.min.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/toolbar/select2.min.js"></script>
|
2016-02-08 10:20:05 -06:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>
|
2016-04-20 05:50:14 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/toolbar/evol.colorpicker.min.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/toolbar/jquery.simplemodal.1.4.4.min.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/leaflet-src.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/plugins/draw-0.2.4/dist/leaflet.draw.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/scrollbar/jquery.mCustomScrollbar.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/contextMenu/jquery.contextMenu.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/contextMenu/jquery.ui.position.min.js"></script>
|
2016-05-17 07:28:55 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/smartmenus/jquery.smartmenus.js"></script>
|
2016-04-20 05:50:14 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/dialog/vex.combined.min.js"></script>
|
|
|
|
<script src="/loleaflet/%VERSION%/branding.js"></script> <!-- logo onclick handler -->
|
2016-02-08 10:20:05 -06:00
|
|
|
<script>vex.defaultOptions.className = 'vex-theme-plain';</script>
|
2016-05-23 15:32:56 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/errormessages.js"></script>
|
2016-02-08 10:20:05 -06:00
|
|
|
|
|
|
|
<!--The "controls" div holds map controls such as the Zoom button and
|
|
|
|
it's separated from the map in order to have the controls on the top
|
|
|
|
of the page all the time.
|
|
|
|
|
|
|
|
The "document-container" div is the actual display of the document, is
|
|
|
|
what the user sees and it should be no larger than the screen size.
|
|
|
|
|
|
|
|
The "map" div is the actual document and it has the document's size
|
|
|
|
and width, this being inside the smaller "document-container" will
|
|
|
|
cause the content to overflow, creating scrollbars -->
|
|
|
|
<div id="logo" class="logo"></div>
|
|
|
|
<div>
|
|
|
|
<div id="toolbar" style="visibility: hidden;"></div>
|
|
|
|
<div id="toolbar-up"></div>
|
|
|
|
<div id="formulabar"></div>
|
|
|
|
<div id="toolbar-up-more"></div>
|
|
|
|
</div>
|
|
|
|
<input id="insertgraphic" type="file" onchange="onInsertFile()" style="position: fixed; top: -100em">
|
|
|
|
|
|
|
|
<div id="document-container">
|
|
|
|
<div id="map"></div>
|
|
|
|
</div>
|
2016-02-22 03:36:45 -06:00
|
|
|
<div id="spreadsheet-toolbar"></div>
|
2016-04-29 10:55:00 -05:00
|
|
|
<div id="presentation-toolbar"></div>
|
2016-02-08 10:20:05 -06:00
|
|
|
<div id="toolbar-down"></div>
|
|
|
|
|
2016-04-19 03:09:44 -05:00
|
|
|
<script>
|
2016-02-08 10:20:05 -06:00
|
|
|
|
2016-04-13 11:24:19 -05:00
|
|
|
function getParameterByName(name) {
|
|
|
|
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
|
|
|
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
|
|
|
|
results = regex.exec(location.search);
|
|
|
|
return results === null ? "" : results[1].replace(/\+/g, " ");
|
|
|
|
}
|
|
|
|
|
|
|
|
var wopiSrc = getParameterByName('WOPISrc');
|
|
|
|
var access_token = '%ACCESS_TOKEN%';
|
|
|
|
if (wopiSrc !== '' && access_token !== '') {
|
|
|
|
wopiSrc += '?access_token=' + access_token;
|
|
|
|
}
|
|
|
|
|
|
|
|
var filePath = getParameterByName('file_path');
|
|
|
|
var title = getParameterByName('title');
|
2016-04-01 11:03:32 -05:00
|
|
|
if (title === '') {
|
|
|
|
title = decodeURIComponent(filePath.substring(filePath.lastIndexOf('/')+1));
|
2016-04-01 07:50:08 -05:00
|
|
|
}
|
2016-04-13 11:24:19 -05:00
|
|
|
|
|
|
|
var host = '%HOST%';
|
2016-05-24 06:46:52 -05:00
|
|
|
var permission = getParameterByName('permission') || 'edit';
|
2016-04-13 11:24:19 -05:00
|
|
|
var timestamp = getParameterByName('timestamp');
|
|
|
|
var closebutton = getParameterByName('closebutton');
|
2016-03-16 07:57:14 -05:00
|
|
|
if (wopiSrc === '' && filePath === '') {
|
2016-05-23 15:32:56 -05:00
|
|
|
vex.dialog.alert(wrongwopisrc);
|
2016-02-08 10:20:05 -06:00
|
|
|
}
|
|
|
|
if (host === '') {
|
2016-05-23 15:32:56 -05:00
|
|
|
vex.dialog.alert(emptyhosturl);
|
2016-03-29 07:35:32 -05:00
|
|
|
}
|
2016-04-13 11:24:19 -05:00
|
|
|
|
2016-03-16 07:57:14 -05:00
|
|
|
var docURL = wopiSrc !== '' ? wopiSrc : filePath;
|
|
|
|
|
2016-04-01 11:03:32 -05:00
|
|
|
document.title = title;
|
2016-02-08 10:20:05 -06:00
|
|
|
var map = L.map('map', {
|
2016-03-08 18:18:32 -06:00
|
|
|
server: host,
|
2016-03-16 07:57:14 -05:00
|
|
|
doc: docURL,
|
2016-02-08 10:20:05 -06:00
|
|
|
permission: permission,
|
|
|
|
timestamp: timestamp,
|
|
|
|
documentContainer: 'document-container'
|
|
|
|
});
|
|
|
|
|
|
|
|
////// Controls /////
|
|
|
|
map.addControl(L.control.scroll());
|
|
|
|
map.addControl(L.control.dialog());
|
|
|
|
map.addControl(L.control.partsPreview());
|
|
|
|
map.addControl(L.control.tabs());
|
|
|
|
map.addControl(L.control.columnHeader());
|
|
|
|
map.addControl(L.control.rowHeader());
|
2016-05-13 10:23:35 -05:00
|
|
|
map.addControl(L.control.contextMenu());
|
2016-05-17 07:28:55 -05:00
|
|
|
map.addControl(L.control.menubar());
|
2016-02-08 10:20:05 -06:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2016-04-20 05:50:14 -05:00
|
|
|
<script src="/loleaflet/%VERSION%/toolbar/toolbar.js"></script>
|
2016-02-08 10:20:05 -06:00
|
|
|
</body></html>
|