9 examples of 'popper.min.js.map download' in JavaScript

Every line of 'popper.min.js.map download' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
39download(id, mapName) {
40 $.ajax({
41 url: '/api/map/' + id + '/json',
42 type: 'GET',
43 dataType: 'json',
44 success: function(data, textStatus, jqxhr) {
45 var file = new Blob([JSON.stringify(data)], {"type": jqxhr.getResponseHeader("Content-Type")});
46 var link = document.createElement('a');
47 link.href = window.URL.createObjectURL(file);
48 link.download = sanitize(mapName) + ".json";
49 link.click();
50 }
51 });
52}
34function jsMin(scriptFile, mapFile) {
35 if (!mapFile) {
36 mapFile = scriptFile + '.map';
37 }
38 config.outSourceMap = (0, _path.basename)(config.inSourceMap = mapFile);
39 return _uglifyJs2['default'].minify(scriptFile, config);
40}
42downloadSourceMap() {
43 const data = {
44 mime: 'application/octet-stream',
45 filename: 'obfuscated.js.map',
46 contents: this.props.sourceMap,
47 };
48
49 downloadFile(data);
50}
12function main(id, googlemapsUrl) {
13 var param = { lon: 0, lat: 0, z: 15, t: '', q: '' };
14 var result = id.match(/@(-?[0-9\.]+),(-?[0-9\.]+),([0-9]+z)(\/data=!3m1!1e3)?/);
15
16 if (result) {
17 param.lon = result[1];
18 param.lat = result[2];
19 param.z = result[3];
20
21 if (result[4]) {
22 param.t = 'k';
23 }
24 } else {
25 var query = id.split('&');
26 for(i = 0; i < query.length; i++) {
27 var pair = query[i].split('=');
28 if (pair.length !== 2) {
29 continue;
30 }
31 var key = pair[0];
32 var value = pair[1];
33
34 if (param[key] !== undefined) {
35 param[key] = value;
36 } else if ('ll' === key) {
37 param.lon = value.split(',')[0];
38 param.lat = value.split(',')[1];
39 }
40 }
41 }
42
43 var html = 'この部分はインラインフレームを使用しています。';
44
45 document.write(html);
46}
12static fetchScript(url) {
13 return new Promise((resolve, reject) => {
14 const script = document.createElement('script');
15
16 script.type = 'text/javascript';
17 script.onload = resolve;
18 script.onerror = reject;
19 script.src = url;
20 script.async = 'async';
21
22 document.head.appendChild(script);
23 });
24}
70function getMapTile(url, x, y, zoom) {
71 return url.replace("%(x)d", x).replace("%(y)d", y).replace("%(zoom)d", zoom);
72}
372loadMarker() {
373 return new Promise((resolve, reject) => {
374 if (!this.markers.length) resolve(true);
375 const icons = uniqBy(this.markers.map((m) => ({ file: m.img })), 'file');
376
377 let count = 1;
378 icons.forEach(async (ico) => {
379 const icon = ico;
380 const isUrl = !!url.parse(icon.file).hostname;
381 try {
382 // Load marker from remote url
383 if (isUrl) {
384 const img = await request.get({
385 rejectUnauthorized: false,
386 url: icon.file,
387 encoding: null,
388 });
389 icon.data = await sharp(img).toBuffer();
390 } else {
391 // Load marker from local fs
392 icon.data = await sharp(icon.file).toBuffer();
393 }
394 } catch (err) {
395 reject(err);
396 }
397
398 if (count++ === icons.length) {
399 // Pre loaded all icons
400 this.markers.forEach((mark) => {
401 const marker = mark;
402 marker.position = [
403 this.xToPx(lonToX(marker.coord[0], this.zoom)) - marker.offset[0],
404 this.yToPx(latToY(marker.coord[1], this.zoom)) - marker.offset[1],
405 ];
406 const imgData = find(icons, { file: marker.img });
407 marker.set(imgData.data);
408 });
409
410 resolve(true);
411 }
412 });
413 });
414}
55async downloadMap(server, mapHash, mapFormat) {
56 if (!this._activeDownloads.has(mapHash)) {
57 this._activeDownloads = this._activeDownloads.set(
58 mapHash, this._checkAndDownloadMap(server, mapHash, mapFormat))
59 }
60
61 return this._activeDownloads.get(mapHash)
62}
19function popper() {
20 return src('./node_modules/popper.js/dist/umd/popper.min.js').pipe(
21 dest('./static/popperjs/umd'))
22}

Related snippets