DroneDeploy
Search…
Exporter.closePopup
note: Use this example in the AutoExportsExplorer app-zone
1
<!DOCTYPE html>
2
<html lang="en">
3
4
<head>
5
<meta charset="UTF-8">
6
<title>Document</title>
7
<style>
8
.title {
9
font-size: 1.3em;
10
font-weight: 500;
11
}
12
13
.sans {
14
font-family: Lato, sans-serif;
15
color: rgba(0, 0, 0, 0.87);
16
}
17
18
.btn {
19
border: none;
20
background-color: #039be5;
21
/*border-radius: 5px;*/
22
font-size: 14px;
23
font-family: Lato;
24
font-weight: 500;
25
color: white;
26
padding: 10px 16px;
27
margin-top: 10px;
28
flex-basis: 100%;
29
}
30
</style>
31
</head>
32
33
<body>
34
<h1 class="title sans">Export.closePopup example</h1>
35
<button type="button" id="auto-export-button" class="btn">Close popup</button>
36
<script>
37
var closePopupBtn = document.getElementById('auto-export-button');
38
39
new DroneDeploy({
40
version: 1
41
})
42
.then(function(dronedeployApi) {
43
closePopupBtn.addEventListener('click', function(event) {
44
event.preventDefault();
45
dronedeployApi.Exporter.closePopup();
46
});
47
});
48
</script>
49
</body>
50
51
</html>
Copied!
Last modified 2yr ago
Copy link